From patchwork Wed May 17 08:37:37 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 9730465 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 39D6260138 for ; Wed, 17 May 2017 08:46:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2860328655 for ; Wed, 17 May 2017 08:46:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1CF1E286E7; Wed, 17 May 2017 08:46:44 +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 [65.50.211.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 A714328655 for ; Wed, 17 May 2017 08:46:43 +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=JBehrTq1c5ugCzpHRRFA1FByMACBAU9Gv2CG9S4hZCM=; b=Cni7h0BDnyUIrpUohC2bZisoBW cK4Hk8Fz2PzBkmH75iNq+q+37BN2pK3A1MpNAIIkdy/+1XlzT8CE5KpKrObFtd94KeFCiQjJ+O3C1 +Kb4rlm3O3Ie49FXZTM6NmbGSW929Bgm1CZeyfBIm79/2BthxgcpoCOEKTGd7ZH4MqGr9m1KIUVkJ 93nfsFLf/YoK+kZPkeSfaoypDigtXUKHFWLU7m2O45t3mPs84UU7SEpVo84mMT1hHd0gfLFF1526W iz3vvSy/gPEfCXyuQiIyqEnthbeIZ7zg26M/IsW+omfMSz5HBxowomh6xihv8LxsItBnvBMoDivHo 7WC0rYUw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dAubQ-0005le-Vz; Wed, 17 May 2017 08:46:41 +0000 Received: from merlin.infradead.org ([2001:4978:20e::2]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dAuTw-0000kC-M4 for linux-arm-kernel@bombadil.infradead.org; Wed, 17 May 2017 08:38:56 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=wHWqj2ZSOOB8r2dy5/TmYUHHMFXOvYsuxrqmioyEPLI=; b=KjMUuxq4sTVtMl7coRIz0oftg URocBfcSEvxy9U0BPQFfZtflAiskpiE9/1Zey/LhyDQChT5LZfnfYoXKlc01+7EbZJcTjmUz09tuq p1VpNTWVVqIPzKCEaq0b9DBCJf48ziQgZqCAV4ycTV3ZxY0RhT1QDoJQ3tlNRZCw6G8o+LPtpWxaL HSBbA47cqN1LRiE9kYnMK+farjbq26AhRHPYp6v8bny2XJMscpjf+rW/Hf/vLG/2iBFMSCXrxgU8E ZxX73ixQQwjVm6AJDjnD004wIe7qU9ZMQMjvqgv7X5iM8RZRVEeTUZ9/FloHIJK6NEgMwIK+nLIhe Qhy3aszkw==; Received: from mail-pf0-x230.google.com ([2607:f8b0:400e:c00::230]) by merlin.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dAuTv-0003bw-8S for linux-arm-kernel@lists.infradead.org; Wed, 17 May 2017 08:38:56 +0000 Received: by mail-pf0-x230.google.com with SMTP id 9so3983950pfj.1 for ; Wed, 17 May 2017 01:38:34 -0700 (PDT) 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=wHWqj2ZSOOB8r2dy5/TmYUHHMFXOvYsuxrqmioyEPLI=; b=WaPzwgljPE0Wf7JTLYJ4T6ZFq61YljzyBuMSY02lntQ3f9eWP+H6BastGJSryJGi4G wgEjTnXaAiXi/qnTYHECrBNmBhHaEpIYnx4kk5ZURG4/IcDDEsS4urWVlEOjDxQKsdlj uyGSLs6SfNxrze/+Cd1R4gPBBrE7nL5knty1A= 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=wHWqj2ZSOOB8r2dy5/TmYUHHMFXOvYsuxrqmioyEPLI=; b=ShFZebV5+nPWlmeVGGHQjvXpuoHhxNbLzIoJgfpqQtyTt6S8MMl0JaMoZkvItPyZoy k5Uh87b+QS/x9g/PeywLbZnQQ4kMRRYZgwsX1rk3tX1TdmLf1r7vnkCOOvGRVq1pdxq4 7VjyoNBJjHJSZLlekCkbK7aKKPQqnULFYD5PF0uyCrFjBRFPVETDWZzlnYQGiccw1gnt GjkTWM8eJN3KLffgGCyUZiJgPohUvUINbIc5tOYQWRdspArMmZK6TZ77h4crY6r42Njs u6ZK+w739076/jJCSEsW/iV26g5tATrgBQyE8YKCmS570DZFj+v0uDRhDUVb1k5mbbgF NSrw== X-Gm-Message-State: AODbwcDxsppTS0bDRtAePyQxzqZtAblK6HmbYJsLbU31wOnKudW2SroY Y0p3LiajVenOKZIi X-Received: by 10.99.97.6 with SMTP id v6mr2532183pgb.186.1495010313940; Wed, 17 May 2017 01:38:33 -0700 (PDT) Received: from docularxu-ThinkPad-T440p.219.146.1.66 ([45.56.159.164]) by smtp.gmail.com with ESMTPSA id u9sm3029519pgn.55.2017.05.17.01.38.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 17 May 2017 01:38:33 -0700 (PDT) From: Guodong Xu To: robh+dt@kernel.org, xuwei5@hisilicon.com, catalin.marinas@arm.com, will.deacon@arm.com, wangkefeng.wang@huawei.com, puck.chen@hisilicon.com, xuejiancheng@hisilicon.com, devicetree@vger.kernel.org Subject: [PATCH 04/12] arm64: dts: hi3660: add resources for clock and reset Date: Wed, 17 May 2017 16:37:37 +0800 Message-Id: <20170517083745.24479-5-guodong.xu@linaro.org> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170517083745.24479-1-guodong.xu@linaro.org> References: <20170517083745.24479-1-guodong.xu@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170517_043855_458299_11AE875E X-CRM114-Status: GOOD ( 10.06 ) 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: Zhangfei Gao , linux-kernel@vger.kernel.org, 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 From: Zhangfei Gao Add some resource nodes for clock and reset Signed-off-by: Zhangfei Gao Acked-by: Rob Herring --- arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 53 +++++++++++++++++++++++++++---- 1 file changed, 46 insertions(+), 7 deletions(-) diff --git a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi index 3983086..f55710a 100644 --- a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi +++ b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi @@ -5,6 +5,7 @@ */ #include +#include / { compatible = "hisilicon,hi3660"; @@ -141,18 +142,56 @@ #size-cells = <2>; ranges; - fixed_uart5: fixed_19_2M { - compatible = "fixed-clock"; - #clock-cells = <0>; - clock-frequency = <19200000>; - clock-output-names = "fixed:uart5"; + crg_ctrl: crg_ctrl@fff35000 { + compatible = "hisilicon,hi3660-crgctrl", "syscon"; + reg = <0x0 0xfff35000 0x0 0x1000>; + #clock-cells = <1>; }; - uart5: uart@fdf05000 { + crg_rst: crg_rst_controller { + compatible = "hisilicon,hi3660-reset"; + #reset-cells = <2>; + hisi,rst-syscon = <&crg_ctrl>; + }; + + + pctrl: pctrl@e8a09000 { + compatible = "hisilicon,hi3660-pctrl", "syscon"; + reg = <0x0 0xe8a09000 0x0 0x2000>; + #clock-cells = <1>; + }; + + pmuctrl: crg_ctrl@fff34000 { + compatible = "hisilicon,hi3660-pmuctrl", "syscon"; + reg = <0x0 0xfff34000 0x0 0x1000>; + #clock-cells = <1>; + }; + + sctrl: sctrl@fff0a000 { + compatible = "hisilicon,hi3660-sctrl", "syscon"; + reg = <0x0 0xfff0a000 0x0 0x1000>; + #clock-cells = <1>; + }; + + iomcu: iomcu@ffd7e000 { + compatible = "hisilicon,hi3660-iomcu", "syscon"; + reg = <0x0 0xffd7e000 0x0 0x1000>; + #clock-cells = <1>; + + }; + + iomcu_rst: reset { + compatible = "hisilicon,hi3660-reset"; + hisi,rst-syscon = <&iomcu>; + #reset-cells = <2>; + }; + + uart5: serial@fdf05000 { compatible = "arm,pl011", "arm,primecell"; reg = <0x0 0xfdf05000 0x0 0x1000>; interrupts = ; - clocks = <&fixed_uart5 &fixed_uart5>; + clocks = <&crg_ctrl HI3660_CLK_GATE_UART5>, + <&crg_ctrl HI3660_CLK_GATE_UART5>; clock-names = "uartclk", "apb_pclk"; status = "disabled"; };