Loading...
Note: File does not exist in v6.2.
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 = <®_1p8v>;
180 vdd33a-supply = <®_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 };
213
214 rtc@32 {
215 compatible = "ricoh,r2025sd";
216 reg = <0x32>;
217 };
218
219 as3711@40 {
220 compatible = "ams,as3711";
221 reg = <0x40>;
222
223 regulators {
224 vdd_dvfs: sd1 {
225 regulator-name = "1.315V CPU";
226 regulator-min-microvolt = <1050000>;
227 regulator-max-microvolt = <1350000>;
228 regulator-always-on;
229 regulator-boot-on;
230 };
231 sd2 {
232 regulator-name = "1.8V";
233 regulator-min-microvolt = <1800000>;
234 regulator-max-microvolt = <1800000>;
235 regulator-always-on;
236 regulator-boot-on;
237 };
238 sd4 {
239 regulator-name = "1.215V";
240 regulator-min-microvolt = <1215000>;
241 regulator-max-microvolt = <1235000>;
242 regulator-always-on;
243 regulator-boot-on;
244 };
245 ldo2 {
246 regulator-name = "2.8V CPU";
247 regulator-min-microvolt = <2800000>;
248 regulator-max-microvolt = <2800000>;
249 regulator-always-on;
250 regulator-boot-on;
251 };
252 ldo3 {
253 regulator-name = "3.0V CPU";
254 regulator-min-microvolt = <3000000>;
255 regulator-max-microvolt = <3000000>;
256 regulator-always-on;
257 regulator-boot-on;
258 };
259 ldo4 {
260 regulator-name = "2.8V";
261 regulator-min-microvolt = <2800000>;
262 regulator-max-microvolt = <2800000>;
263 regulator-always-on;
264 regulator-boot-on;
265 };
266 ldo5 {
267 regulator-name = "2.8V #2";
268 regulator-min-microvolt = <2800000>;
269 regulator-max-microvolt = <2800000>;
270 regulator-always-on;
271 regulator-boot-on;
272 };
273 ldo7 {
274 regulator-name = "1.15V CPU";
275 regulator-min-microvolt = <1150000>;
276 regulator-max-microvolt = <1150000>;
277 regulator-always-on;
278 regulator-boot-on;
279 };
280 ldo8 {
281 regulator-name = "1.15V CPU #2";
282 regulator-min-microvolt = <1150000>;
283 regulator-max-microvolt = <1150000>;
284 regulator-always-on;
285 regulator-boot-on;
286 };
287 };
288 };
289};
290
291&i2c1 {
292 status = "okay";
293
294 touchscreen@55 {
295 compatible = "sitronix,st1232";
296 reg = <0x55>;
297 interrupts-extended = <&irqpin1 0 IRQ_TYPE_EDGE_FALLING>;
298 };
299};
300
301&i2c3 {
302 pinctrl-0 = <&i2c3_pins>;
303 pinctrl-names = "default";
304 status = "okay";
305
306 pcf8575: gpio@20 {
307 compatible = "nxp,pcf8575";
308 reg = <0x20>;
309 interrupts-extended = <&irqpin2 3 IRQ_TYPE_EDGE_FALLING>;
310 gpio-controller;
311 #gpio-cells = <2>;
312 interrupt-controller;
313 #interrupt-cells = <2>;
314 };
315};
316
317&mmcif {
318 pinctrl-0 = <&mmcif_pins>;
319 pinctrl-names = "default";
320
321 bus-width = <8>;
322 vmmc-supply = <®_1p8v>;
323 status = "okay";
324};
325
326&pfc {
327 i2c3_pins: i2c3 {
328 groups = "i2c3_1";
329 function = "i2c3";
330 };
331
332 mmcif_pins: mmc {
333 mux {
334 groups = "mmc0_data8_0", "mmc0_ctrl_0";
335 function = "mmc0";
336 };
337 cfg {
338 groups = "mmc0_data8_0";
339 pins = "PORT279";
340 bias-pull-up;
341 };
342 };
343
344 scifa4_pins: scifa4 {
345 groups = "scifa4_data", "scifa4_ctrl";
346 function = "scifa4";
347 };
348
349 sdhi0_pins: sd0 {
350 groups = "sdhi0_data4", "sdhi0_ctrl", "sdhi0_cd", "sdhi0_wp";
351 function = "sdhi0";
352 };
353
354 sdhi2_pins: sd2 {
355 groups = "sdhi2_data4", "sdhi2_ctrl";
356 function = "sdhi2";
357 };
358
359 fsia_pins: sounda {
360 groups = "fsia_mclk_in", "fsia_sclk_in",
361 "fsia_data_in", "fsia_data_out";
362 function = "fsia";
363 };
364};
365
366&scifa4 {
367 pinctrl-0 = <&scifa4_pins>;
368 pinctrl-names = "default";
369
370 uart-has-rtscts;
371 status = "okay";
372};
373
374&sdhi0 {
375 pinctrl-0 = <&sdhi0_pins>;
376 pinctrl-names = "default";
377
378 vmmc-supply = <&vmmc_sdhi0>;
379 bus-width = <4>;
380 status = "okay";
381};
382
383&sdhi2 {
384 pinctrl-0 = <&sdhi2_pins>;
385 pinctrl-names = "default";
386
387 vmmc-supply = <&vmmc_sdhi2>;
388 bus-width = <4>;
389 broken-cd;
390 status = "okay";
391};
392
393&sh_fsi2 {
394 pinctrl-0 = <&fsia_pins>;
395 pinctrl-names = "default";
396
397 status = "okay";
398};