Commit | Line | Data |
---|---|---|
b8b82b29 SH |
1 | /* |
2 | * Device Tree Source for the KZM-A9-GT board | |
3 | * | |
4 | * Copyright (C) 2012 Horms Solutions Ltd. | |
5 | * | |
6 | * Based on sh73a0-kzm9g.dts | |
7 | * Copyright (C) 2012 Renesas Solutions Corp. | |
8 | * | |
9 | * This file is licensed under the terms of the GNU General Public License | |
10 | * version 2. This program is licensed "as is" without any warranty of any | |
11 | * kind, whether express or implied. | |
12 | */ | |
13 | ||
14 | /dts-v1/; | |
31c46cbf | 15 | #include "sh73a0.dtsi" |
f8f77ce9 | 16 | #include <dt-bindings/gpio/gpio.h> |
39f01630 | 17 | #include <dt-bindings/input/input.h> |
77e2d7e2 | 18 | #include <dt-bindings/interrupt-controller/irq.h> |
b8b82b29 SH |
19 | |
20 | / { | |
21 | model = "KZM-A9-GT"; | |
22 | compatible = "renesas,kzm9g-reference", "renesas,sh73a0"; | |
23 | ||
700ce7c2 SH |
24 | aliases { |
25 | serial4 = &scifa4; | |
26 | }; | |
27 | ||
251ed173 GL |
28 | cpus { |
29 | cpu@0 { | |
30 | cpu0-supply = <&vdd_dvfs>; | |
31 | operating-points = < | |
32 | /* kHz uV */ | |
33 | 1196000 1315000 | |
34 | 598000 1175000 | |
35 | 398667 1065000 | |
36 | >; | |
37 | voltage-tolerance = <1>; /* 1% */ | |
38 | }; | |
39 | }; | |
40 | ||
b8b82b29 | 41 | chosen { |
0b732470 | 42 | bootargs = "console=tty0 console=ttySC4,115200 root=/dev/nfs ip=dhcp ignore_loglevel rw"; |
b8b82b29 SH |
43 | }; |
44 | ||
45 | memory { | |
46 | device_type = "memory"; | |
47 | reg = <0x41000000 0x1e800000>; | |
48 | }; | |
49 | ||
f017d011 | 50 | reg_1p8v: regulator@0 { |
b8b82b29 SH |
51 | compatible = "regulator-fixed"; |
52 | regulator-name = "fixed-1.8V"; | |
53 | regulator-min-microvolt = <1800000>; | |
54 | regulator-max-microvolt = <1800000>; | |
f017d011 GL |
55 | regulator-always-on; |
56 | regulator-boot-on; | |
57 | }; | |
58 | ||
c791c036 | 59 | reg_3p3v: regulator@1 { |
f017d011 | 60 | compatible = "regulator-fixed"; |
c791c036 GL |
61 | regulator-name = "fixed-3.3V"; |
62 | regulator-min-microvolt = <3300000>; | |
63 | regulator-max-microvolt = <3300000>; | |
f017d011 GL |
64 | regulator-always-on; |
65 | regulator-boot-on; | |
66 | }; | |
8c1de8ee | 67 | |
f8f77ce9 | 68 | vmmc_sdhi0: regulator@2 { |
40c488df | 69 | compatible = "regulator-fixed"; |
f8f77ce9 LP |
70 | regulator-name = "SDHI0 Vcc"; |
71 | regulator-min-microvolt = <3300000>; | |
72 | regulator-max-microvolt = <3300000>; | |
73 | gpio = <&pfc 15 GPIO_ACTIVE_HIGH>; | |
74 | enable-active-high; | |
75 | }; | |
76 | ||
77 | vmmc_sdhi2: regulator@3 { | |
40c488df | 78 | compatible = "regulator-fixed"; |
f8f77ce9 LP |
79 | regulator-name = "SDHI2 Vcc"; |
80 | regulator-min-microvolt = <3300000>; | |
81 | regulator-max-microvolt = <3300000>; | |
82 | gpio = <&pfc 14 GPIO_ACTIVE_HIGH>; | |
83 | enable-active-high; | |
84 | }; | |
85 | ||
8c1de8ee GL |
86 | lan9220@10000000 { |
87 | compatible = "smsc,lan9220", "smsc,lan9115"; | |
88 | reg = <0x10000000 0x100>; | |
89 | phy-mode = "mii"; | |
90 | interrupt-parent = <&irqpin0>; | |
72e14c05 | 91 | interrupts = <3 IRQ_TYPE_EDGE_FALLING>; |
8c1de8ee GL |
92 | reg-io-width = <4>; |
93 | smsc,irq-push-pull; | |
94 | smsc,save-mac-address; | |
95 | vddvario-supply = <®_1p8v>; | |
96 | vdd33a-supply = <®_3p3v>; | |
97 | }; | |
14692739 LP |
98 | |
99 | leds { | |
100 | compatible = "gpio-leds"; | |
101 | led1 { | |
102 | gpios = <&pfc 20 GPIO_ACTIVE_LOW>; | |
103 | }; | |
104 | led2 { | |
105 | gpios = <&pfc 21 GPIO_ACTIVE_LOW>; | |
106 | }; | |
107 | led3 { | |
108 | gpios = <&pfc 22 GPIO_ACTIVE_LOW>; | |
109 | }; | |
110 | led4 { | |
111 | gpios = <&pfc 23 GPIO_ACTIVE_LOW>; | |
112 | }; | |
113 | }; | |
5ec5f734 LP |
114 | |
115 | gpio-keys { | |
116 | compatible = "gpio-keys"; | |
117 | ||
118 | back-key { | |
119 | gpios = <&pcf8575 8 GPIO_ACTIVE_LOW>; | |
39f01630 | 120 | linux,code = <KEY_BACK>; |
5ec5f734 LP |
121 | label = "SW3"; |
122 | }; | |
123 | ||
124 | right-key { | |
125 | gpios = <&pcf8575 9 GPIO_ACTIVE_LOW>; | |
39f01630 | 126 | linux,code = <KEY_RIGHT>; |
5ec5f734 LP |
127 | label = "SW2-R"; |
128 | }; | |
129 | ||
130 | left-key { | |
131 | gpios = <&pcf8575 10 GPIO_ACTIVE_LOW>; | |
39f01630 | 132 | linux,code = <KEY_LEFT>; |
5ec5f734 LP |
133 | label = "SW2-L"; |
134 | }; | |
135 | ||
136 | enter-key { | |
137 | gpios = <&pcf8575 11 GPIO_ACTIVE_LOW>; | |
39f01630 | 138 | linux,code = <KEY_ENTER>; |
5ec5f734 LP |
139 | label = "SW2-P"; |
140 | }; | |
141 | ||
142 | up-key { | |
143 | gpios = <&pcf8575 12 GPIO_ACTIVE_LOW>; | |
39f01630 | 144 | linux,code = <KEY_UP>; |
5ec5f734 LP |
145 | label = "SW2-U"; |
146 | }; | |
147 | ||
148 | down-key { | |
149 | gpios = <&pcf8575 13 GPIO_ACTIVE_LOW>; | |
39f01630 | 150 | linux,code = <KEY_DOWN>; |
5ec5f734 LP |
151 | label = "SW2-D"; |
152 | }; | |
153 | ||
154 | home-key { | |
155 | gpios = <&pcf8575 14 GPIO_ACTIVE_LOW>; | |
39f01630 | 156 | linux,code = <KEY_HOME>; |
5ec5f734 LP |
157 | label = "SW1"; |
158 | }; | |
159 | }; | |
3c2a87c8 KM |
160 | |
161 | sound { | |
162 | compatible = "simple-audio-card"; | |
163 | simple-audio-card,format = "left_j"; | |
164 | simple-audio-card,cpu { | |
165 | sound-dai = <&sh_fsi2 0>; | |
166 | }; | |
167 | simple-audio-card,codec { | |
168 | sound-dai = <&ak4648>; | |
169 | bitclock-master; | |
170 | frame-master; | |
171 | system-clock-frequency = <11289600>; | |
172 | }; | |
173 | }; | |
b8b82b29 SH |
174 | }; |
175 | ||
251ed173 | 176 | &i2c0 { |
eda3a4fa | 177 | status = "okay"; |
251ed173 GL |
178 | as3711@40 { |
179 | compatible = "ams,as3711"; | |
180 | reg = <0x40>; | |
181 | ||
182 | regulators { | |
183 | vdd_dvfs: sd1 { | |
184 | regulator-name = "1.315V CPU"; | |
185 | regulator-min-microvolt = <1050000>; | |
186 | regulator-max-microvolt = <1350000>; | |
187 | regulator-always-on; | |
188 | regulator-boot-on; | |
189 | }; | |
190 | sd2 { | |
191 | regulator-name = "1.8V"; | |
192 | regulator-min-microvolt = <1800000>; | |
193 | regulator-max-microvolt = <1800000>; | |
194 | regulator-always-on; | |
195 | regulator-boot-on; | |
196 | }; | |
197 | sd4 { | |
198 | regulator-name = "1.215V"; | |
199 | regulator-min-microvolt = <1215000>; | |
200 | regulator-max-microvolt = <1235000>; | |
201 | regulator-always-on; | |
202 | regulator-boot-on; | |
203 | }; | |
204 | ldo2 { | |
205 | regulator-name = "2.8V CPU"; | |
206 | regulator-min-microvolt = <2800000>; | |
207 | regulator-max-microvolt = <2800000>; | |
208 | regulator-always-on; | |
209 | regulator-boot-on; | |
210 | }; | |
211 | ldo3 { | |
212 | regulator-name = "3.0V CPU"; | |
213 | regulator-min-microvolt = <3000000>; | |
214 | regulator-max-microvolt = <3000000>; | |
215 | regulator-always-on; | |
216 | regulator-boot-on; | |
217 | }; | |
218 | ldo4 { | |
219 | regulator-name = "2.8V"; | |
220 | regulator-min-microvolt = <2800000>; | |
221 | regulator-max-microvolt = <2800000>; | |
222 | regulator-always-on; | |
223 | regulator-boot-on; | |
224 | }; | |
225 | ldo5 { | |
226 | regulator-name = "2.8V #2"; | |
227 | regulator-min-microvolt = <2800000>; | |
228 | regulator-max-microvolt = <2800000>; | |
229 | regulator-always-on; | |
230 | regulator-boot-on; | |
231 | }; | |
232 | ldo7 { | |
233 | regulator-name = "1.15V CPU"; | |
234 | regulator-min-microvolt = <1150000>; | |
235 | regulator-max-microvolt = <1150000>; | |
236 | regulator-always-on; | |
237 | regulator-boot-on; | |
238 | }; | |
239 | ldo8 { | |
240 | regulator-name = "1.15V CPU #2"; | |
241 | regulator-min-microvolt = <1150000>; | |
242 | regulator-max-microvolt = <1150000>; | |
243 | regulator-always-on; | |
244 | regulator-boot-on; | |
245 | }; | |
246 | }; | |
247 | }; | |
3c2a87c8 KM |
248 | |
249 | ak4648: ak4648@0x12 { | |
250 | #sound-dai-cells = <0>; | |
251 | compatible = "asahi-kasei,ak4648"; | |
252 | reg = <0x12>; | |
253 | }; | |
251ed173 GL |
254 | }; |
255 | ||
ec028600 LP |
256 | &i2c3 { |
257 | pinctrl-0 = <&i2c3_pins>; | |
258 | pinctrl-names = "default"; | |
eda3a4fa | 259 | status = "okay"; |
a40d9ad3 LP |
260 | |
261 | pcf8575: gpio@20 { | |
262 | compatible = "nxp,pcf8575"; | |
263 | reg = <0x20>; | |
264 | interrupt-parent = <&irqpin2>; | |
265 | interrupts = <3 IRQ_TYPE_EDGE_FALLING>; | |
266 | gpio-controller; | |
267 | #gpio-cells = <2>; | |
268 | interrupt-controller; | |
269 | #interrupt-cells = <2>; | |
270 | }; | |
ec028600 LP |
271 | }; |
272 | ||
b8b82b29 | 273 | &mmcif { |
ec028600 LP |
274 | pinctrl-0 = <&mmcif_pins>; |
275 | pinctrl-names = "default"; | |
276 | ||
f017d011 GL |
277 | bus-width = <8>; |
278 | vmmc-supply = <®_1p8v>; | |
546e5d3e GL |
279 | status = "okay"; |
280 | }; | |
281 | ||
ec028600 | 282 | &pfc { |
ec028600 LP |
283 | i2c3_pins: i2c3 { |
284 | renesas,groups = "i2c3_1"; | |
285 | renesas,function = "i2c3"; | |
286 | }; | |
287 | ||
26adf1a7 | 288 | mmcif_pins: mmc { |
ec028600 LP |
289 | mux { |
290 | renesas,groups = "mmc0_data8_0", "mmc0_ctrl_0"; | |
291 | renesas,function = "mmc0"; | |
292 | }; | |
293 | cfg { | |
294 | renesas,groups = "mmc0_data8_0"; | |
295 | renesas,pins = "PORT279"; | |
296 | bias-pull-up; | |
297 | }; | |
298 | }; | |
299 | ||
26adf1a7 | 300 | scifa4_pins: serial4 { |
ec028600 LP |
301 | renesas,groups = "scifa4_data", "scifa4_ctrl"; |
302 | renesas,function = "scifa4"; | |
303 | }; | |
304 | ||
26adf1a7 | 305 | sdhi0_pins: sd0 { |
ec028600 LP |
306 | renesas,groups = "sdhi0_data4", "sdhi0_ctrl", "sdhi0_cd", "sdhi0_wp"; |
307 | renesas,function = "sdhi0"; | |
308 | }; | |
309 | ||
26adf1a7 | 310 | sdhi2_pins: sd2 { |
ec028600 LP |
311 | renesas,groups = "sdhi2_data4", "sdhi2_ctrl"; |
312 | renesas,function = "sdhi2"; | |
313 | }; | |
3c2a87c8 KM |
314 | |
315 | fsia_pins: sounda { | |
316 | renesas,groups = "fsia_mclk_in", "fsia_sclk_in", | |
317 | "fsia_data_in", "fsia_data_out"; | |
318 | renesas,function = "fsia"; | |
319 | }; | |
ec028600 LP |
320 | }; |
321 | ||
700ce7c2 SH |
322 | &scifa4 { |
323 | pinctrl-0 = <&scifa4_pins>; | |
324 | pinctrl-names = "default"; | |
325 | ||
326 | status = "okay"; | |
327 | }; | |
328 | ||
546e5d3e | 329 | &sdhi0 { |
ec028600 LP |
330 | pinctrl-0 = <&sdhi0_pins>; |
331 | pinctrl-names = "default"; | |
332 | ||
f8f77ce9 | 333 | vmmc-supply = <&vmmc_sdhi0>; |
546e5d3e GL |
334 | bus-width = <4>; |
335 | status = "okay"; | |
336 | }; | |
337 | ||
338 | &sdhi2 { | |
ec028600 LP |
339 | pinctrl-0 = <&sdhi2_pins>; |
340 | pinctrl-names = "default"; | |
341 | ||
f8f77ce9 | 342 | vmmc-supply = <&vmmc_sdhi2>; |
546e5d3e GL |
343 | bus-width = <4>; |
344 | broken-cd; | |
345 | status = "okay"; | |
b8b82b29 | 346 | }; |
3c2a87c8 KM |
347 | |
348 | &sh_fsi2 { | |
349 | pinctrl-0 = <&fsia_pins>; | |
350 | pinctrl-names = "default"; | |
351 | ||
352 | status = "okay"; | |
353 | }; |