diff options
author | Olof Johansson <olof@lixom.net> | 2014-07-20 15:22:56 -0400 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2014-07-20 15:22:56 -0400 |
commit | 87adf92b95715ece8c8102e465d0682d57037d22 (patch) | |
tree | 15fab7157c9337d927bc487ee45f17f782f5d106 | |
parent | aaaa10b0961f1fca534dea100ace0fc2991a07dd (diff) | |
parent | d854fa8a1500bec982ed9cb26b82d96bd5ae8dab (diff) |
Merge tag 'mvebu-dt-3.17' of git://git.infradead.org/linux-mvebu into next/dt
Merge "ARM: mvebu: DT changes for v3.17" from Jason Cooper:
mvebu DT changes for v3.17
- kirkwood
* add boards net2big and net5big
- dove
* add vendor prefix for SolidRun
* split CuBox into it's variants
* tag 'mvebu-dt-3.17' of git://git.infradead.org/linux-mvebu:
ARM: kirkwood: fix net5big regulator gpio assignments
ARM: dts: mvebu: split SolidRun CuBox into variants
dt-binding: add vendor prefix for SolidRun
ARM: Kirkwood: Add DT descriptions for net2big and net5big.
Signed-off-by: Olof Johansson <olof@lixom.net>
-rw-r--r-- | Documentation/devicetree/bindings/vendor-prefixes.txt | 1 | ||||
-rw-r--r-- | arch/arm/boot/dts/Makefile | 3 | ||||
-rw-r--r-- | arch/arm/boot/dts/dove-cubox-es.dts | 12 | ||||
-rw-r--r-- | arch/arm/boot/dts/dove-cubox.dts | 3 | ||||
-rw-r--r-- | arch/arm/boot/dts/kirkwood-net2big.dts | 30 | ||||
-rw-r--r-- | arch/arm/boot/dts/kirkwood-net5big.dts | 83 | ||||
-rw-r--r-- | arch/arm/boot/dts/kirkwood-netxbig.dtsi | 180 |
7 files changed, 309 insertions, 3 deletions
diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt index 46a311e728a8..4c4883e05df7 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.txt +++ b/Documentation/devicetree/bindings/vendor-prefixes.txt | |||
@@ -122,6 +122,7 @@ sii Seiko Instruments, Inc. | |||
122 | sirf SiRF Technology, Inc. | 122 | sirf SiRF Technology, Inc. |
123 | smsc Standard Microsystems Corporation | 123 | smsc Standard Microsystems Corporation |
124 | snps Synopsys, Inc. | 124 | snps Synopsys, Inc. |
125 | solidrun SolidRun | ||
125 | spansion Spansion Inc. | 126 | spansion Spansion Inc. |
126 | st STMicroelectronics | 127 | st STMicroelectronics |
127 | ste ST-Ericsson | 128 | ste ST-Ericsson |
diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 81bd72af529e..41c73a1f08df 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile | |||
@@ -125,6 +125,8 @@ kirkwood := \ | |||
125 | kirkwood-lsxhl.dtb \ | 125 | kirkwood-lsxhl.dtb \ |
126 | kirkwood-mplcec4.dtb \ | 126 | kirkwood-mplcec4.dtb \ |
127 | kirkwood-mv88f6281gtw-ge.dtb \ | 127 | kirkwood-mv88f6281gtw-ge.dtb \ |
128 | kirkwood-net2big.dtb \ | ||
129 | kirkwood-net5big.dtb \ | ||
128 | kirkwood-netgear_readynas_duo_v2.dtb \ | 130 | kirkwood-netgear_readynas_duo_v2.dtb \ |
129 | kirkwood-netgear_readynas_nv+_v2.dtb \ | 131 | kirkwood-netgear_readynas_nv+_v2.dtb \ |
130 | kirkwood-ns2.dtb \ | 132 | kirkwood-ns2.dtb \ |
@@ -471,6 +473,7 @@ dtb-$(CONFIG_MACH_ARMADA_XP) += \ | |||
471 | armada-xp-openblocks-ax3-4.dtb | 473 | armada-xp-openblocks-ax3-4.dtb |
472 | dtb-$(CONFIG_MACH_DOVE) += dove-cm-a510.dtb \ | 474 | dtb-$(CONFIG_MACH_DOVE) += dove-cm-a510.dtb \ |
473 | dove-cubox.dtb \ | 475 | dove-cubox.dtb \ |
476 | dove-cubox-es.dtb \ | ||
474 | dove-d2plug.dtb \ | 477 | dove-d2plug.dtb \ |
475 | dove-d3plug.dtb \ | 478 | dove-d3plug.dtb \ |
476 | dove-dove-db.dtb | 479 | dove-dove-db.dtb |
diff --git a/arch/arm/boot/dts/dove-cubox-es.dts b/arch/arm/boot/dts/dove-cubox-es.dts new file mode 100644 index 000000000000..e28ef056dd17 --- /dev/null +++ b/arch/arm/boot/dts/dove-cubox-es.dts | |||
@@ -0,0 +1,12 @@ | |||
1 | #include "dove-cubox.dts" | ||
2 | |||
3 | / { | ||
4 | model = "SolidRun CuBox (Engineering Sample)"; | ||
5 | compatible = "solidrun,cubox-es", "solidrun,cubox", "marvell,dove"; | ||
6 | }; | ||
7 | |||
8 | &sdio0 { | ||
9 | /* sdio0 card detect is connected to wrong pin on CuBox ES */ | ||
10 | cd-gpios = <&gpio0 12 1>; | ||
11 | pinctrl-0 = <&pmx_sdio0 &pmx_gpio_12>; | ||
12 | }; | ||
diff --git a/arch/arm/boot/dts/dove-cubox.dts b/arch/arm/boot/dts/dove-cubox.dts index 7a70f4ca502a..aae7efc09b0b 100644 --- a/arch/arm/boot/dts/dove-cubox.dts +++ b/arch/arm/boot/dts/dove-cubox.dts | |||
@@ -111,9 +111,6 @@ | |||
111 | 111 | ||
112 | &sdio0 { | 112 | &sdio0 { |
113 | status = "okay"; | 113 | status = "okay"; |
114 | /* sdio0 card detect is connected to wrong pin on CuBox */ | ||
115 | cd-gpios = <&gpio0 12 1>; | ||
116 | pinctrl-0 = <&pmx_sdio0 &pmx_gpio_12>; | ||
117 | }; | 114 | }; |
118 | 115 | ||
119 | &spi0 { | 116 | &spi0 { |
diff --git a/arch/arm/boot/dts/kirkwood-net2big.dts b/arch/arm/boot/dts/kirkwood-net2big.dts new file mode 100644 index 000000000000..a98deccee59f --- /dev/null +++ b/arch/arm/boot/dts/kirkwood-net2big.dts | |||
@@ -0,0 +1,30 @@ | |||
1 | /* | ||
2 | * Device Tree file for LaCie 2Big Network v2 | ||
3 | * | ||
4 | * Copyright (C) 2014 | ||
5 | * | ||
6 | * Andrew Lunn <andrew@lunn.ch> | ||
7 | * | ||
8 | * Based on netxbig_v2-setup.c, | ||
9 | * Copyright (C) 2010 Simon Guinot <sguinot@lacie.com> | ||
10 | * | ||
11 | * This file is licensed under the terms of the GNU General Public | ||
12 | * License version 2. This program is licensed "as is" without any | ||
13 | * warranty of any kind, whether express or implied. | ||
14 | */ | ||
15 | |||
16 | /dts-v1/; | ||
17 | |||
18 | #include "kirkwood.dtsi" | ||
19 | #include "kirkwood-6281.dtsi" | ||
20 | #include "kirkwood-netxbig.dtsi" | ||
21 | |||
22 | / { | ||
23 | model = "LaCie 2Big Network v2"; | ||
24 | compatible = "lacie,net2big_v2", "lacie,netxbig", "marvell,kirkwood-88f6281", "marvell,kirkwood"; | ||
25 | |||
26 | memory { | ||
27 | device_type = "memory"; | ||
28 | reg = <0x00000000 0x10000000>; | ||
29 | }; | ||
30 | }; | ||
diff --git a/arch/arm/boot/dts/kirkwood-net5big.dts b/arch/arm/boot/dts/kirkwood-net5big.dts new file mode 100644 index 000000000000..d2887ed493f2 --- /dev/null +++ b/arch/arm/boot/dts/kirkwood-net5big.dts | |||
@@ -0,0 +1,83 @@ | |||
1 | /* | ||
2 | * Device Tree file for LaCie 5Big Network v2 | ||
3 | * | ||
4 | * Copyright (C) 2014 | ||
5 | * | ||
6 | * Andrew Lunn <andrew@lunn.ch> | ||
7 | * | ||
8 | * Based on netxbig_v2-setup.c, | ||
9 | * Copyright (C) 2010 Simon Guinot <sguinot@lacie.com> | ||
10 | * | ||
11 | * This file is licensed under the terms of the GNU General Public | ||
12 | * License version 2. This program is licensed "as is" without any | ||
13 | * warranty of any kind, whether express or implied. | ||
14 | */ | ||
15 | |||
16 | /dts-v1/; | ||
17 | |||
18 | #include "kirkwood.dtsi" | ||
19 | #include "kirkwood-6281.dtsi" | ||
20 | #include "kirkwood-netxbig.dtsi" | ||
21 | |||
22 | / { | ||
23 | model = "LaCie 5Big Network v2"; | ||
24 | compatible = "lacie,net5big_v2", "lacie,netxbig", "marvell,kirkwood-88f6281", "marvell,kirkwood"; | ||
25 | |||
26 | memory { | ||
27 | device_type = "memory"; | ||
28 | reg = <0x00000000 0x20000000>; | ||
29 | }; | ||
30 | |||
31 | }; | ||
32 | |||
33 | ®ulators { | ||
34 | regulator@3 { | ||
35 | compatible = "regulator-fixed"; | ||
36 | reg = <3>; | ||
37 | regulator-name = "hdd2power"; | ||
38 | regulator-min-microvolt = <5000000>; | ||
39 | regulator-max-microvolt = <5000000>; | ||
40 | enable-active-high; | ||
41 | regulator-always-on; | ||
42 | regulator-boot-on; | ||
43 | gpio = <&gpio1 9 GPIO_ACTIVE_HIGH>; | ||
44 | }; | ||
45 | |||
46 | regulator@4 { | ||
47 | compatible = "regulator-fixed"; | ||
48 | reg = <4>; | ||
49 | regulator-name = "hdd3power"; | ||
50 | regulator-min-microvolt = <5000000>; | ||
51 | regulator-max-microvolt = <5000000>; | ||
52 | enable-active-high; | ||
53 | regulator-always-on; | ||
54 | regulator-boot-on; | ||
55 | gpio = <&gpio1 10 GPIO_ACTIVE_HIGH>; | ||
56 | }; | ||
57 | |||
58 | regulator@5 { | ||
59 | compatible = "regulator-fixed"; | ||
60 | reg = <5>; | ||
61 | regulator-name = "hdd4power"; | ||
62 | regulator-min-microvolt = <5000000>; | ||
63 | regulator-max-microvolt = <5000000>; | ||
64 | enable-active-high; | ||
65 | regulator-always-on; | ||
66 | regulator-boot-on; | ||
67 | gpio = <&gpio1 11 GPIO_ACTIVE_HIGH>; | ||
68 | }; | ||
69 | }; | ||
70 | |||
71 | &mdio { | ||
72 | ethphy1: ethernet-phy@1 { | ||
73 | reg = <0>; | ||
74 | }; | ||
75 | }; | ||
76 | |||
77 | ð1 { | ||
78 | status = "okay"; | ||
79 | ethernet1-port@0 { | ||
80 | phy-handle = <ðphy1>; | ||
81 | }; | ||
82 | }; | ||
83 | |||
diff --git a/arch/arm/boot/dts/kirkwood-netxbig.dtsi b/arch/arm/boot/dts/kirkwood-netxbig.dtsi new file mode 100644 index 000000000000..fd75720547e3 --- /dev/null +++ b/arch/arm/boot/dts/kirkwood-netxbig.dtsi | |||
@@ -0,0 +1,180 @@ | |||
1 | /* | ||
2 | * Device Tree common file for LaCie 2Big and 5Big Network v2 | ||
3 | * | ||
4 | * Copyright (C) 2014 | ||
5 | * | ||
6 | * Andrew Lunn <andrew@lunn.ch> | ||
7 | * | ||
8 | * Based on netxbig_v2-setup.c, | ||
9 | * Copyright (C) 2010 Simon Guinot <sguinot@lacie.com> | ||
10 | * | ||
11 | * This file is licensed under the terms of the GNU General Public | ||
12 | * License version 2. This program is licensed "as is" without any | ||
13 | * warranty of any kind, whether express or implied. | ||
14 | */ | ||
15 | |||
16 | #include "kirkwood.dtsi" | ||
17 | #include "kirkwood-6281.dtsi" | ||
18 | |||
19 | / { | ||
20 | chosen { | ||
21 | bootargs = "console=ttyS0,115200n8"; | ||
22 | stdout-path = &uart0; | ||
23 | }; | ||
24 | |||
25 | ocp@f1000000 { | ||
26 | serial@12000 { | ||
27 | status = "okay"; | ||
28 | }; | ||
29 | |||
30 | spi@10600 { | ||
31 | status = "okay"; | ||
32 | |||
33 | flash@0 { | ||
34 | #address-cells = <1>; | ||
35 | #size-cells = <1>; | ||
36 | compatible = "mxicy,mx25l4005a"; | ||
37 | reg = <0>; | ||
38 | spi-max-frequency = <20000000>; | ||
39 | mode = <0>; | ||
40 | |||
41 | partition@0 { | ||
42 | reg = <0x0 0x80000>; | ||
43 | label = "u-boot"; | ||
44 | }; | ||
45 | }; | ||
46 | }; | ||
47 | |||
48 | sata@80000 { | ||
49 | status = "okay"; | ||
50 | nr-ports = <2>; | ||
51 | }; | ||
52 | |||
53 | }; | ||
54 | |||
55 | gpio-keys { | ||
56 | compatible = "gpio-keys"; | ||
57 | #address-cells = <1>; | ||
58 | #size-cells = <0>; | ||
59 | |||
60 | /* | ||
61 | * button@1 and button@2 represent a three position rocker | ||
62 | * switch. Thus the conventional KEY_POWER does not fit | ||
63 | */ | ||
64 | button@1 { | ||
65 | label = "Back power switch (on|auto)"; | ||
66 | linux,code = <KEY_ESC>; | ||
67 | linux,input-type = <5>; | ||
68 | gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; | ||
69 | }; | ||
70 | button@2 { | ||
71 | label = "Back power switch (auto|off)"; | ||
72 | linux,code = <KEY_1>; | ||
73 | linux,input-type = <5>; | ||
74 | gpios = <&gpio0 15 GPIO_ACTIVE_LOW>; | ||
75 | }; | ||
76 | button@3 { | ||
77 | label = "Function button"; | ||
78 | linux,code = <KEY_OPTION>; | ||
79 | gpios = <&gpio1 2 GPIO_ACTIVE_LOW>; | ||
80 | }; | ||
81 | |||
82 | }; | ||
83 | |||
84 | gpio-poweroff { | ||
85 | compatible = "gpio-poweroff"; | ||
86 | gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; | ||
87 | }; | ||
88 | |||
89 | regulators: regulators { | ||
90 | status = "okay"; | ||
91 | compatible = "simple-bus"; | ||
92 | #address-cells = <1>; | ||
93 | #size-cells = <0>; | ||
94 | pinctrl-names = "default"; | ||
95 | |||
96 | regulator@1 { | ||
97 | compatible = "regulator-fixed"; | ||
98 | reg = <1>; | ||
99 | regulator-name = "hdd0power"; | ||
100 | regulator-min-microvolt = <5000000>; | ||
101 | regulator-max-microvolt = <5000000>; | ||
102 | enable-active-high; | ||
103 | regulator-always-on; | ||
104 | regulator-boot-on; | ||
105 | gpio = <&gpio0 16 GPIO_ACTIVE_HIGH>; | ||
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 | }; | ||
128 | }; | ||
129 | |||
130 | &mdio { | ||
131 | status = "okay"; | ||
132 | |||
133 | ethphy0: ethernet-phy@0 { | ||
134 | reg = <8>; | ||
135 | }; | ||
136 | |||
137 | ethphy1: ethernet-phy@1 { | ||
138 | reg = <0>; | ||
139 | }; | ||
140 | }; | ||
141 | |||
142 | ð0 { | ||
143 | status = "okay"; | ||
144 | ethernet0-port@0 { | ||
145 | phy-handle = <ðphy0>; | ||
146 | }; | ||
147 | }; | ||
148 | |||
149 | &pinctrl { | ||
150 | pinctrl-names = "default"; | ||
151 | |||
152 | pmx_button_function: pmx-button-function { | ||
153 | marvell,pins = "mpp34"; | ||
154 | marvell,function = "gpio"; | ||
155 | }; | ||
156 | pmx_button_power_off: pmx-button-power-off { | ||
157 | marvell,pins = "mpp15"; | ||
158 | marvell,function = "gpio"; | ||
159 | }; | ||
160 | pmx_button_power_on: pmx-button-power-on { | ||
161 | marvell,pins = "mpp13"; | ||
162 | marvell,function = "gpio"; | ||
163 | }; | ||
164 | }; | ||
165 | |||
166 | &i2c0 { | ||
167 | status = "okay"; | ||
168 | |||
169 | eeprom@50 { | ||
170 | compatible = "atmel,24c04"; | ||
171 | pagesize = <16>; | ||
172 | reg = <0x50>; | ||
173 | }; | ||
174 | |||
175 | g762@3e { | ||
176 | compatible = "gmt,g762"; | ||
177 | reg = <0x3e>; | ||
178 | clocks = <&g762_clk>; | ||
179 | }; | ||
180 | }; | ||