From patchwork Sat Jun 7 18:18:25 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Jarzmik X-Patchwork-Id: 4315911 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id C002DBEEAA for ; Sat, 7 Jun 2014 18:21:42 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EA1E4201F4 for ; Sat, 7 Jun 2014 18:21:41 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1A2A92018A for ; Sat, 7 Jun 2014 18:21:41 +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 1WtLD4-0000Sy-Ii; Sat, 07 Jun 2014 18:19:18 +0000 Received: from smtp01.smtpout.orange.fr ([80.12.242.123] helo=smtp.smtpout.orange.fr) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WtLCj-0000Px-AX for linux-arm-kernel@lists.infradead.org; Sat, 07 Jun 2014 18:19:01 +0000 Received: from beldin.home ([92.156.133.191]) by mwinf5d53 with ME id BWJV1o00S47vwpY03WJafe; Sat, 07 Jun 2014 20:18:34 +0200 X-ME-Helo: beldin.home X-ME-Date: Sat, 07 Jun 2014 20:18:34 +0200 X-ME-IP: 92.156.133.191 From: Robert Jarzmik To: Mike Turquette , Daniel Mack , Haojian Zhuang , Eric Miao Subject: [RFC PATCH 2/3] dts: add devicetree bindings for pxa27x clocks Date: Sat, 7 Jun 2014 20:18:25 +0200 Message-Id: <1402165106-16534-3-git-send-email-robert.jarzmik@free.fr> X-Mailer: git-send-email 2.0.0.rc2 In-Reply-To: <1402165106-16534-1-git-send-email-robert.jarzmik@free.fr> References: <1402165106-16534-1-git-send-email-robert.jarzmik@free.fr> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140607_111857_666860_66206BDD X-CRM114-Status: UNSURE ( 9.12 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.0 (/) Cc: Robert Jarzmik , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add the clock tree description for the PXA27x based boards. Signed-off-by: Robert Jarzmik --- .../devicetree/bindings/clock/pxa-clock.txt | 23 ++++++++++++++++++++++ arch/arm/boot/dts/pxa27x.dtsi | 4 ++++ 2 files changed, 27 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/pxa-clock.txt diff --git a/Documentation/devicetree/bindings/clock/pxa-clock.txt b/Documentation/devicetree/bindings/clock/pxa-clock.txt new file mode 100644 index 0000000..54ab59c --- /dev/null +++ b/Documentation/devicetree/bindings/clock/pxa-clock.txt @@ -0,0 +1,23 @@ +* Clock bindings for Marvell PXA chips + +Required properties: +- compatible: Should be "mrvl,pxa-clocks" +- reg: Address and length of the CKEN register +- #clock-cells: Should be <1> +- clocks: the parent fixed rate clocks +- clock-indices: the bit index in the CKEN register gating the clock +- clock-outpout-names: the names of the clocks + +The clock consumer should specify the desired clock by having the clock +ID in its "clocks" phandle cell. + +Examples: + +pxa2xx_clks: pxa2xx_clks@41300004 { + compatible = "mrvl,pxa-clocks"; + clocks = <&clk_14_857mhz>, <&clk_14_857mhz> + #clock-cells = <1>; + clock-output-names = + "pxa27x-ffuart", "pxa27x-btuart"; + clock-indices = +}; diff --git a/arch/arm/boot/dts/pxa27x.dtsi b/arch/arm/boot/dts/pxa27x.dtsi index 7b151c0..488a9e6 100644 --- a/arch/arm/boot/dts/pxa27x.dtsi +++ b/arch/arm/boot/dts/pxa27x.dtsi @@ -42,6 +42,9 @@ * The muxing of external clocks/internal dividers for osc* clock * sources has been hidden under the carpet by now. */ + #address-cells = <1>; + #size-cells = <1>; + osc13mhz:osc13mhz { compatible = "fixed-clock"; #clock-cells = <0>; @@ -111,6 +114,7 @@ pxa2xx_clks: pxa2xx_clks@41300004 { compatible = "mrvl,pxa2xx-clocks"; + reg = <0x41300004 0x4>; clocks = <&clk_14_857mhz>, <&clk_14_857mhz>, <&clk_14_857mhz>, <&clk_14_682mhz>, <&clk_32_842mhz>, <&clk_48mhz>, <&clk_19_5mhz>, <&clk_48mhz>, <&clk_48mhz>,