From patchwork Wed Mar 15 17:28:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Icenowy Zheng X-Patchwork-Id: 9626275 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 D3CEE60244 for ; Wed, 15 Mar 2017 17:29:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C27FB28616 for ; Wed, 15 Mar 2017 17:29:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B722128625; Wed, 15 Mar 2017 17:29:39 +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 4B9AF28616 for ; Wed, 15 Mar 2017 17:29:38 +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=SPsJqFmD6iaHuc4/RP+NMlWOV4mIj/jQwSPURNjhnrw=; b=CfEFqtOIOm0yXexE7yfDiuWCT7 BjSecP9b2wFUn4wzET3I5HTF5EQALMJVjq/Q5+3VE4m3ho/W7QVIfCziJSuCIXj1GXF2how4DCVpc TmYGu88mUL8XUQg0IeF23W696+l5qBuzi4rB1HPuj4j77y76+jpY/BIhnKusoq4xe61LdHr3sORns RaKAQGbKFzZ6cojUYb4ta7GYzbnpt8u+lV1vTGIFXy6nTWayOAybp4XpVXwTOqoZuTl/W700NRZl/ wbceJL2ZUjZmiSfTD47uXB+dQo46lhnu1BP/q+QPeL41DrdZXiPydMt1G0yQvGLNCcYji3Xrij3ri KCQbc+5Q==; 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 1coCjy-0000FW-Nq; Wed, 15 Mar 2017 17:29:38 +0000 Received: from forward10o.cmail.yandex.net ([37.9.109.60]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1coCju-0008Ld-2H for linux-arm-kernel@lists.infradead.org; Wed, 15 Mar 2017 17:29:37 +0000 Received: from smtp3j.mail.yandex.net (smtp3j.mail.yandex.net [95.108.130.68]) by forward10o.cmail.yandex.net (Yandex) with ESMTP id 5464F234F7; Wed, 15 Mar 2017 20:29:07 +0300 (MSK) Received: from smtp3j.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp3j.mail.yandex.net (Yandex) with ESMTP id C03D36240EB1; Wed, 15 Mar 2017 20:28:59 +0300 (MSK) Received: by smtp3j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id h5rYtCXTcK-SsLOVBZG; Wed, 15 Mar 2017 20:28: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=1489598938; bh=i9ye2x4ezmZ0UiI8N+8zliOnPDpYin4o5U5pLwWj9P4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=m13HwOZpKbtJbCvK8Zjz1+bfVqvaEebL2scbvMzXPMBCoDdnboFG/sq3xYjf+9e2L AKaTAbs9g8iDCOLgPqUZtezjNGrBGuI8PaicLTZiBJ/y2sWYgm+fale6+jZJQMqLTJ hrQym1eAJ++ix2wkXWsS2eJxQGJGUsIAw9bfJYFQ= 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 1/5] dt-bindings: update device tree binding for Allwinner PRCM CCUs Date: Thu, 16 Mar 2017 01:28:04 +0800 Message-Id: <20170315172808.64011-2-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_102934_546729_7EBF8C70 X-CRM114-Status: UNSURE ( 8.75 ) 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 Many Allwinner SoCs after A31 have a CCU in PRCM block. Give the ones on H3 and A64 compatible strings. Signed-off-by: Icenowy Zheng --- Changes in v2: - Add iosc for R_CCU's on H3/A64. (A31, A23 and A33 seem to have different clock for mux 3 of ar100 clk. Investgations are needed for them.) Documentation/devicetree/bindings/clock/sunxi-ccu.txt | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/clock/sunxi-ccu.txt b/Documentation/devicetree/bindings/clock/sunxi-ccu.txt index 68512aa398a9..4a4addff595d 100644 --- a/Documentation/devicetree/bindings/clock/sunxi-ccu.txt +++ b/Documentation/devicetree/bindings/clock/sunxi-ccu.txt @@ -7,9 +7,11 @@ Required properties : - "allwinner,sun8i-a23-ccu" - "allwinner,sun8i-a33-ccu" - "allwinner,sun8i-h3-ccu" + - "allwinner,sun8i-h3-r-ccu" - "allwinner,sun8i-v3s-ccu" - "allwinner,sun9i-a80-ccu" - "allwinner,sun50i-a64-ccu" + - "allwinner,sun50i-a64-r-ccu" - "allwinner,sun50i-h5-ccu" - reg: Must contain the registers base address and length @@ -20,7 +22,11 @@ Required properties : - #clock-cells : must contain 1 - #reset-cells : must contain 1 -Example: +For the PRCM CCUs on H3/A64, one more clock is needed: +- "iosc": another frequency oscillator used for CPUS (usually at 32000Hz, + not the same with losc) + +Example for generic CCU: ccu: clock@01c20000 { compatible = "allwinner,sun8i-h3-ccu"; reg = <0x01c20000 0x400>; @@ -29,3 +35,13 @@ ccu: clock@01c20000 { #clock-cells = <1>; #reset-cells = <1>; }; + +Example for PRCM CCU: +r_ccu: clock@01f01400 { + compatible = "allwinner,sun50i-a64-r-ccu"; + reg = <0x01f01400 0x100>; + clocks = <&osc24M>, <&osc32k>, <&osc32000>; + clock-names = "hosc", "losc", "iosc"; + #clock-cells = <1>; + #reset-cells = <1>; +};