diff options
-rw-r--r-- | arch/arm/boot/dts/r8a7790-lager.dts | 28 | ||||
-rw-r--r-- | arch/arm/boot/dts/r8a7790.dtsi | 14 | ||||
-rw-r--r-- | arch/arm/boot/dts/r8a7791-koelsch.dts | 147 | ||||
-rw-r--r-- | arch/arm/boot/dts/r8a7791.dtsi | 43 |
4 files changed, 227 insertions, 5 deletions
diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts index 26a90106e96c..6e99eb2df076 100644 --- a/arch/arm/boot/dts/r8a7790-lager.dts +++ b/arch/arm/boot/dts/r8a7790-lager.dts | |||
@@ -1,7 +1,8 @@ | |||
1 | /* | 1 | /* |
2 | * Device Tree Source for the Lager board | 2 | * Device Tree Source for the Lager board |
3 | * | 3 | * |
4 | * Copyright (C) 2013 Renesas Solutions Corp. | 4 | * Copyright (C) 2013-2014 Renesas Solutions Corp. |
5 | * Copyright (C) 2014 Cogent Embedded, Inc. | ||
5 | * | 6 | * |
6 | * This file is licensed under the terms of the GNU General Public License | 7 | * This file is licensed under the terms of the GNU General Public License |
7 | * version 2. This program is licensed "as is" without any warranty of any | 8 | * version 2. This program is licensed "as is" without any warranty of any |
@@ -124,6 +125,16 @@ | |||
124 | renesas,function = "scif0"; | 125 | renesas,function = "scif0"; |
125 | }; | 126 | }; |
126 | 127 | ||
128 | ether_pins: ether { | ||
129 | renesas,groups = "eth_link", "eth_mdio", "eth_rmii"; | ||
130 | renesas,function = "eth"; | ||
131 | }; | ||
132 | |||
133 | phy1_pins: phy1 { | ||
134 | renesas,groups = "intc_irq0"; | ||
135 | renesas,function = "intc"; | ||
136 | }; | ||
137 | |||
127 | scif1_pins: serial1 { | 138 | scif1_pins: serial1 { |
128 | renesas,groups = "scif1_data"; | 139 | renesas,groups = "scif1_data"; |
129 | renesas,function = "scif1"; | 140 | renesas,function = "scif1"; |
@@ -150,6 +161,21 @@ | |||
150 | }; | 161 | }; |
151 | }; | 162 | }; |
152 | 163 | ||
164 | ðer { | ||
165 | pinctrl-0 = <ðer_pins &phy1_pins>; | ||
166 | pinctrl-names = "default"; | ||
167 | |||
168 | phy-handle = <&phy1>; | ||
169 | renesas,ether-link-active-low; | ||
170 | status = "ok"; | ||
171 | |||
172 | phy1: ethernet-phy@1 { | ||
173 | reg = <1>; | ||
174 | interrupt-parent = <&irqc0>; | ||
175 | interrupts = <0 IRQ_TYPE_LEVEL_LOW>; | ||
176 | }; | ||
177 | }; | ||
178 | |||
153 | &mmcif1 { | 179 | &mmcif1 { |
154 | pinctrl-0 = <&mmc1_pins>; | 180 | pinctrl-0 = <&mmc1_pins>; |
155 | pinctrl-names = "default"; | 181 | pinctrl-names = "default"; |
diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi index 6eb9613d9c8d..e22520dff8c6 100644 --- a/arch/arm/boot/dts/r8a7790.dtsi +++ b/arch/arm/boot/dts/r8a7790.dtsi | |||
@@ -1,7 +1,8 @@ | |||
1 | /* | 1 | /* |
2 | * Device Tree Source for the r8a7790 SoC | 2 | * Device Tree Source for the r8a7790 SoC |
3 | * | 3 | * |
4 | * Copyright (C) 2013 Renesas Solutions Corp. | 4 | * Copyright (C) 2013-2014 Renesas Solutions Corp. |
5 | * Copyright (C) 2014 Cogent Embedded Inc. | ||
5 | * | 6 | * |
6 | * This file is licensed under the terms of the GNU General Public License | 7 | * This file is licensed under the terms of the GNU General Public License |
7 | * version 2. This program is licensed "as is" without any warranty of any | 8 | * version 2. This program is licensed "as is" without any warranty of any |
@@ -379,6 +380,17 @@ | |||
379 | status = "disabled"; | 380 | status = "disabled"; |
380 | }; | 381 | }; |
381 | 382 | ||
383 | ether: ethernet@ee700000 { | ||
384 | compatible = "renesas,ether-r8a7790"; | ||
385 | reg = <0 0xee700000 0 0x400>; | ||
386 | interrupts = <0 162 IRQ_TYPE_LEVEL_HIGH>; | ||
387 | clocks = <&mstp8_clks R8A7790_CLK_ETHER>; | ||
388 | phy-mode = "rmii"; | ||
389 | #address-cells = <1>; | ||
390 | #size-cells = <0>; | ||
391 | status = "disabled"; | ||
392 | }; | ||
393 | |||
382 | sata0: sata@ee300000 { | 394 | sata0: sata@ee300000 { |
383 | compatible = "renesas,sata-r8a7790"; | 395 | compatible = "renesas,sata-r8a7790"; |
384 | reg = <0 0xee300000 0 0x2000>; | 396 | reg = <0 0xee300000 0 0x2000>; |
diff --git a/arch/arm/boot/dts/r8a7791-koelsch.dts b/arch/arm/boot/dts/r8a7791-koelsch.dts index bf6ba0c7faa0..bdd73e6657b2 100644 --- a/arch/arm/boot/dts/r8a7791-koelsch.dts +++ b/arch/arm/boot/dts/r8a7791-koelsch.dts | |||
@@ -2,7 +2,8 @@ | |||
2 | * Device Tree Source for the Koelsch board | 2 | * Device Tree Source for the Koelsch board |
3 | * | 3 | * |
4 | * Copyright (C) 2013 Renesas Electronics Corporation | 4 | * Copyright (C) 2013 Renesas Electronics Corporation |
5 | * Copyright (C) 2013 Renesas Solutions Corp. | 5 | * Copyright (C) 2013-2014 Renesas Solutions Corp. |
6 | * Copyright (C) 2014 Cogent Embedded, Inc. | ||
6 | * | 7 | * |
7 | * This file is licensed under the terms of the GNU General Public License | 8 | * This file is licensed under the terms of the GNU General Public License |
8 | * version 2. This program is licensed "as is" without any warranty of any | 9 | * version 2. This program is licensed "as is" without any warranty of any |
@@ -102,6 +103,78 @@ | |||
102 | gpios = <&gpio2 21 GPIO_ACTIVE_HIGH>; | 103 | gpios = <&gpio2 21 GPIO_ACTIVE_HIGH>; |
103 | }; | 104 | }; |
104 | }; | 105 | }; |
106 | |||
107 | vcc_sdhi0: regulator@0 { | ||
108 | compatible = "regulator-fixed"; | ||
109 | |||
110 | regulator-name = "SDHI0 Vcc"; | ||
111 | regulator-min-microvolt = <3300000>; | ||
112 | regulator-max-microvolt = <3300000>; | ||
113 | |||
114 | gpio = <&gpio7 17 GPIO_ACTIVE_HIGH>; | ||
115 | enable-active-high; | ||
116 | }; | ||
117 | |||
118 | vccq_sdhi0: regulator@1 { | ||
119 | compatible = "regulator-gpio"; | ||
120 | |||
121 | regulator-name = "SDHI0 VccQ"; | ||
122 | regulator-min-microvolt = <1800000>; | ||
123 | regulator-max-microvolt = <3300000>; | ||
124 | |||
125 | gpios = <&gpio2 12 GPIO_ACTIVE_HIGH>; | ||
126 | gpios-states = <1>; | ||
127 | states = <3300000 1 | ||
128 | 1800000 0>; | ||
129 | }; | ||
130 | |||
131 | vcc_sdhi1: regulator@2 { | ||
132 | compatible = "regulator-fixed"; | ||
133 | |||
134 | regulator-name = "SDHI1 Vcc"; | ||
135 | regulator-min-microvolt = <3300000>; | ||
136 | regulator-max-microvolt = <3300000>; | ||
137 | |||
138 | gpio = <&gpio7 18 GPIO_ACTIVE_HIGH>; | ||
139 | enable-active-high; | ||
140 | }; | ||
141 | |||
142 | vccq_sdhi1: regulator@3 { | ||
143 | compatible = "regulator-gpio"; | ||
144 | |||
145 | regulator-name = "SDHI1 VccQ"; | ||
146 | regulator-min-microvolt = <1800000>; | ||
147 | regulator-max-microvolt = <3300000>; | ||
148 | |||
149 | gpios = <&gpio2 13 GPIO_ACTIVE_HIGH>; | ||
150 | gpios-states = <1>; | ||
151 | states = <3300000 1 | ||
152 | 1800000 0>; | ||
153 | }; | ||
154 | |||
155 | vcc_sdhi2: regulator@4 { | ||
156 | compatible = "regulator-fixed"; | ||
157 | |||
158 | regulator-name = "SDHI2 Vcc"; | ||
159 | regulator-min-microvolt = <3300000>; | ||
160 | regulator-max-microvolt = <3300000>; | ||
161 | |||
162 | gpio = <&gpio7 19 GPIO_ACTIVE_HIGH>; | ||
163 | enable-active-high; | ||
164 | }; | ||
165 | |||
166 | vccq_sdhi2: regulator@5 { | ||
167 | compatible = "regulator-gpio"; | ||
168 | |||
169 | regulator-name = "SDHI2 VccQ"; | ||
170 | regulator-min-microvolt = <1800000>; | ||
171 | regulator-max-microvolt = <3300000>; | ||
172 | |||
173 | gpios = <&gpio2 26 GPIO_ACTIVE_HIGH>; | ||
174 | gpios-states = <1>; | ||
175 | states = <3300000 1 | ||
176 | 1800000 0>; | ||
177 | }; | ||
105 | }; | 178 | }; |
106 | 179 | ||
107 | &extal_clk { | 180 | &extal_clk { |
@@ -146,16 +219,88 @@ | |||
146 | renesas,function = "scif1"; | 219 | renesas,function = "scif1"; |
147 | }; | 220 | }; |
148 | 221 | ||
222 | ether_pins: ether { | ||
223 | renesas,groups = "eth_link", "eth_mdio", "eth_rmii"; | ||
224 | renesas,function = "eth"; | ||
225 | }; | ||
226 | |||
227 | phy1_pins: phy1 { | ||
228 | renesas,groups = "intc_irq0"; | ||
229 | renesas,function = "intc"; | ||
230 | }; | ||
231 | |||
232 | sdhi0_pins: sd0 { | ||
233 | renesas,gpios = "sdhi0_data4", "sdhi0_ctrl"; | ||
234 | renesas,function = "sdhi0"; | ||
235 | }; | ||
236 | |||
237 | sdhi1_pins: sd1 { | ||
238 | renesas,gpios = "sdhi1_data4", "sdhi1_ctrl"; | ||
239 | renesas,function = "sdhi1"; | ||
240 | }; | ||
241 | |||
242 | sdhi2_pins: sd2 { | ||
243 | renesas,gpios = "sdhi2_data4", "sdhi2_ctrl"; | ||
244 | renesas,function = "sdhi2"; | ||
245 | }; | ||
246 | |||
149 | qspi_pins: spi { | 247 | qspi_pins: spi { |
150 | renesas,groups = "qspi_ctrl", "qspi_data4"; | 248 | renesas,groups = "qspi_ctrl", "qspi_data4"; |
151 | renesas,function = "qspi"; | 249 | renesas,function = "qspi"; |
152 | }; | 250 | }; |
153 | }; | 251 | }; |
154 | 252 | ||
253 | ðer { | ||
254 | pinctrl-0 = <ðer_pins &phy1_pins>; | ||
255 | pinctrl-names = "default"; | ||
256 | |||
257 | phy-handle = <&phy1>; | ||
258 | renesas,ether-link-active-low; | ||
259 | status = "ok"; | ||
260 | |||
261 | phy1: ethernet-phy@1 { | ||
262 | reg = <1>; | ||
263 | interrupt-parent = <&irqc0>; | ||
264 | interrupts = <0 IRQ_TYPE_LEVEL_LOW>; | ||
265 | }; | ||
266 | }; | ||
267 | |||
155 | &sata0 { | 268 | &sata0 { |
156 | status = "okay"; | 269 | status = "okay"; |
157 | }; | 270 | }; |
158 | 271 | ||
272 | &sdhi0 { | ||
273 | pinctrl-0 = <&sdhi0_pins>; | ||
274 | pinctrl-names = "default"; | ||
275 | |||
276 | vmmc-supply = <&vcc_sdhi0>; | ||
277 | vqmmc-supply = <&vccq_sdhi0>; | ||
278 | cd-gpios = <&gpio6 6 GPIO_ACTIVE_LOW>; | ||
279 | wp-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>; | ||
280 | status = "okay"; | ||
281 | }; | ||
282 | |||
283 | &sdhi1 { | ||
284 | pinctrl-0 = <&sdhi1_pins>; | ||
285 | pinctrl-names = "default"; | ||
286 | |||
287 | vmmc-supply = <&vcc_sdhi1>; | ||
288 | vqmmc-supply = <&vccq_sdhi1>; | ||
289 | cd-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>; | ||
290 | wp-gpios = <&gpio6 15 GPIO_ACTIVE_HIGH>; | ||
291 | status = "okay"; | ||
292 | }; | ||
293 | |||
294 | &sdhi2 { | ||
295 | pinctrl-0 = <&sdhi2_pins>; | ||
296 | pinctrl-names = "default"; | ||
297 | |||
298 | vmmc-supply = <&vcc_sdhi2>; | ||
299 | vqmmc-supply = <&vccq_sdhi2>; | ||
300 | cd-gpios = <&gpio6 22 GPIO_ACTIVE_LOW>; | ||
301 | status = "okay"; | ||
302 | }; | ||
303 | |||
159 | &spi { | 304 | &spi { |
160 | pinctrl-0 = <&qspi_pins>; | 305 | pinctrl-0 = <&qspi_pins>; |
161 | pinctrl-names = "default"; | 306 | pinctrl-names = "default"; |
diff --git a/arch/arm/boot/dts/r8a7791.dtsi b/arch/arm/boot/dts/r8a7791.dtsi index 1ab4f3d5a8c2..b007f9e04ef4 100644 --- a/arch/arm/boot/dts/r8a7791.dtsi +++ b/arch/arm/boot/dts/r8a7791.dtsi | |||
@@ -2,7 +2,8 @@ | |||
2 | * Device Tree Source for the r8a7791 SoC | 2 | * Device Tree Source for the r8a7791 SoC |
3 | * | 3 | * |
4 | * Copyright (C) 2013 Renesas Electronics Corporation | 4 | * Copyright (C) 2013 Renesas Electronics Corporation |
5 | * Copyright (C) 2013 Renesas Solutions Corp. | 5 | * Copyright (C) 2013-2014 Renesas Solutions Corp. |
6 | * Copyright (C) 2014 Cogent Embedded Inc. | ||
6 | * | 7 | * |
7 | * This file is licensed under the terms of the GNU General Public License | 8 | * This file is licensed under the terms of the GNU General Public License |
8 | * version 2. This program is licensed "as is" without any warranty of any | 9 | * version 2. This program is licensed "as is" without any warranty of any |
@@ -245,6 +246,33 @@ | |||
245 | #gpio-range-cells = <3>; | 246 | #gpio-range-cells = <3>; |
246 | }; | 247 | }; |
247 | 248 | ||
249 | sdhi0: sd@ee100000 { | ||
250 | compatible = "renesas,sdhi-r8a7791"; | ||
251 | reg = <0 0xee100000 0 0x200>; | ||
252 | interrupt-parent = <&gic>; | ||
253 | interrupts = <0 165 IRQ_TYPE_LEVEL_HIGH>; | ||
254 | clocks = <&mstp3_clks R8A7791_CLK_SDHI0>; | ||
255 | status = "disabled"; | ||
256 | }; | ||
257 | |||
258 | sdhi1: sd@ee140000 { | ||
259 | compatible = "renesas,sdhi-r8a7791"; | ||
260 | reg = <0 0xee140000 0 0x100>; | ||
261 | interrupt-parent = <&gic>; | ||
262 | interrupts = <0 167 IRQ_TYPE_LEVEL_HIGH>; | ||
263 | clocks = <&mstp3_clks R8A7791_CLK_SDHI1>; | ||
264 | status = "disabled"; | ||
265 | }; | ||
266 | |||
267 | sdhi2: sd@ee160000 { | ||
268 | compatible = "renesas,sdhi-r8a7791"; | ||
269 | reg = <0 0xee160000 0 0x100>; | ||
270 | interrupt-parent = <&gic>; | ||
271 | interrupts = <0 168 IRQ_TYPE_LEVEL_HIGH>; | ||
272 | clocks = <&mstp3_clks R8A7791_CLK_SDHI2>; | ||
273 | status = "disabled"; | ||
274 | }; | ||
275 | |||
248 | scifa0: serial@e6c40000 { | 276 | scifa0: serial@e6c40000 { |
249 | compatible = "renesas,scifa-r8a7791", "renesas,scifa"; | 277 | compatible = "renesas,scifa-r8a7791", "renesas,scifa"; |
250 | reg = <0 0xe6c40000 0 64>; | 278 | reg = <0 0xe6c40000 0 64>; |
@@ -407,6 +435,17 @@ | |||
407 | status = "disabled"; | 435 | status = "disabled"; |
408 | }; | 436 | }; |
409 | 437 | ||
438 | ether: ethernet@ee700000 { | ||
439 | compatible = "renesas,ether-r8a7791"; | ||
440 | reg = <0 0xee700000 0 0x400>; | ||
441 | interrupts = <0 162 IRQ_TYPE_LEVEL_HIGH>; | ||
442 | clocks = <&mstp8_clks R8A7791_CLK_ETHER>; | ||
443 | phy-mode = "rmii"; | ||
444 | #address-cells = <1>; | ||
445 | #size-cells = <0>; | ||
446 | status = "disabled"; | ||
447 | }; | ||
448 | |||
410 | sata0: sata@ee300000 { | 449 | sata0: sata@ee300000 { |
411 | compatible = "renesas,sata-r8a7791"; | 450 | compatible = "renesas,sata-r8a7791"; |
412 | reg = <0 0xee300000 0 0x2000>; | 451 | reg = <0 0xee300000 0 0x2000>; |
@@ -731,7 +770,7 @@ | |||
731 | #clock-cells = <1>; | 770 | #clock-cells = <1>; |
732 | renesas,clock-indices = < | 771 | renesas,clock-indices = < |
733 | R8A7791_CLK_RCAN1 R8A7791_CLK_RCAN0 R8A7791_CLK_QSPI_MOD | 772 | R8A7791_CLK_RCAN1 R8A7791_CLK_RCAN0 R8A7791_CLK_QSPI_MOD |
734 | R8A7791_CLK_I2C4 R8A7791_CLK_I2C4 R8A7791_CLK_I2C3 | 773 | R8A7791_CLK_I2C5 R8A7791_CLK_I2C4 R8A7791_CLK_I2C3 |
735 | R8A7791_CLK_I2C2 R8A7791_CLK_I2C1 R8A7791_CLK_I2C0 | 774 | R8A7791_CLK_I2C2 R8A7791_CLK_I2C1 R8A7791_CLK_I2C0 |
736 | >; | 775 | >; |
737 | clock-output-names = | 776 | clock-output-names = |