From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Warren Subject: [PATCH 2/2] ARM: tegra: Add clock binding to tegra-seabaord.dts Date: Wed, 25 Jan 2012 12:57:49 -0700 Message-ID: <1327521469-28863-2-git-send-email-swarren@nvidia.com> References: <1327521469-28863-1-git-send-email-swarren@nvidia.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1327521469-28863-1-git-send-email-swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org Sender: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org To: Olof Johansson , Colin Cross , Peter De Schrijver , Simon Glass Cc: U-Boot Mailing List , Devicetree Discuss , Rob Herring , linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Jerry Van Baren , Tom Warren List-Id: devicetree@vger.kernel.org This provides an example of how to use the Tegra CAR clock binding in a board .dts file. Signed-off-by: Stephen Warren --- I think it makes sense to check the previous patch into the Linux kernel, since it's mainly just defining what the binding is. However, this patch is just an example and needs to be reworked to cover all boards, and add a PMU node for the true clk_32k source. I'm providing this patch mostly as an example that Simon Glass can use within U-Boot in the interim. --- arch/arm/boot/dts/tegra-seaboard.dts | 24 ++++++++++++++++++++++++ 1 files changed, 24 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/tegra-seaboard.dts b/arch/arm/boot/dts/tegra-seaboard.dts index b55a02e..06a3cb1 100644 --- a/arch/arm/boot/dts/tegra-seaboard.dts +++ b/arch/arm/boot/dts/tegra-seaboard.dts @@ -11,6 +11,30 @@ reg = < 0x00000000 0x40000000 >; }; + clocks { + #address-cells = <1>; + #size-cells = <0>; + + /* This will eventually be a clock output from a PMU IC */ + clk_32k: clock@0 { + compatible = "fixed-clock"; + reg = <0>; + #clock-cells = <0>; + clock-frequency = <32768>; + }; + + osc: clock@1 { + compatible = "fixed-clock"; + reg = <1>; + #clock-cells = <0>; + clock-frequency = <12000000>; + }; + }; + + clock@60006000 { + clocks = <&clk_32k> <&osc>; + }; + i2c@7000c000 { clock-frequency = <400000>; }; -- 1.7.0.4