From patchwork Wed Mar 15 17:28:06 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Icenowy Zheng X-Patchwork-Id: 9626295 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 5E9CD6048C for ; Wed, 15 Mar 2017 17:46:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5460D28660 for ; Wed, 15 Mar 2017 17:46:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 48F8128666; Wed, 15 Mar 2017 17:46: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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham 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 1DA9428660 for ; Wed, 15 Mar 2017 17:46:47 +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=SMhWjdRZ6JEpTWFxmjBvjPuwJguGKyNHf/Qt1E/H1bg=; b=HNuYteNsys7w8q2dWLWJn4Oocr s17jKxQogyYVvfe4puQvjml9BaUlK0dDkkPOUdOdeM9MugTbMhFhs4gnhKhowZr50cuTmXPhiNM+X bpmHwL2zc4pLPoC8UAWeopw0jeE9F4uz4psbQWP4WO61dTHWXfQSC63+s1NI3T+w8URD/9WMSOjog MDF+HfSQ+NsHAL0yzsMtJVvzgSbKfwMlweIhEW5cwFHdV38LhBzIHH7JvR/jxdyEupybCZt0l+Ue9 hRNPSf+ohLNbf4N3yy8x1MwjvEa0JPwGBHKPMNCt6fkcl9Icfe7BXE5BSzkUIgBQX/gf3DWYPOODE eILI1AUA==; 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 1coD0N-0002Hm-1T; Wed, 15 Mar 2017 17:46:35 +0000 Received: from forward6o.cmail.yandex.net ([37.9.109.52]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1coClo-00029I-TX for linux-arm-kernel@lists.infradead.org; Wed, 15 Mar 2017 17:32:06 +0000 Received: from smtp3j.mail.yandex.net (smtp3j.mail.yandex.net [95.108.130.68]) by forward6o.cmail.yandex.net (Yandex) with ESMTP id B065A22F90; Wed, 15 Mar 2017 20:31:06 +0300 (MSK) Received: from smtp3j.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp3j.mail.yandex.net (Yandex) with ESMTP id CDAD66240EB1; Wed, 15 Mar 2017 20:30:59 +0300 (MSK) Received: by smtp3j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id h5rYtCXTcK-UrLWsWGg; Wed, 15 Mar 2017 20:30:58 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aosc.xyz; s=mail; t=1489599059; bh=FKj4b09zw+ifX4ffROYtD6AH31X6QFHOz3spNVpIWlo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=NdHmnYWvY7s7prtipp8AgHO/fiFY1PFiJcdNQ5/EWamRLylZYYA5Rxp89HsRZEycJ ojLVANHBVuzISALQLeEoEV6i9Tg/3KQANo+kbfTqZjdD4tcgdP0pl+4CgCRhp6pBFm LCZDG6BgHQfqRiW4S+rirUygkcuihcYaH0L5xP5k= Authentication-Results: smtp3j.mail.yandex.net; dkim=pass header.i=@aosc.xyz X-Yandex-ForeignMX: US X-Yandex-Suid-Status: 1 0,1 0,1 0,1 0,1 0,1 0,1 0,1 1130000036118848 From: Icenowy Zheng To: Rob Herring , Maxime Ripard , Chen-Yu Tsai Subject: [PATCH v2 3/5] arm64: allwinner: a64: add r_ccu node Date: Thu, 16 Mar 2017 01:28:06 +0800 Message-Id: <20170315172808.64011-4-icenowy@aosc.xyz> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20170315172808.64011-1-icenowy@aosc.xyz> References: <20170315172808.64011-1-icenowy@aosc.xyz> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170315_103133_622875_ADDCCA8F X-CRM114-Status: UNSURE ( 7.80 ) X-CRM114-Notice: Please train this message. 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, linux-sunxi@googlegroups.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Icenowy Zheng 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 A64 SoC have a CCU (r_ccu) in PRCM block. Add support for it. Signed-off-by: Icenowy Zheng --- Changes in v2: - Add osc32000. arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi index 1c64ea2d23f9..dbeba43386f6 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi @@ -43,8 +43,10 @@ */ #include +#include #include #include +#include / { interrupt-parent = <&gic>; @@ -98,6 +100,13 @@ clock-output-names = "osc32k"; }; + osc32000: osc32000_clk { + #clock-cells = <0>; + compatible = "fixed-clock"; + clock-frequency = <32000>; + clock-output-names = "osc32000"; + }; + psci { compatible = "arm,psci-0.2"; method = "smc"; @@ -392,5 +401,14 @@ interrupts = , ; }; + + r_ccu: clock@1f01400 { + compatible = "allwinner,sun50i-a64-r-ccu"; + reg = <0x01f01400 0x100>; + clocks = <&osc24M>, <&osc32k>, <&osc32000>; + clock-names = "hosc", "losc", "iosc"; + #clock-cells = <1>; + #reset-cells = <1>; + }; }; };