sunxi: driver refresh for 3.13
[openwrt.git] / target / linux / sunxi / patches-3.13 / 212-dt-sun7i-add-pinmuxing-for-extclocks.patch
1 From f3a50c26f33a4627e5d3e35f80db3f22a5375237 Mon Sep 17 00:00:00 2001
2 From: Chen-Yu Tsai <wens@csie.org>
3 Date: Tue, 24 Dec 2013 21:26:20 +0800
4 Subject: [PATCH] ARM: dts: sun7i: Add pin muxing options for clock outputs
5
6 This patch adds the clock output pin options on the A20.
7 The 2 pins can output a configurable clock to be used by
8 external modules. This is used on the CubieTruck, to supply
9 a 32768 Hz low power clock to the onboard Wifi+BT module.
10
11 Signed-off-by: Chen-Yu Tsai <wens@csie.org>
12 ---
13  arch/arm/boot/dts/sun7i-a20.dtsi | 14 ++++++++++++++
14  1 file changed, 14 insertions(+)
15
16 --- a/arch/arm/boot/dts/sun7i-a20.dtsi
17 +++ b/arch/arm/boot/dts/sun7i-a20.dtsi
18 @@ -490,6 +490,20 @@
19                                 allwinner,drive = <3>;
20                                 allwinner,pull = <0>;
21                         };
22 +
23 +                       clk_out_a_pins: clk_out_a@0 {
24 +                               allwinner,pins = "PI12";
25 +                               allwinner,function = "clk_out_a";
26 +                               allwinner,drive = <0>;
27 +                               allwinner,pull = <0>;
28 +                       };
29 +
30 +                       clk_out_b_pins: clk_out_b@0 {
31 +                               allwinner,pins = "PI13";
32 +                               allwinner,function = "clk_out_b";
33 +                               allwinner,drive = <0>;
34 +                               allwinner,pull = <0>;
35 +                       };
36                 };
37  
38                 sata: ahci@01c18000 {