diff options
Diffstat (limited to 'arch/arm/boot/dts/r8a7790-lager.dts')
-rw-r--r-- | arch/arm/boot/dts/r8a7790-lager.dts | 153 |
1 files changed, 151 insertions, 2 deletions
diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts index 57569cba1528..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 |
@@ -56,6 +57,54 @@ | |||
56 | regulator-boot-on; | 57 | regulator-boot-on; |
57 | regulator-always-on; | 58 | regulator-always-on; |
58 | }; | 59 | }; |
60 | |||
61 | vcc_sdhi0: regulator@1 { | ||
62 | compatible = "regulator-fixed"; | ||
63 | |||
64 | regulator-name = "SDHI0 Vcc"; | ||
65 | regulator-min-microvolt = <3300000>; | ||
66 | regulator-max-microvolt = <3300000>; | ||
67 | |||
68 | gpio = <&gpio5 24 GPIO_ACTIVE_HIGH>; | ||
69 | enable-active-high; | ||
70 | }; | ||
71 | |||
72 | vccq_sdhi0: regulator@2 { | ||
73 | compatible = "regulator-gpio"; | ||
74 | |||
75 | regulator-name = "SDHI0 VccQ"; | ||
76 | regulator-min-microvolt = <1800000>; | ||
77 | regulator-max-microvolt = <3300000>; | ||
78 | |||
79 | gpios = <&gpio5 29 GPIO_ACTIVE_HIGH>; | ||
80 | gpios-states = <1>; | ||
81 | states = <3300000 1 | ||
82 | 1800000 0>; | ||
83 | }; | ||
84 | |||
85 | vcc_sdhi2: regulator@3 { | ||
86 | compatible = "regulator-fixed"; | ||
87 | |||
88 | regulator-name = "SDHI2 Vcc"; | ||
89 | regulator-min-microvolt = <3300000>; | ||
90 | regulator-max-microvolt = <3300000>; | ||
91 | |||
92 | gpio = <&gpio5 25 GPIO_ACTIVE_HIGH>; | ||
93 | enable-active-high; | ||
94 | }; | ||
95 | |||
96 | vccq_sdhi2: regulator@4 { | ||
97 | compatible = "regulator-gpio"; | ||
98 | |||
99 | regulator-name = "SDHI2 VccQ"; | ||
100 | regulator-min-microvolt = <1800000>; | ||
101 | regulator-max-microvolt = <3300000>; | ||
102 | |||
103 | gpios = <&gpio5 30 GPIO_ACTIVE_HIGH>; | ||
104 | gpios-states = <1>; | ||
105 | states = <3300000 1 | ||
106 | 1800000 0>; | ||
107 | }; | ||
59 | }; | 108 | }; |
60 | 109 | ||
61 | &extal_clk { | 110 | &extal_clk { |
@@ -63,23 +112,68 @@ | |||
63 | }; | 112 | }; |
64 | 113 | ||
65 | &pfc { | 114 | &pfc { |
66 | pinctrl-0 = <&scif0_pins &scif1_pins>; | 115 | pinctrl-0 = <&du_pins &scif0_pins &scif1_pins>; |
67 | pinctrl-names = "default"; | 116 | pinctrl-names = "default"; |
68 | 117 | ||
118 | du_pins: du { | ||
119 | renesas,groups = "du_rgb666", "du_sync_1", "du_clk_out_0"; | ||
120 | renesas,function = "du"; | ||
121 | }; | ||
122 | |||
69 | scif0_pins: serial0 { | 123 | scif0_pins: serial0 { |
70 | renesas,groups = "scif0_data"; | 124 | renesas,groups = "scif0_data"; |
71 | renesas,function = "scif0"; | 125 | renesas,function = "scif0"; |
72 | }; | 126 | }; |
73 | 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 | |||
74 | scif1_pins: serial1 { | 138 | scif1_pins: serial1 { |
75 | renesas,groups = "scif1_data"; | 139 | renesas,groups = "scif1_data"; |
76 | renesas,function = "scif1"; | 140 | renesas,function = "scif1"; |
77 | }; | 141 | }; |
78 | 142 | ||
143 | sdhi0_pins: sd0 { | ||
144 | renesas,gpios = "sdhi0_data4", "sdhi0_ctrl"; | ||
145 | renesas,function = "sdhi0"; | ||
146 | }; | ||
147 | |||
148 | sdhi2_pins: sd2 { | ||
149 | renesas,gpios = "sdhi2_data4", "sdhi2_ctrl"; | ||
150 | renesas,function = "sdhi2"; | ||
151 | }; | ||
152 | |||
79 | mmc1_pins: mmc1 { | 153 | mmc1_pins: mmc1 { |
80 | renesas,groups = "mmc1_data8", "mmc1_ctrl"; | 154 | renesas,groups = "mmc1_data8", "mmc1_ctrl"; |
81 | renesas,function = "mmc1"; | 155 | renesas,function = "mmc1"; |
82 | }; | 156 | }; |
157 | |||
158 | qspi_pins: spi { | ||
159 | renesas,groups = "qspi_ctrl", "qspi_data4"; | ||
160 | renesas,function = "qspi"; | ||
161 | }; | ||
162 | }; | ||
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 | }; | ||
83 | }; | 177 | }; |
84 | 178 | ||
85 | &mmcif1 { | 179 | &mmcif1 { |
@@ -91,3 +185,58 @@ | |||
91 | non-removable; | 185 | non-removable; |
92 | status = "okay"; | 186 | status = "okay"; |
93 | }; | 187 | }; |
188 | |||
189 | &sata1 { | ||
190 | status = "okay"; | ||
191 | }; | ||
192 | |||
193 | &spi { | ||
194 | pinctrl-0 = <&qspi_pins>; | ||
195 | pinctrl-names = "default"; | ||
196 | |||
197 | status = "okay"; | ||
198 | |||
199 | flash: flash@0 { | ||
200 | #address-cells = <1>; | ||
201 | #size-cells = <1>; | ||
202 | compatible = "spansion,s25fl512s"; | ||
203 | reg = <0>; | ||
204 | spi-max-frequency = <30000000>; | ||
205 | m25p,fast-read; | ||
206 | |||
207 | partition@0 { | ||
208 | label = "loader"; | ||
209 | reg = <0x00000000 0x00040000>; | ||
210 | read-only; | ||
211 | }; | ||
212 | partition@40000 { | ||
213 | label = "user"; | ||
214 | reg = <0x00040000 0x00400000>; | ||
215 | read-only; | ||
216 | }; | ||
217 | partition@440000 { | ||
218 | label = "flash"; | ||
219 | reg = <0x00440000 0x03bc0000>; | ||
220 | }; | ||
221 | }; | ||
222 | }; | ||
223 | |||
224 | &sdhi0 { | ||
225 | pinctrl-0 = <&sdhi0_pins>; | ||
226 | pinctrl-names = "default"; | ||
227 | |||
228 | vmmc-supply = <&vcc_sdhi0>; | ||
229 | vqmmc-supply = <&vccq_sdhi0>; | ||
230 | cd-gpios = <&gpio3 6 GPIO_ACTIVE_LOW>; | ||
231 | status = "okay"; | ||
232 | }; | ||
233 | |||
234 | &sdhi2 { | ||
235 | pinctrl-0 = <&sdhi2_pins>; | ||
236 | pinctrl-names = "default"; | ||
237 | |||
238 | vmmc-supply = <&vcc_sdhi2>; | ||
239 | vqmmc-supply = <&vccq_sdhi2>; | ||
240 | cd-gpios = <&gpio3 22 GPIO_ACTIVE_LOW>; | ||
241 | status = "okay"; | ||
242 | }; | ||