From patchwork Sat Jun 11 17:04:50 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean-Francois Moine X-Patchwork-Id: 9171095 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 1863C604DB for ; Sat, 11 Jun 2016 17:58:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0E29425D91 for ; Sat, 11 Jun 2016 17:58:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F374C268AE; Sat, 11 Jun 2016 17:58:49 +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=-4.2 required=2.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 95D5025D91 for ; Sat, 11 Jun 2016 17:58:49 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1bBn99-00036r-Hj; Sat, 11 Jun 2016 17:56:35 +0000 Received: from smtp5-g21.free.fr ([2a01:e0c:1:1599::14]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1bBn8z-00034i-RI for linux-arm-kernel@lists.infradead.org; Sat, 11 Jun 2016 17:56:26 +0000 Received: from localhost (unknown [82.245.201.222]) by smtp5-g21.free.fr (Postfix) with ESMTP id 750D45FF16; Sat, 11 Jun 2016 19:59:31 +0200 (CEST) X-Mailbox-Line: From 61aeb2c338f6c1a3dc00db4ad66d285e6b7f48d2 Mon Sep 17 00:00:00 2001 Message-Id: <61aeb2c338f6c1a3dc00db4ad66d285e6b7f48d2.1465666788.git.moinejf@free.fr> In-Reply-To: References: From: Jean-Francois Moine Date: Sat, 11 Jun 2016 19:04:50 +0200 Subject: [PATCH v2 3/3] dt: sun8i: Define the clocks of the A83T To: Emilio Lopez , Maxime Ripard , Chen-Yu Tsai X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160611_105626_097549_7040F1D9 X-CRM114-Status: UNSURE ( 7.51 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-sunxi@googlegroups.com, Stephen Boyd , linux-clk@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 The clocks are defined by the CCU binding. Signed-off-by: Jean-Francois Moine --- arch/arm/boot/dts/sun8i-a83t.dtsi | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/arch/arm/boot/dts/sun8i-a83t.dtsi b/arch/arm/boot/dts/sun8i-a83t.dtsi index d3473f8..4fec56a 100644 --- a/arch/arm/boot/dts/sun8i-a83t.dtsi +++ b/arch/arm/boot/dts/sun8i-a83t.dtsi @@ -45,9 +45,10 @@ #include "skeleton.dtsi" +#include #include - #include +#include / { interrupt-parent = <&gic>; @@ -138,13 +139,13 @@ clock-output-names = "osc16M"; }; - osc16Md512: osc16Md512_clk { + osc32k: osc32k_clk { #clock-cells = <0>; compatible = "fixed-factor-clock"; clock-div = <512>; clock-mult = <1>; clocks = <&osc16M>; - clock-output-names = "osc16M-d512"; + clock-output-names = "osc32k"; }; }; @@ -154,13 +155,20 @@ #size-cells = <1>; ranges; + ccu: clock@01c20000 { + compatible = "allwinner,sun8i-a83t-ccu"; + reg = <0x01c20000 0x400>; + #clock-cells = <1>; + #reset-cells = <1>; + }; + pio: pinctrl@01c20800 { compatible = "allwinner,sun8i-a83t-pinctrl"; interrupts = , , ; reg = <0x01c20800 0x400>; - clocks = <&osc24M>; + clocks = <&ccu CLK_BUS_PIO>; gpio-controller; interrupt-controller; #interrupt-cells = <3>; @@ -210,7 +218,7 @@ interrupts = ; reg-shift = <2>; reg-io-width = <4>; - clocks = <&osc24M>; + clocks = <&ccu CLK_BUS_UART0>; status = "disabled"; };