Debian Codegraph @

arch/arm/boot/dts/renesas/sh73a0-kzm9g.dts

raw
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3 * Device Tree Source for the KZM-A9-GT board
4 *
5 * Copyright (C) 2012 Horms Solutions Ltd.
6 *
7 * Based on sh73a0-kzm9g.dts
8 * Copyright (C) 2012 Renesas Solutions Corp.
9 */
10
11 /dts-v1/;
12 #include "sh73a0.dtsi"
13 #include <dt-bindings/gpio/gpio.h>
14 #include <dt-bindings/input/input.h>
15 #include <dt-bindings/interrupt-controller/irq.h>
16
17 / {
18 model = "KZM-A9-GT";
19 compatible = "renesas,kzm9g", "renesas,sh73a0";
20
21 aliases {
22 serial0 = &scifa4;
23 };
24
25 cpus {
26 cpu@0 {
27 cpu0-supply = <&vdd_dvfs>;
28 operating-points = <1196000 1315000>, /* kHz uV */
29 < 598000 1175000>,
30 < 398667 1065000>;
31 voltage-tolerance = <1>; /* 1% */
32 };
33 };
34
35 chosen {
36 bootargs = "root=/dev/nfs ip=on ignore_loglevel rw";
37 stdout-path = "serial0:115200n8";
38 };
39
40 memory@40000000 {
41 device_type = "memory";
42 reg = <0x40000000 0x20000000>;
43 };
44
45 reg_1p8v: regulator-1p8v {
46 compatible = "regulator-fixed";
47 regulator-name = "fixed-1.8V";
48 regulator-min-microvolt = <1800000>;
49 regulator-max-microvolt = <1800000>;
50 regulator-always-on;
51 regulator-boot-on;
52 };
53
54 reg_3p3v: regulator-3p3v {
55 compatible = "regulator-fixed";
56 regulator-name = "fixed-3.3V";
57 regulator-min-microvolt = <3300000>;
58 regulator-max-microvolt = <3300000>;
59 regulator-always-on;
60 regulator-boot-on;
61 };
62
63 vmmc_sdhi0: regulator-vmmc-sdhi0 {
64 compatible = "regulator-fixed";
65 regulator-name = "SDHI0 Vcc";
66 regulator-min-microvolt = <3300000>;
67 regulator-max-microvolt = <3300000>;
68 gpio = <&pfc 15 GPIO_ACTIVE_HIGH>;
69 enable-active-high;
70 };
71
72 vmmc_sdhi2: regulator-vmmc-sdhi2 {
73 compatible = "regulator-fixed";
74 regulator-name = "SDHI2 Vcc";
75 regulator-min-microvolt = <3300000>;
76 regulator-max-microvolt = <3300000>;
77 gpio = <&pfc 14 GPIO_ACTIVE_HIGH>;
78 enable-active-high;
79 };
80
81 leds {
82 compatible = "gpio-leds";
83 led1 {
84 gpios = <&pfc 20 GPIO_ACTIVE_LOW>;
85 label = "LED1";
86 };
87 led2 {
88 gpios = <&pfc 21 GPIO_ACTIVE_LOW>;
89 label = "LED2";
90 };
91 led3 {
92 gpios = <&pfc 22 GPIO_ACTIVE_LOW>;
93 label = "LED3";
94 };
95 led4 {
96 gpios = <&pfc 23 GPIO_ACTIVE_LOW>;
97 label = "LED4";
98 };
99 };
100
101 keyboard {
102 compatible = "gpio-keys";
103
104 back-key {
105 gpios = <&pcf8575 8 GPIO_ACTIVE_LOW>;
106 linux,code = <KEY_BACK>;
107 label = "SW3";
108 };
109
110 right-key {
111 gpios = <&pcf8575 9 GPIO_ACTIVE_LOW>;
112 linux,code = <KEY_RIGHT>;
113 label = "SW2-R";
114 };
115
116 left-key {
117 gpios = <&pcf8575 10 GPIO_ACTIVE_LOW>;
118 linux,code = <KEY_LEFT>;
119 label = "SW2-L";
120 };
121
122 enter-key {
123 gpios = <&pcf8575 11 GPIO_ACTIVE_LOW>;
124 linux,code = <KEY_ENTER>;
125 label = "SW2-P";
126 };
127
128 up-key {
129 gpios = <&pcf8575 12 GPIO_ACTIVE_LOW>;
130 linux,code = <KEY_UP>;
131 label = "SW2-U";
132 };
133
134 down-key {
135 gpios = <&pcf8575 13 GPIO_ACTIVE_LOW>;
136 linux,code = <KEY_DOWN>;
137 label = "SW2-D";
138 };
139
140 home-key {
141 gpios = <&pcf8575 14 GPIO_ACTIVE_LOW>;
142 linux,code = <KEY_HOME>;
143 label = "SW1";
144 wakeup-source;
145 };
146
147 wakeup-key {
148 gpios = <&pfc 159 GPIO_ACTIVE_LOW>;
149 linux,code = <KEY_WAKEUP>;
150 label = "NMI";
151 wakeup-source;
152 };
153 };
154
155 sound {
156 compatible = "simple-audio-card";
157 simple-audio-card,format = "left_j";
158 simple-audio-card,cpu {
159 sound-dai = <&sh_fsi2 0>;
160 };
161 simple-audio-card,codec {
162 sound-dai = <&ak4648>;
163 bitclock-master;
164 frame-master;
165 system-clock-frequency = <11289600>;
166 };
167 };
168 };
169
170 &bsc {
171 ethernet@10000000 {
172 compatible = "smsc,lan9221", "smsc,lan9115";
173 reg = <0x10000000 0x100>;
174 phy-mode = "mii";
175 interrupts-extended = <&irqpin0 3 IRQ_TYPE_EDGE_FALLING>;
176 reg-io-width = <4>;
177 smsc,irq-push-pull;
178 smsc,save-mac-address;
179 vddvario-supply = <&reg_1p8v>;
180 vdd33a-supply = <&reg_3p3v>;
181 };
182 };
183
184 &cmt1 {
185 status = "okay";
186 };
187
188 &extal2_clk {
189 clock-frequency = <48000000>;
190 };
191
192 &i2c0 {
193 status = "okay";
194
195 compass@c {
196 compatible = "asahi-kasei,ak8975";
197 reg = <0x0c>;
198 interrupts-extended = <&irqpin3 4 IRQ_TYPE_EDGE_FALLING>;
199 };
200
201 ak4648: codec@12 {
202 compatible = "asahi-kasei,ak4648";
203 reg = <0x12>;
204 #sound-dai-cells = <0>;
205 };
206
207 accelerometer@1d {
208 compatible = "adi,adxl345";
209 reg = <0x1d>;
210 interrupts-extended = <&irqpin3 2 IRQ_TYPE_LEVEL_HIGH>,
211 <&irqpin3 3 IRQ_TYPE_LEVEL_HIGH>;
212 interrupt-names = "INT1", "INT2";
213 };
214
215 rtc@32 {
216 compatible = "ricoh,r2025sd";
217 reg = <0x32>;
218 };
219
220 as3711@40 {
221 compatible = "ams,as3711";
222 reg = <0x40>;
223
224 regulators {
225 vdd_dvfs: sd1 {
226 regulator-name = "1.315V CPU";
227 regulator-min-microvolt = <1050000>;
228 regulator-max-microvolt = <1350000>;
229 regulator-always-on;
230 regulator-boot-on;
231 };
232 sd2 {
233 regulator-name = "1.8V";
234 regulator-min-microvolt = <1800000>;
235 regulator-max-microvolt = <1800000>;
236 regulator-always-on;
237 regulator-boot-on;
238 };
239 sd4 {
240 regulator-name = "1.215V";
241 regulator-min-microvolt = <1215000>;
242 regulator-max-microvolt = <1235000>;
243 regulator-always-on;
244 regulator-boot-on;
245 };
246 ldo2 {
247 regulator-name = "2.8V CPU";
248 regulator-min-microvolt = <2800000>;
249 regulator-max-microvolt = <2800000>;
250 regulator-always-on;
251 regulator-boot-on;
252 };
253 ldo3 {
254 regulator-name = "3.0V CPU";
255 regulator-min-microvolt = <3000000>;
256 regulator-max-microvolt = <3000000>;
257 regulator-always-on;
258 regulator-boot-on;
259 };
260 ldo4 {
261 regulator-name = "2.8V";
262 regulator-min-microvolt = <2800000>;
263 regulator-max-microvolt = <2800000>;
264 regulator-always-on;
265 regulator-boot-on;
266 };
267 ldo5 {
268 regulator-name = "2.8V #2";
269 regulator-min-microvolt = <2800000>;
270 regulator-max-microvolt = <2800000>;
271 regulator-always-on;
272 regulator-boot-on;
273 };
274 ldo7 {
275 regulator-name = "1.15V CPU";
276 regulator-min-microvolt = <1150000>;
277 regulator-max-microvolt = <1150000>;
278 regulator-always-on;
279 regulator-boot-on;
280 };
281 ldo8 {
282 regulator-name = "1.15V CPU #2";
283 regulator-min-microvolt = <1150000>;
284 regulator-max-microvolt = <1150000>;
285 regulator-always-on;
286 regulator-boot-on;
287 };
288 };
289 };
290 };
291
292 &i2c1 {
293 status = "okay";
294
295 touchscreen@55 {
296 compatible = "sitronix,st1232";
297 reg = <0x55>;
298 interrupts-extended = <&irqpin1 0 IRQ_TYPE_EDGE_FALLING>;
299 };
300 };
301
302 &i2c3 {
303 pinctrl-0 = <&i2c3_pins>;
304 pinctrl-names = "default";
305 status = "okay";
306
307 pcf8575: gpio@20 {
308 compatible = "nxp,pcf8575";
309 reg = <0x20>;
310 interrupts-extended = <&irqpin2 3 IRQ_TYPE_EDGE_FALLING>;
311 gpio-controller;
312 #gpio-cells = <2>;
313 interrupt-controller;
314 #interrupt-cells = <2>;
315 };
316 };
317
318 &mmcif {
319 pinctrl-0 = <&mmcif_pins>;
320 pinctrl-names = "default";
321
322 bus-width = <8>;
323 vmmc-supply = <&reg_1p8v>;
324 status = "okay";
325 };
326
327 &pfc {
328 i2c3_pins: i2c3 {
329 groups = "i2c3_1";
330 function = "i2c3";
331 };
332
333 mmcif_pins: mmc {
334 mux {
335 groups = "mmc0_data8_0", "mmc0_ctrl_0";
336 function = "mmc0";
337 };
338 cfg {
339 groups = "mmc0_data8_0";
340 pins = "PORT279";
341 bias-pull-up;
342 };
343 };
344
345 scifa4_pins: scifa4 {
346 groups = "scifa4_data", "scifa4_ctrl";
347 function = "scifa4";
348 };
349
350 sdhi0_pins: sd0 {
351 groups = "sdhi0_data4", "sdhi0_ctrl", "sdhi0_cd", "sdhi0_wp";
352 function = "sdhi0";
353 };
354
355 sdhi2_pins: sd2 {
356 groups = "sdhi2_data4", "sdhi2_ctrl";
357 function = "sdhi2";
358 };
359
360 fsia_pins: sounda {
361 groups = "fsia_mclk_in", "fsia_sclk_in",
362 "fsia_data_in", "fsia_data_out";
363 function = "fsia";
364 };
365 };
366
367 &scifa4 {
368 pinctrl-0 = <&scifa4_pins>;
369 pinctrl-names = "default";
370
371 uart-has-rtscts;
372 status = "okay";
373 };
374
375 &sdhi0 {
376 pinctrl-0 = <&sdhi0_pins>;
377 pinctrl-names = "default";
378
379 vmmc-supply = <&vmmc_sdhi0>;
380 bus-width = <4>;
381 status = "okay";
382 };
383
384 &sdhi2 {
385 pinctrl-0 = <&sdhi2_pins>;
386 pinctrl-names = "default";
387
388 vmmc-supply = <&vmmc_sdhi2>;
389 bus-width = <4>;
390 broken-cd;
391 status = "okay";
392 };
393
394 &sh_fsi2 {
395 pinctrl-0 = <&fsia_pins>;
396 pinctrl-names = "default";
397
398 status = "okay";
399 };