From patchwork Fri Feb 15 05:49:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 10814195 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1683D13B4 for ; Fri, 15 Feb 2019 05:50:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 02BCE2EA97 for ; Fri, 15 Feb 2019 05:50:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EA6E22EAA2; Fri, 15 Feb 2019 05:50:33 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham 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 A03A82EA97 for ; Fri, 15 Feb 2019 05:50:33 +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:References: In-Reply-To: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:List-Owner; bh=Rr1rpp+waacA00wgLWtNxVMgIZ67bRe7svBcCoO2SG8=; b=k087vWYV0kYhGlaygmRuXKIviq CasBt2ShaeR7w9hlrOu37MdZkXu5qYv11U/dlt1+3N5z14LQgW5Z2o8B8j/cBh99rWkr1LYCI7+9n CswAdSnpKmbYN+0h2TaNTG/JO3GaaszTRVmLxICshXvk7kYEap6HsWndM65JhDcRMfQy2w4lIUCyX u7KBgSFrsYae0B13SNQYboIZjwPHC0lK1pQVcIWD0m97+zXIolAVaCgA4EjXjX+mN/IfPu+qet4FT 6xzpzyHA0YcQiuNrXgwC+PeHP+Vj75ryETIzHu07Sm5TSNwfny/ftFBOc6IR20j2rKL7d+kAv1tMF H8Ht1hWw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1guWOH-000244-3D; Fri, 15 Feb 2019 05:50:25 +0000 Received: from mail-pg1-x544.google.com ([2607:f8b0:4864:20::544]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1guWO7-0001g3-A3 for linux-arm-kernel@lists.infradead.org; Fri, 15 Feb 2019 05:50:19 +0000 Received: by mail-pg1-x544.google.com with SMTP id w7so4254840pgp.13 for ; Thu, 14 Feb 2019 21:50:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=FgP1Av6WIa2OwRHRskBEOGvJeOoMNE23SqACDKpO5GA=; b=vGrnrRtOh+CFwVIsf5zXdpm3NO6QemlAqrI3DdzPURVLojYlwn0pRxREBrdseVUL5I g0dvRPCEy6lrPrwNc9L8x8Dm7adEnKmhAThoeFaBPqAxSizh4ytLuAYPxFuYAr4/NwnN cdsEK0R06AkbfcR8fdfWvD77eK/88XkUr/GIUk0Wrz+fGWqlvoaO2w1oEGZjHbD9r1Ha zQ85PGidEd2Fdw/iuwQv/yrfzv7HLsxnIagEbfEak9xDt6gdwGhRGnHI8HTu0oAcd1Bh w2kwtl749r4KkQ9cBBKuK/v9a8G7O5gYiLEEBod9+EQz8KLLeYZZZYxPvl8ZO1goAiMQ +lMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=FgP1Av6WIa2OwRHRskBEOGvJeOoMNE23SqACDKpO5GA=; b=h0sOm/h3Fy2qUBl4Em4Y+fEf6jcze5c3XEkfDyI42AeP8Gt0fk5jRiljuu/5jd+CWR 7DWuNQqsm9pJ6WKO1wzxrhrRMXLpMZrcr6d2A6r0/TQe67Gb0WnqbJaeTgG6pdBOtKAu t35COM84TZrJ8o04NeL8fIqHrkJJtNfsKAYM5lbU3gyvF5TK6F9XxcS6zkwPYhqSR9B2 ZZHuFTsiM1tV+6ia9HbOfjr723ObqIyem0KQki7B6fnuPpMVci5QOfPHF89IkidwsRSf E/nDPJdK7qAmxGBAxVK+K6gxDwcqRpfs/uquz5w4lI/seRVu5fgM4rg0WsgsH4qbqTHw lyhQ== X-Gm-Message-State: AHQUAuZNQvZsx9CTBMCPWbJuXa9EnhsEUR+JGc01dTMwfFSVGmN4gldn D+d4p7JmGrv+Y6bSRwqgWmMzhuVEiA== X-Google-Smtp-Source: AHgI3IY1YLEQr63XAmBf0S/+piyK7nomI07zC/PaEqZz/zzepN1rt9s0hPp597nA8odFMTlFrKjDkg== X-Received: by 2002:a63:e742:: with SMTP id j2mr3818961pgk.172.1550209814821; Thu, 14 Feb 2019 21:50:14 -0800 (PST) Received: from localhost.localdomain ([2409:4072:98a:c91:14c4:f458:9909:7fad]) by smtp.gmail.com with ESMTPSA id c18sm6160810pfc.63.2019.02.14.21.50.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Feb 2019 21:50:13 -0800 (PST) From: Manivannan Sadhasivam To: p.zabel@pengutronix.de, xuwei5@hisilicon.com, robh+dt@kernel.org Subject: [PATCH v2 1/2] dt-bindings: reset: Add HI3670 reset controller binding Date: Fri, 15 Feb 2019 11:19:54 +0530 Message-Id: <20190215054955.788-2-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190215054955.788-1-manivannan.sadhasivam@linaro.org> References: <20190215054955.788-1-manivannan.sadhasivam@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190214_215015_633659_CFC46BF1 X-CRM114-Status: GOOD ( 13.48 ) 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: devicetree@vger.kernel.org, guodong.xu@linaro.org, linux-kernel@vger.kernel.org, john.stultz@linaro.org, Manivannan Sadhasivam , 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 HI3670 SoC is architecturally same as the HI3660 SoC. Hence, the same driver is reused for HI3670 SoC and the binding is documented here which uses the fallback approach. Signed-off-by: Manivannan Sadhasivam Acked-by: Philipp Zabel Reviewed-by: Rob Herring --- .../devicetree/bindings/reset/hisilicon,hi3660-reset.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/reset/hisilicon,hi3660-reset.txt b/Documentation/devicetree/bindings/reset/hisilicon,hi3660-reset.txt index 2bf3344b2a02..2df4bddeb688 100644 --- a/Documentation/devicetree/bindings/reset/hisilicon,hi3660-reset.txt +++ b/Documentation/devicetree/bindings/reset/hisilicon,hi3660-reset.txt @@ -5,11 +5,12 @@ Please also refer to reset.txt in this directory for common reset controller binding usage. The reset controller registers are part of the system-ctl block on -hi3660 SoC. +hi3660 and hi3670 SoCs. Required properties: -- compatible: should be - "hisilicon,hi3660-reset" +- compatible: should be one of the following: + "hisilicon,hi3660-reset" for HI3660 + "hisilicon,hi3670-reset", "hisilicon,hi3660-reset" for HI3670 - hisi,rst-syscon: phandle of the reset's syscon. - #reset-cells : Specifies the number of cells needed to encode a reset source. The type shall be a and the value shall be 2. From patchwork Fri Feb 15 05:49:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 10814197 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A41776C2 for ; Fri, 15 Feb 2019 05:50:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 914A82EA97 for ; Fri, 15 Feb 2019 05:50:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 859C32EAA2; Fri, 15 Feb 2019 05:50:48 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham 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 4183E2EA97 for ; Fri, 15 Feb 2019 05:50:48 +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:References: In-Reply-To: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:List-Owner; bh=VSp6KHjpeauVcjDe7+YG5sJbgbUbODUltBJj+i3B2vo=; b=F5eWfU2uzsJKaxbSJpJvBfXu3y y7WpvduWWB5b5CrsI3I1tY05+eW1IH6Id6MwoepOL1aQuEhLoroi0y/S70fopIHAcoeHIZ0TmRHSn 4KP7rXxUohO4et4W2y2dNC+h5hKDmGo1MYlzvT+a5+8pt97+34EN4sYyZNKJhXqbYMW1waimDnlSA v5ueeJFqP1E1aNnCmlVahk+oTc5jkw4SNKR6CCvkuqh2wDrrEZfPI6nNck6IHuGr/In74jlF6w7Y5 cV6sr5IKz6zFLCxHPRJajkflXvY/u84XmlTp53fEvzDKZZYsYITCTHmWRFUVrBThiLleBbDLrQFeg OfPln1cQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1guWOW-0002b8-HB; Fri, 15 Feb 2019 05:50:40 +0000 Received: from mail-pf1-x443.google.com ([2607:f8b0:4864:20::443]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1guWOC-0001pl-Cc for linux-arm-kernel@lists.infradead.org; Fri, 15 Feb 2019 05:50:22 +0000 Received: by mail-pf1-x443.google.com with SMTP id z15so4315643pfa.2 for ; Thu, 14 Feb 2019 21:50:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=+28ah16ssp2zUlQ08ousTOH5MdUsrEXHyb5TznP/Xc0=; b=DGBCzkC0cmXtmaogSMqWCCj1CQSsyzp/9IPw9txdvx0boTDHpDgJdxlTaaeLznzIvz X6Nrqjvq9INr+lU0ku2eHwR+QQLsD/cp+TmmlOQmQsZ4Fz3QDg7SD4T2RFgAopBa23Fw ml/Ml6Hk8dyV0TkQfocLIjVj59dfANuucfiLqc0mjqBsT/4P8mUWOCKK1DtN5At3WEEP tkAb5V467FaYtxkwV9YrqlawLNC3XmwxK8mkLMZjS0xB/TeryNKE/S/xyBvrWZ9cwZVA er1BfYFf3BxXDPRkk+NotXddoLgOWSNgH4VIZpCvN5l+GDyo4gO4NcHh7nthfuWq5mah cU7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=+28ah16ssp2zUlQ08ousTOH5MdUsrEXHyb5TznP/Xc0=; b=foaigVInE8BuOb/x8NMIM6F1ROUpS00ZVOjX0apVB1ZbIaqEfbTheR+CtaRySJD6cQ VSISxfvLXxa3qFerQXPbqa8o8TVIMkYH1lwZOCe2GmpH9qfrEoE9fOTCnjTj+IG3u/Gg yDd1BwTPx06/+T20VrduWzKNkucEDHqiUdj3AwzRPBfE+exP/4fmzRf0rALHxOJ0Zeo+ 4I/78tRk9Q7i7TAxf02KjugswHoD1fsBz1oE3YOULeJkGeEjk/bCEHCVKiFSsGTDxEaG 3cJcyednZD2oAmdf0tmD4B4NeTmEXPBkYDoOl08dePWC544p3s/GhvIrqC4BEdW4Gnh3 5KRA== X-Gm-Message-State: AHQUAuZrRMax5mbUUP1MjXyXMBuxPv0XiJOHKVqFyPDJg1xp4U4OxOY7 OUeW43FNbpZlnsiWNG0/P8aP X-Google-Smtp-Source: AHgI3IZAaKvBbSAzW7L+1qiChviVMumolz0prwc44USYG31JQ2InwoQD4JzHgnDC7Xd37e/C2zwq5w== X-Received: by 2002:aa7:819a:: with SMTP id g26mr8029156pfi.187.1550209819674; Thu, 14 Feb 2019 21:50:19 -0800 (PST) Received: from localhost.localdomain ([2409:4072:98a:c91:14c4:f458:9909:7fad]) by smtp.gmail.com with ESMTPSA id c18sm6160810pfc.63.2019.02.14.21.50.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Feb 2019 21:50:18 -0800 (PST) From: Manivannan Sadhasivam To: p.zabel@pengutronix.de, xuwei5@hisilicon.com, robh+dt@kernel.org Subject: [PATCH v2 2/2] arm64: dts: hisilicon: hi3670: Add reset controller support Date: Fri, 15 Feb 2019 11:19:55 +0530 Message-Id: <20190215054955.788-3-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190215054955.788-1-manivannan.sadhasivam@linaro.org> References: <20190215054955.788-1-manivannan.sadhasivam@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190214_215020_664772_BE97ADC2 X-CRM114-Status: GOOD ( 11.62 ) 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: devicetree@vger.kernel.org, guodong.xu@linaro.org, linux-kernel@vger.kernel.org, john.stultz@linaro.org, Manivannan Sadhasivam , 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 Add reset controller support for HiSilicon HI3670 SoC. Signed-off-by: Manivannan Sadhasivam --- arch/arm64/boot/dts/hisilicon/hi3670.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/hisilicon/hi3670.dtsi b/arch/arm64/boot/dts/hisilicon/hi3670.dtsi index a5bd6d80b226..2af88c429c97 100644 --- a/arch/arm64/boot/dts/hisilicon/hi3670.dtsi +++ b/arch/arm64/boot/dts/hisilicon/hi3670.dtsi @@ -151,6 +151,12 @@ #clock-cells = <1>; }; + crg_rst: crg_rst_controller { + compatible = "hisilicon,hi3670-reset", "hisilicon,hi3660-reset"; + #reset-cells = <2>; + hisi,rst-syscon = <&crg_ctrl>; + }; + pctrl: pctrl@e8a09000 { compatible = "hisilicon,hi3670-pctrl", "syscon"; reg = <0x0 0xe8a09000 0x0 0x1000>;