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: 9171085 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 AB98E60865 for ; Sat, 11 Jun 2016 17:56:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A37AC25D91 for ; Sat, 11 Jun 2016 17:56:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 97E6126B57; Sat, 11 Jun 2016 17:56:10 +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=-6.9 required=2.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 34D82268AE for ; Sat, 11 Jun 2016 17:56:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751987AbcFKR4J (ORCPT ); Sat, 11 Jun 2016 13:56:09 -0400 Received: from smtp5-g21.free.fr ([212.27.42.5]:63093 "EHLO smtp5-g21.free.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752222AbcFKR4G (ORCPT ); Sat, 11 Jun 2016 13:56:06 -0400 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 Cc: Stephen Boyd , linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-sunxi@googlegroups.com Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.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"; };