From patchwork Mon Feb 19 07:35:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 10227239 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 003A460392 for ; Mon, 19 Feb 2018 07:36:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E22CD28703 for ; Mon, 19 Feb 2018 07:36:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D65CD28961; Mon, 19 Feb 2018 07:36:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 59E5928703 for ; Mon, 19 Feb 2018 07:36:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=53sDcKxcD21sWFi6gRhIxRxERcw/HwH+Zx6g0VjawJs=; b=TVH 72PhEvnT6UmYD945TSV2ed0tR5lwiIwWq/yZZf7n58akPa4AcVDsRtwrNiuTf1PAeGXurQpe/IIwa fumqBH554Xa6Tjp0pK34pb5SXfIvJYKHY9PmHTWY0ZyN0Hu67cbVUL7p6JnJp9kciQX/pIbq/2dkk UZkezz4fUxqkaqNA4XKC2TjPppn366PpQQZ7XB766bTkj9kra2P8UbCA2usfFaLPTZeYhuCoEE3VA nh1MgJwkLZreCoHHemw7elAi9w2fgRSCdjSowvu/jt27NfmIP47XywinFjEOlqF+5NTDVsTsiBHHn 4/rzR/422hWOSNM9WdqrYD3hwUYeg/g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1enfzg-0004E1-4X; Mon, 19 Feb 2018 07:36:12 +0000 Received: from mail-pf0-x242.google.com ([2607:f8b0:400e:c00::242]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1enfzb-0004Bg-1D for linux-arm-kernel@lists.infradead.org; Mon, 19 Feb 2018 07:36:09 +0000 Received: by mail-pf0-x242.google.com with SMTP id a6so1847936pfi.2 for ; Sun, 18 Feb 2018 23:35:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id; bh=7gqTF1bgvZmuNSAMp/bukbVmv8u9iZtBgXHxiYm6rgI=; b=Liiov/COoNBbvO/ya6eBPvFiOCgeHiKCjg2IkBBEmeytsaoxjVYq5iTc8gZFZLlM3k eOtg61EBmszHpTJhViL1GYkA9rGQHNFcdWdXwKPAkHpOb77SEm9FzpWpQiF9SIEQEq7R EHA+Gq2QLq+kz35qibWRcUxIQ4L3Up9AwcuTTz47o9pCe9Yf0D+X0/4zcqTD5sAk4+Xo nYOfuQFb3q5U/VFhpuxSaauO6Z9dB7TPAjfz2R40SUniVlXhlWMBY2nCNNV55S/JgRkl FYeMp/VAPv6Cbb86jQ7ixQNV/+t+gksR44zmPLaIGD1SR32PLfTBt+yQkAFX4tGmosCx L3SQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=7gqTF1bgvZmuNSAMp/bukbVmv8u9iZtBgXHxiYm6rgI=; b=OLl9oZqo2lJcLLng8pLxcwVhXTxiBivq4UxFfbqpkOwMS7TCxJ9IH+DeAVc5jelWMC RyuUTe349dBFekuYYN4LD7jeIVQldHtfmHt7SdIQlTqR0r5Iy5QyZCx4z81DMmwd5ajd jzYxPip97V7axAsgQUJ4plakXkrKgzhcvODU+AFJh+1a+oyZak5tgULtXozBXOKmFPre Xe8HlDgI36jyJZucyxmJfqbmMatbIav1nVAq+hvZfG4pTocjhnsv5OnwThaYFps3PIPF l7hsDGDtdqfXc+FoZ/AouyAw36JtmjESWEwDo+5edgOlWnj1JunwlzEVLneS83Rj8f+u dRIg== X-Gm-Message-State: APf1xPATTD8uZxWujlIjGybI17jVxsV6WqkEyqBFs6cHhmgarpUktuvY WyGrqaSk8lckyuzzZiLa0AM= X-Google-Smtp-Source: AH8x226zvWDVxRj608YPMH4+azfJlAb5KNEopTZBZlDCRPvw9uD0eabh3yCUfwSQXBuzoNSVgay1rw== X-Received: by 10.99.107.200 with SMTP id g191mr11450986pgc.165.1519025754746; Sun, 18 Feb 2018 23:35:54 -0800 (PST) Received: from aurora.jms.id.au ([45.124.203.19]) by smtp.gmail.com with ESMTPSA id f79sm60524747pfd.103.2018.02.18.23.35.49 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 18 Feb 2018 23:35:54 -0800 (PST) Received: by aurora.jms.id.au (sSMTP sendmail emulation); Mon, 19 Feb 2018 18:05:46 +1030 From: Joel Stanley To: Joel Stanley , Andrew Jeffery Subject: [PATCH] ARM: dts: aspeed: Add LPC reset controller node Date: Mon, 19 Feb 2018 18:05:40 +1030 Message-Id: <20180219073540.24520-1-joel@jms.id.au> X-Mailer: git-send-email 2.15.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180218_233607_137405_2917148D X-CRM114-Status: GOOD ( 13.02 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org, Rob Herring , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP On both the ast2400 and ast2500 SoCs, the LPC reset controller is required to bring the UARTs out of reset without waiting for the LPC reset to be deasserted. Signed-off-by: Joel Stanley --- Bindings and driver change is under reivew: https://lkml.org/lkml/2018/2/19/12 arch/arm/boot/dts/aspeed-g4.dtsi | 10 ++++++++++ arch/arm/boot/dts/aspeed-g5.dtsi | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/arch/arm/boot/dts/aspeed-g4.dtsi b/arch/arm/boot/dts/aspeed-g4.dtsi index 48c28a71ae7e..36ae23aa3b48 100644 --- a/arch/arm/boot/dts/aspeed-g4.dtsi +++ b/arch/arm/boot/dts/aspeed-g4.dtsi @@ -162,6 +162,7 @@ reg-shift = <2>; interrupts = <9>; clocks = <&syscon ASPEED_CLK_GATE_UART1CLK>; + resets = <&lpc_reset 4>; no-loopback-test; status = "disabled"; }; @@ -249,6 +250,12 @@ reg = <0x20 0x24 0x48 0x8>; }; + lpc_reset: reset-controller@18 { + compatible = "aspeed,ast2400-lpc-reset"; + reg = <0x18 0x4>; + #reset-cells = <1>; + }; + ibt: ibt@c0 { compatible = "aspeed,ast2400-ibt-bmc"; reg = <0xc0 0x18>; @@ -264,6 +271,7 @@ reg-shift = <2>; interrupts = <32>; clocks = <&syscon ASPEED_CLK_GATE_UART2CLK>; + resets = <&lpc_reset 5>; no-loopback-test; status = "disabled"; }; @@ -274,6 +282,7 @@ reg-shift = <2>; interrupts = <33>; clocks = <&syscon ASPEED_CLK_GATE_UART3CLK>; + resets = <&lpc_reset 6>; no-loopback-test; status = "disabled"; }; @@ -284,6 +293,7 @@ reg-shift = <2>; interrupts = <34>; clocks = <&syscon ASPEED_CLK_GATE_UART4CLK>; + resets = <&lpc_reset 7>; no-loopback-test; status = "disabled"; }; diff --git a/arch/arm/boot/dts/aspeed-g5.dtsi b/arch/arm/boot/dts/aspeed-g5.dtsi index 8eac57c33880..17ee0fa33a14 100644 --- a/arch/arm/boot/dts/aspeed-g5.dtsi +++ b/arch/arm/boot/dts/aspeed-g5.dtsi @@ -205,6 +205,7 @@ reg-shift = <2>; interrupts = <9>; clocks = <&syscon ASPEED_CLK_GATE_UART1CLK>; + resets = <&lpc_reset 4>; no-loopback-test; status = "disabled"; }; @@ -299,6 +300,12 @@ reg = <0x20 0x24 0x48 0x8>; }; + lpc_reset: reset-controller@18 { + compatible = "aspeed,ast2500-lpc-reset"; + reg = <0x18 0x4>; + #reset-cells = <1>; + }; + ibt: ibt@c0 { compatible = "aspeed,ast2500-ibt-bmc"; reg = <0xc0 0x18>; @@ -314,6 +321,7 @@ reg-shift = <2>; interrupts = <32>; clocks = <&syscon ASPEED_CLK_GATE_UART2CLK>; + resets = <&lpc_reset 5>; no-loopback-test; status = "disabled"; }; @@ -324,6 +332,7 @@ reg-shift = <2>; interrupts = <33>; clocks = <&syscon ASPEED_CLK_GATE_UART3CLK>; + resets = <&lpc_reset 6>; no-loopback-test; status = "disabled"; }; @@ -334,6 +343,7 @@ reg-shift = <2>; interrupts = <34>; clocks = <&syscon ASPEED_CLK_GATE_UART4CLK>; + resets = <&lpc_reset 7>; no-loopback-test; status = "disabled"; };