ARM: shmobile: kzm9g-reference dts: Add r2025sd rtc node
[deliverable/linux.git] / arch / arm / boot / dts / sh73a0-kzm9g-reference.dts
CommitLineData
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";
59ab5bff 43 stdout-path = &scifa4;
b8b82b29
SH
44 };
45
46 memory {
47 device_type = "memory";
48 reg = <0x41000000 0x1e800000>;
49 };
50
f017d011 51 reg_1p8v: regulator@0 {
b8b82b29
SH
52 compatible = "regulator-fixed";
53 regulator-name = "fixed-1.8V";
54 regulator-min-microvolt = <1800000>;
55 regulator-max-microvolt = <1800000>;
f017d011
GL
56 regulator-always-on;
57 regulator-boot-on;
58 };
59
c791c036 60 reg_3p3v: regulator@1 {
f017d011 61 compatible = "regulator-fixed";
c791c036
GL
62 regulator-name = "fixed-3.3V";
63 regulator-min-microvolt = <3300000>;
64 regulator-max-microvolt = <3300000>;
f017d011
GL
65 regulator-always-on;
66 regulator-boot-on;
67 };
8c1de8ee 68
f8f77ce9 69 vmmc_sdhi0: regulator@2 {
40c488df 70 compatible = "regulator-fixed";
f8f77ce9
LP
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 {
40c488df 79 compatible = "regulator-fixed";
f8f77ce9
LP
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
8c1de8ee
GL
87 lan9220@10000000 {
88 compatible = "smsc,lan9220", "smsc,lan9115";
89 reg = <0x10000000 0x100>;
90 phy-mode = "mii";
91 interrupt-parent = <&irqpin0>;
72e14c05 92 interrupts = <3 IRQ_TYPE_EDGE_FALLING>;
8c1de8ee
GL
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 };
14692739
LP
99
100 leds {
101 compatible = "gpio-leds";
102 led1 {
103 gpios = <&pfc 20 GPIO_ACTIVE_LOW>;
8ee63b3a 104 label = "LED1";
14692739
LP
105 };
106 led2 {
107 gpios = <&pfc 21 GPIO_ACTIVE_LOW>;
8ee63b3a 108 label = "LED2";
14692739
LP
109 };
110 led3 {
111 gpios = <&pfc 22 GPIO_ACTIVE_LOW>;
8ee63b3a 112 label = "LED3";
14692739
LP
113 };
114 led4 {
115 gpios = <&pfc 23 GPIO_ACTIVE_LOW>;
8ee63b3a 116 label = "LED4";
14692739
LP
117 };
118 };
5ec5f734 119
61f1fb47 120 keyboard {
5ec5f734
LP
121 compatible = "gpio-keys";
122
123 back-key {
124 gpios = <&pcf8575 8 GPIO_ACTIVE_LOW>;
39f01630 125 linux,code = <KEY_BACK>;
5ec5f734
LP
126 label = "SW3";
127 };
128
129 right-key {
130 gpios = <&pcf8575 9 GPIO_ACTIVE_LOW>;
39f01630 131 linux,code = <KEY_RIGHT>;
5ec5f734
LP
132 label = "SW2-R";
133 };
134
135 left-key {
136 gpios = <&pcf8575 10 GPIO_ACTIVE_LOW>;
39f01630 137 linux,code = <KEY_LEFT>;
5ec5f734
LP
138 label = "SW2-L";
139 };
140
141 enter-key {
142 gpios = <&pcf8575 11 GPIO_ACTIVE_LOW>;
39f01630 143 linux,code = <KEY_ENTER>;
5ec5f734
LP
144 label = "SW2-P";
145 };
146
147 up-key {
148 gpios = <&pcf8575 12 GPIO_ACTIVE_LOW>;
39f01630 149 linux,code = <KEY_UP>;
5ec5f734
LP
150 label = "SW2-U";
151 };
152
153 down-key {
154 gpios = <&pcf8575 13 GPIO_ACTIVE_LOW>;
39f01630 155 linux,code = <KEY_DOWN>;
5ec5f734
LP
156 label = "SW2-D";
157 };
158
159 home-key {
160 gpios = <&pcf8575 14 GPIO_ACTIVE_LOW>;
39f01630 161 linux,code = <KEY_HOME>;
5ec5f734
LP
162 label = "SW1";
163 };
164 };
3c2a87c8
KM
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 };
b8b82b29
SH
179};
180
48a0d1e0 181&cmt1 {
338d1f0b 182 status = "okay";
48a0d1e0
UH
183};
184
1a9a6581
UH
185&extal2_clk {
186 clock-frequency = <48000000>;
187};
188
251ed173 189&i2c0 {
eda3a4fa 190 status = "okay";
5c9e2760 191
56b7271c
GU
192 compass@c {
193 compatible = "asahi-kasei,ak8975";
194 reg = <0x0c>;
195 interrupt-parent = <&irqpin3>;
196 interrupts = <4 IRQ_TYPE_EDGE_FALLING>;
197 };
198
5c9e2760
GU
199 ak4648: codec@12 {
200 compatible = "asahi-kasei,ak4648";
201 reg = <0x12>;
202 #sound-dai-cells = <0>;
203 };
204
4bd1dd50
GU
205 accelerometer@1d {
206 compatible = "adi,adxl34x";
207 reg = <0x1d>;
208 interrupt-parent = <&irqpin3>;
209 interrupts = <2 IRQ_TYPE_LEVEL_HIGH>,
210 <3 IRQ_TYPE_LEVEL_HIGH>;
211 };
212
070048dc
GU
213 rtc@32 {
214 compatible = "ricoh,r2025sd";
215 reg = <0x32>;
216 };
217
251ed173
GL
218 as3711@40 {
219 compatible = "ams,as3711";
220 reg = <0x40>;
221
222 regulators {
223 vdd_dvfs: sd1 {
224 regulator-name = "1.315V CPU";
225 regulator-min-microvolt = <1050000>;
226 regulator-max-microvolt = <1350000>;
227 regulator-always-on;
228 regulator-boot-on;
229 };
230 sd2 {
231 regulator-name = "1.8V";
232 regulator-min-microvolt = <1800000>;
233 regulator-max-microvolt = <1800000>;
234 regulator-always-on;
235 regulator-boot-on;
236 };
237 sd4 {
238 regulator-name = "1.215V";
239 regulator-min-microvolt = <1215000>;
240 regulator-max-microvolt = <1235000>;
241 regulator-always-on;
242 regulator-boot-on;
243 };
244 ldo2 {
245 regulator-name = "2.8V CPU";
246 regulator-min-microvolt = <2800000>;
247 regulator-max-microvolt = <2800000>;
248 regulator-always-on;
249 regulator-boot-on;
250 };
251 ldo3 {
252 regulator-name = "3.0V CPU";
253 regulator-min-microvolt = <3000000>;
254 regulator-max-microvolt = <3000000>;
255 regulator-always-on;
256 regulator-boot-on;
257 };
258 ldo4 {
259 regulator-name = "2.8V";
260 regulator-min-microvolt = <2800000>;
261 regulator-max-microvolt = <2800000>;
262 regulator-always-on;
263 regulator-boot-on;
264 };
265 ldo5 {
266 regulator-name = "2.8V #2";
267 regulator-min-microvolt = <2800000>;
268 regulator-max-microvolt = <2800000>;
269 regulator-always-on;
270 regulator-boot-on;
271 };
272 ldo7 {
273 regulator-name = "1.15V CPU";
274 regulator-min-microvolt = <1150000>;
275 regulator-max-microvolt = <1150000>;
276 regulator-always-on;
277 regulator-boot-on;
278 };
279 ldo8 {
280 regulator-name = "1.15V CPU #2";
281 regulator-min-microvolt = <1150000>;
282 regulator-max-microvolt = <1150000>;
283 regulator-always-on;
284 regulator-boot-on;
285 };
286 };
287 };
288};
289
ec028600
LP
290&i2c3 {
291 pinctrl-0 = <&i2c3_pins>;
292 pinctrl-names = "default";
eda3a4fa 293 status = "okay";
a40d9ad3
LP
294
295 pcf8575: gpio@20 {
296 compatible = "nxp,pcf8575";
297 reg = <0x20>;
298 interrupt-parent = <&irqpin2>;
299 interrupts = <3 IRQ_TYPE_EDGE_FALLING>;
300 gpio-controller;
301 #gpio-cells = <2>;
302 interrupt-controller;
303 #interrupt-cells = <2>;
304 };
ec028600
LP
305};
306
b8b82b29 307&mmcif {
ec028600
LP
308 pinctrl-0 = <&mmcif_pins>;
309 pinctrl-names = "default";
310
f017d011
GL
311 bus-width = <8>;
312 vmmc-supply = <&reg_1p8v>;
546e5d3e
GL
313 status = "okay";
314};
315
ec028600 316&pfc {
ec028600
LP
317 i2c3_pins: i2c3 {
318 renesas,groups = "i2c3_1";
319 renesas,function = "i2c3";
320 };
321
26adf1a7 322 mmcif_pins: mmc {
ec028600
LP
323 mux {
324 renesas,groups = "mmc0_data8_0", "mmc0_ctrl_0";
325 renesas,function = "mmc0";
326 };
327 cfg {
328 renesas,groups = "mmc0_data8_0";
329 renesas,pins = "PORT279";
330 bias-pull-up;
331 };
332 };
333
26adf1a7 334 scifa4_pins: serial4 {
ec028600
LP
335 renesas,groups = "scifa4_data", "scifa4_ctrl";
336 renesas,function = "scifa4";
337 };
338
26adf1a7 339 sdhi0_pins: sd0 {
ec028600
LP
340 renesas,groups = "sdhi0_data4", "sdhi0_ctrl", "sdhi0_cd", "sdhi0_wp";
341 renesas,function = "sdhi0";
342 };
343
26adf1a7 344 sdhi2_pins: sd2 {
ec028600
LP
345 renesas,groups = "sdhi2_data4", "sdhi2_ctrl";
346 renesas,function = "sdhi2";
347 };
3c2a87c8
KM
348
349 fsia_pins: sounda {
350 renesas,groups = "fsia_mclk_in", "fsia_sclk_in",
351 "fsia_data_in", "fsia_data_out";
352 renesas,function = "fsia";
353 };
ec028600
LP
354};
355
700ce7c2
SH
356&scifa4 {
357 pinctrl-0 = <&scifa4_pins>;
358 pinctrl-names = "default";
359
360 status = "okay";
361};
362
546e5d3e 363&sdhi0 {
ec028600
LP
364 pinctrl-0 = <&sdhi0_pins>;
365 pinctrl-names = "default";
366
f8f77ce9 367 vmmc-supply = <&vmmc_sdhi0>;
546e5d3e
GL
368 bus-width = <4>;
369 status = "okay";
370};
371
372&sdhi2 {
ec028600
LP
373 pinctrl-0 = <&sdhi2_pins>;
374 pinctrl-names = "default";
375
f8f77ce9 376 vmmc-supply = <&vmmc_sdhi2>;
546e5d3e
GL
377 bus-width = <4>;
378 broken-cd;
379 status = "okay";
b8b82b29 380};
3c2a87c8
KM
381
382&sh_fsi2 {
383 pinctrl-0 = <&fsia_pins>;
384 pinctrl-names = "default";
385
386 status = "okay";
387};
This page took 0.222736 seconds and 5 git commands to generate.