ARM: shmobile: kzm9g-reference dts: Sort i2c0 children by unit address
[deliverable/linux.git] / arch / arm / boot / dts / sh73a0-kzm9g-reference.dts
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/;
15 #include "sh73a0.dtsi"
16 #include <dt-bindings/gpio/gpio.h>
17 #include <dt-bindings/input/input.h>
18 #include <dt-bindings/interrupt-controller/irq.h>
19
20 / {
21 model = "KZM-A9-GT";
22 compatible = "renesas,kzm9g-reference", "renesas,sh73a0";
23
24 aliases {
25 serial4 = &scifa4;
26 };
27
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
41 chosen {
42 bootargs = "console=tty0 console=ttySC4,115200 root=/dev/nfs ip=dhcp ignore_loglevel rw";
43 stdout-path = &scifa4;
44 };
45
46 memory {
47 device_type = "memory";
48 reg = <0x41000000 0x1e800000>;
49 };
50
51 reg_1p8v: regulator@0 {
52 compatible = "regulator-fixed";
53 regulator-name = "fixed-1.8V";
54 regulator-min-microvolt = <1800000>;
55 regulator-max-microvolt = <1800000>;
56 regulator-always-on;
57 regulator-boot-on;
58 };
59
60 reg_3p3v: regulator@1 {
61 compatible = "regulator-fixed";
62 regulator-name = "fixed-3.3V";
63 regulator-min-microvolt = <3300000>;
64 regulator-max-microvolt = <3300000>;
65 regulator-always-on;
66 regulator-boot-on;
67 };
68
69 vmmc_sdhi0: regulator@2 {
70 compatible = "regulator-fixed";
71 regulator-name = "SDHI0 Vcc";
72 regulator-min-microvolt = <3300000>;
73 regulator-max-microvolt = <3300000>;
74 gpio = <&pfc 15 GPIO_ACTIVE_HIGH>;
75 enable-active-high;
76 };
77
78 vmmc_sdhi2: regulator@3 {
79 compatible = "regulator-fixed";
80 regulator-name = "SDHI2 Vcc";
81 regulator-min-microvolt = <3300000>;
82 regulator-max-microvolt = <3300000>;
83 gpio = <&pfc 14 GPIO_ACTIVE_HIGH>;
84 enable-active-high;
85 };
86
87 lan9220@10000000 {
88 compatible = "smsc,lan9220", "smsc,lan9115";
89 reg = <0x10000000 0x100>;
90 phy-mode = "mii";
91 interrupt-parent = <&irqpin0>;
92 interrupts = <3 IRQ_TYPE_EDGE_FALLING>;
93 reg-io-width = <4>;
94 smsc,irq-push-pull;
95 smsc,save-mac-address;
96 vddvario-supply = <&reg_1p8v>;
97 vdd33a-supply = <&reg_3p3v>;
98 };
99
100 leds {
101 compatible = "gpio-leds";
102 led1 {
103 gpios = <&pfc 20 GPIO_ACTIVE_LOW>;
104 label = "LED1";
105 };
106 led2 {
107 gpios = <&pfc 21 GPIO_ACTIVE_LOW>;
108 label = "LED2";
109 };
110 led3 {
111 gpios = <&pfc 22 GPIO_ACTIVE_LOW>;
112 label = "LED3";
113 };
114 led4 {
115 gpios = <&pfc 23 GPIO_ACTIVE_LOW>;
116 label = "LED4";
117 };
118 };
119
120 keyboard {
121 compatible = "gpio-keys";
122
123 back-key {
124 gpios = <&pcf8575 8 GPIO_ACTIVE_LOW>;
125 linux,code = <KEY_BACK>;
126 label = "SW3";
127 };
128
129 right-key {
130 gpios = <&pcf8575 9 GPIO_ACTIVE_LOW>;
131 linux,code = <KEY_RIGHT>;
132 label = "SW2-R";
133 };
134
135 left-key {
136 gpios = <&pcf8575 10 GPIO_ACTIVE_LOW>;
137 linux,code = <KEY_LEFT>;
138 label = "SW2-L";
139 };
140
141 enter-key {
142 gpios = <&pcf8575 11 GPIO_ACTIVE_LOW>;
143 linux,code = <KEY_ENTER>;
144 label = "SW2-P";
145 };
146
147 up-key {
148 gpios = <&pcf8575 12 GPIO_ACTIVE_LOW>;
149 linux,code = <KEY_UP>;
150 label = "SW2-U";
151 };
152
153 down-key {
154 gpios = <&pcf8575 13 GPIO_ACTIVE_LOW>;
155 linux,code = <KEY_DOWN>;
156 label = "SW2-D";
157 };
158
159 home-key {
160 gpios = <&pcf8575 14 GPIO_ACTIVE_LOW>;
161 linux,code = <KEY_HOME>;
162 label = "SW1";
163 };
164 };
165
166 sound {
167 compatible = "simple-audio-card";
168 simple-audio-card,format = "left_j";
169 simple-audio-card,cpu {
170 sound-dai = <&sh_fsi2 0>;
171 };
172 simple-audio-card,codec {
173 sound-dai = <&ak4648>;
174 bitclock-master;
175 frame-master;
176 system-clock-frequency = <11289600>;
177 };
178 };
179 };
180
181 &cmt1 {
182 status = "okay";
183 };
184
185 &extal2_clk {
186 clock-frequency = <48000000>;
187 };
188
189 &i2c0 {
190 status = "okay";
191
192 ak4648: codec@12 {
193 compatible = "asahi-kasei,ak4648";
194 reg = <0x12>;
195 #sound-dai-cells = <0>;
196 };
197
198 as3711@40 {
199 compatible = "ams,as3711";
200 reg = <0x40>;
201
202 regulators {
203 vdd_dvfs: sd1 {
204 regulator-name = "1.315V CPU";
205 regulator-min-microvolt = <1050000>;
206 regulator-max-microvolt = <1350000>;
207 regulator-always-on;
208 regulator-boot-on;
209 };
210 sd2 {
211 regulator-name = "1.8V";
212 regulator-min-microvolt = <1800000>;
213 regulator-max-microvolt = <1800000>;
214 regulator-always-on;
215 regulator-boot-on;
216 };
217 sd4 {
218 regulator-name = "1.215V";
219 regulator-min-microvolt = <1215000>;
220 regulator-max-microvolt = <1235000>;
221 regulator-always-on;
222 regulator-boot-on;
223 };
224 ldo2 {
225 regulator-name = "2.8V CPU";
226 regulator-min-microvolt = <2800000>;
227 regulator-max-microvolt = <2800000>;
228 regulator-always-on;
229 regulator-boot-on;
230 };
231 ldo3 {
232 regulator-name = "3.0V CPU";
233 regulator-min-microvolt = <3000000>;
234 regulator-max-microvolt = <3000000>;
235 regulator-always-on;
236 regulator-boot-on;
237 };
238 ldo4 {
239 regulator-name = "2.8V";
240 regulator-min-microvolt = <2800000>;
241 regulator-max-microvolt = <2800000>;
242 regulator-always-on;
243 regulator-boot-on;
244 };
245 ldo5 {
246 regulator-name = "2.8V #2";
247 regulator-min-microvolt = <2800000>;
248 regulator-max-microvolt = <2800000>;
249 regulator-always-on;
250 regulator-boot-on;
251 };
252 ldo7 {
253 regulator-name = "1.15V CPU";
254 regulator-min-microvolt = <1150000>;
255 regulator-max-microvolt = <1150000>;
256 regulator-always-on;
257 regulator-boot-on;
258 };
259 ldo8 {
260 regulator-name = "1.15V CPU #2";
261 regulator-min-microvolt = <1150000>;
262 regulator-max-microvolt = <1150000>;
263 regulator-always-on;
264 regulator-boot-on;
265 };
266 };
267 };
268 };
269
270 &i2c3 {
271 pinctrl-0 = <&i2c3_pins>;
272 pinctrl-names = "default";
273 status = "okay";
274
275 pcf8575: gpio@20 {
276 compatible = "nxp,pcf8575";
277 reg = <0x20>;
278 interrupt-parent = <&irqpin2>;
279 interrupts = <3 IRQ_TYPE_EDGE_FALLING>;
280 gpio-controller;
281 #gpio-cells = <2>;
282 interrupt-controller;
283 #interrupt-cells = <2>;
284 };
285 };
286
287 &mmcif {
288 pinctrl-0 = <&mmcif_pins>;
289 pinctrl-names = "default";
290
291 bus-width = <8>;
292 vmmc-supply = <&reg_1p8v>;
293 status = "okay";
294 };
295
296 &pfc {
297 i2c3_pins: i2c3 {
298 renesas,groups = "i2c3_1";
299 renesas,function = "i2c3";
300 };
301
302 mmcif_pins: mmc {
303 mux {
304 renesas,groups = "mmc0_data8_0", "mmc0_ctrl_0";
305 renesas,function = "mmc0";
306 };
307 cfg {
308 renesas,groups = "mmc0_data8_0";
309 renesas,pins = "PORT279";
310 bias-pull-up;
311 };
312 };
313
314 scifa4_pins: serial4 {
315 renesas,groups = "scifa4_data", "scifa4_ctrl";
316 renesas,function = "scifa4";
317 };
318
319 sdhi0_pins: sd0 {
320 renesas,groups = "sdhi0_data4", "sdhi0_ctrl", "sdhi0_cd", "sdhi0_wp";
321 renesas,function = "sdhi0";
322 };
323
324 sdhi2_pins: sd2 {
325 renesas,groups = "sdhi2_data4", "sdhi2_ctrl";
326 renesas,function = "sdhi2";
327 };
328
329 fsia_pins: sounda {
330 renesas,groups = "fsia_mclk_in", "fsia_sclk_in",
331 "fsia_data_in", "fsia_data_out";
332 renesas,function = "fsia";
333 };
334 };
335
336 &scifa4 {
337 pinctrl-0 = <&scifa4_pins>;
338 pinctrl-names = "default";
339
340 status = "okay";
341 };
342
343 &sdhi0 {
344 pinctrl-0 = <&sdhi0_pins>;
345 pinctrl-names = "default";
346
347 vmmc-supply = <&vmmc_sdhi0>;
348 bus-width = <4>;
349 status = "okay";
350 };
351
352 &sdhi2 {
353 pinctrl-0 = <&sdhi2_pins>;
354 pinctrl-names = "default";
355
356 vmmc-supply = <&vmmc_sdhi2>;
357 bus-width = <4>;
358 broken-cd;
359 status = "okay";
360 };
361
362 &sh_fsi2 {
363 pinctrl-0 = <&fsia_pins>;
364 pinctrl-names = "default";
365
366 status = "okay";
367 };
This page took 0.085974 seconds and 5 git commands to generate.