diff options
author | Simon Guinot <simon.guinot@sequanux.org> | 2014-07-08 10:42:24 -0400 |
---|---|---|
committer | Jason Cooper <jason@lakedaemon.net> | 2014-07-13 17:22:49 -0400 |
commit | 2d4cd2cafaea529948de9ac9f04d88254e473c61 (patch) | |
tree | 89977cedd645a2d7e3d5085bf5499b874b41f763 | |
parent | d854fa8a1500bec982ed9cb26b82d96bd5ae8dab (diff) |
ARM: Kirkwood: allow to use netxbig DTSI for d2net_v2 DTS
The d2 Network v2 board (d2net_v2) shares a lot of hardware
characteristics with the 2Big and 5Big Network v2 boards. This patch
prepares the kirkwood-netxbig.dtsi file in order to allow to include it
from the d2net_v2 DTS file. The DT nodes only relevant for the 2Big and
5Big Network v2 boards are moved into their respective DTS files.
Signed-off-by: Simon Guinot <simon.guinot@sequanux.org>
Acked-by: Andrew Lunn <andrew@lunn.ch>
Link: https://lkml.kernel.org/r/1404830545-15581-2-git-send-email-simon.guinot@sequanux.org
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
-rw-r--r-- | arch/arm/boot/dts/kirkwood-net2big.dts | 30 | ||||
-rw-r--r-- | arch/arm/boot/dts/kirkwood-net5big.dts | 28 | ||||
-rw-r--r-- | arch/arm/boot/dts/kirkwood-netxbig.dtsi | 26 |
3 files changed, 58 insertions, 26 deletions
diff --git a/arch/arm/boot/dts/kirkwood-net2big.dts b/arch/arm/boot/dts/kirkwood-net2big.dts index a98deccee59f..53dc37a3b687 100644 --- a/arch/arm/boot/dts/kirkwood-net2big.dts +++ b/arch/arm/boot/dts/kirkwood-net2big.dts | |||
@@ -28,3 +28,33 @@ | |||
28 | reg = <0x00000000 0x10000000>; | 28 | reg = <0x00000000 0x10000000>; |
29 | }; | 29 | }; |
30 | }; | 30 | }; |
31 | |||
32 | ®ulators { | ||
33 | regulator@2 { | ||
34 | compatible = "regulator-fixed"; | ||
35 | reg = <2>; | ||
36 | regulator-name = "hdd1power"; | ||
37 | regulator-min-microvolt = <5000000>; | ||
38 | regulator-max-microvolt = <5000000>; | ||
39 | enable-active-high; | ||
40 | regulator-always-on; | ||
41 | regulator-boot-on; | ||
42 | gpio = <&gpio0 17 GPIO_ACTIVE_HIGH>; | ||
43 | }; | ||
44 | |||
45 | clocks { | ||
46 | g762_clk: g762-oscillator { | ||
47 | compatible = "fixed-clock"; | ||
48 | #clock-cells = <0>; | ||
49 | clock-frequency = <32768>; | ||
50 | }; | ||
51 | }; | ||
52 | }; | ||
53 | |||
54 | &i2c0 { | ||
55 | g762@3e { | ||
56 | compatible = "gmt,g762"; | ||
57 | reg = <0x3e>; | ||
58 | clocks = <&g762_clk>; | ||
59 | }; | ||
60 | }; | ||
diff --git a/arch/arm/boot/dts/kirkwood-net5big.dts b/arch/arm/boot/dts/kirkwood-net5big.dts index d2887ed493f2..36155b749d9f 100644 --- a/arch/arm/boot/dts/kirkwood-net5big.dts +++ b/arch/arm/boot/dts/kirkwood-net5big.dts | |||
@@ -31,6 +31,18 @@ | |||
31 | }; | 31 | }; |
32 | 32 | ||
33 | ®ulators { | 33 | ®ulators { |
34 | regulator@2 { | ||
35 | compatible = "regulator-fixed"; | ||
36 | reg = <2>; | ||
37 | regulator-name = "hdd1power"; | ||
38 | regulator-min-microvolt = <5000000>; | ||
39 | regulator-max-microvolt = <5000000>; | ||
40 | enable-active-high; | ||
41 | regulator-always-on; | ||
42 | regulator-boot-on; | ||
43 | gpio = <&gpio0 17 GPIO_ACTIVE_HIGH>; | ||
44 | }; | ||
45 | |||
34 | regulator@3 { | 46 | regulator@3 { |
35 | compatible = "regulator-fixed"; | 47 | compatible = "regulator-fixed"; |
36 | reg = <3>; | 48 | reg = <3>; |
@@ -66,6 +78,14 @@ | |||
66 | regulator-boot-on; | 78 | regulator-boot-on; |
67 | gpio = <&gpio1 11 GPIO_ACTIVE_HIGH>; | 79 | gpio = <&gpio1 11 GPIO_ACTIVE_HIGH>; |
68 | }; | 80 | }; |
81 | |||
82 | clocks { | ||
83 | g762_clk: g762-oscillator { | ||
84 | compatible = "fixed-clock"; | ||
85 | #clock-cells = <0>; | ||
86 | clock-frequency = <32768>; | ||
87 | }; | ||
88 | }; | ||
69 | }; | 89 | }; |
70 | 90 | ||
71 | &mdio { | 91 | &mdio { |
@@ -81,3 +101,11 @@ | |||
81 | }; | 101 | }; |
82 | }; | 102 | }; |
83 | 103 | ||
104 | |||
105 | &i2c0 { | ||
106 | g762@3e { | ||
107 | compatible = "gmt,g762"; | ||
108 | reg = <0x3e>; | ||
109 | clocks = <&g762_clk>; | ||
110 | }; | ||
111 | }; | ||
diff --git a/arch/arm/boot/dts/kirkwood-netxbig.dtsi b/arch/arm/boot/dts/kirkwood-netxbig.dtsi index fd75720547e3..b0cfb7cd30b9 100644 --- a/arch/arm/boot/dts/kirkwood-netxbig.dtsi +++ b/arch/arm/boot/dts/kirkwood-netxbig.dtsi | |||
@@ -104,26 +104,6 @@ | |||
104 | regulator-boot-on; | 104 | regulator-boot-on; |
105 | gpio = <&gpio0 16 GPIO_ACTIVE_HIGH>; | 105 | gpio = <&gpio0 16 GPIO_ACTIVE_HIGH>; |
106 | }; | 106 | }; |
107 | |||
108 | regulator@2 { | ||
109 | compatible = "regulator-fixed"; | ||
110 | reg = <2>; | ||
111 | regulator-name = "hdd1power"; | ||
112 | regulator-min-microvolt = <5000000>; | ||
113 | regulator-max-microvolt = <5000000>; | ||
114 | enable-active-high; | ||
115 | regulator-always-on; | ||
116 | regulator-boot-on; | ||
117 | gpio = <&gpio0 17 GPIO_ACTIVE_HIGH>; | ||
118 | }; | ||
119 | |||
120 | clocks { | ||
121 | g762_clk: g762-oscillator { | ||
122 | compatible = "fixed-clock"; | ||
123 | #clock-cells = <0>; | ||
124 | clock-frequency = <32768>; | ||
125 | }; | ||
126 | }; | ||
127 | }; | 107 | }; |
128 | }; | 108 | }; |
129 | 109 | ||
@@ -171,10 +151,4 @@ | |||
171 | pagesize = <16>; | 151 | pagesize = <16>; |
172 | reg = <0x50>; | 152 | reg = <0x50>; |
173 | }; | 153 | }; |
174 | |||
175 | g762@3e { | ||
176 | compatible = "gmt,g762"; | ||
177 | reg = <0x3e>; | ||
178 | clocks = <&g762_clk>; | ||
179 | }; | ||
180 | }; | 154 | }; |