Add the rt linux 4.1.3-rt3 as base
[kvmfornfv.git] / kernel / arch / arm / boot / dts / sh73a0-kzm9g.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", "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 = <0x40000000 0x20000000>;
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         leds {
88                 compatible = "gpio-leds";
89                 led1 {
90                         gpios = <&pfc 20 GPIO_ACTIVE_LOW>;
91                         label = "LED1";
92                 };
93                 led2 {
94                         gpios = <&pfc 21 GPIO_ACTIVE_LOW>;
95                         label = "LED2";
96                 };
97                 led3 {
98                         gpios = <&pfc 22 GPIO_ACTIVE_LOW>;
99                         label = "LED3";
100                 };
101                 led4 {
102                         gpios = <&pfc 23 GPIO_ACTIVE_LOW>;
103                         label = "LED4";
104                 };
105         };
106
107         keyboard {
108                 compatible = "gpio-keys";
109
110                 back-key {
111                         gpios = <&pcf8575 8 GPIO_ACTIVE_LOW>;
112                         linux,code = <KEY_BACK>;
113                         label = "SW3";
114                 };
115
116                 right-key {
117                         gpios = <&pcf8575 9 GPIO_ACTIVE_LOW>;
118                         linux,code = <KEY_RIGHT>;
119                         label = "SW2-R";
120                 };
121
122                 left-key {
123                         gpios = <&pcf8575 10 GPIO_ACTIVE_LOW>;
124                         linux,code = <KEY_LEFT>;
125                         label = "SW2-L";
126                 };
127
128                 enter-key {
129                         gpios = <&pcf8575 11 GPIO_ACTIVE_LOW>;
130                         linux,code = <KEY_ENTER>;
131                         label = "SW2-P";
132                 };
133
134                 up-key {
135                         gpios = <&pcf8575 12 GPIO_ACTIVE_LOW>;
136                         linux,code = <KEY_UP>;
137                         label = "SW2-U";
138                 };
139
140                 down-key {
141                         gpios = <&pcf8575 13 GPIO_ACTIVE_LOW>;
142                         linux,code = <KEY_DOWN>;
143                         label = "SW2-D";
144                 };
145
146                 home-key {
147                         gpios = <&pcf8575 14 GPIO_ACTIVE_LOW>;
148                         linux,code = <KEY_HOME>;
149                         label = "SW1";
150                 };
151         };
152
153         sound {
154                 compatible = "simple-audio-card";
155                 simple-audio-card,format = "left_j";
156                 simple-audio-card,cpu {
157                         sound-dai = <&sh_fsi2 0>;
158                 };
159                 simple-audio-card,codec {
160                         sound-dai = <&ak4648>;
161                         bitclock-master;
162                         frame-master;
163                         system-clock-frequency = <11289600>;
164                 };
165         };
166 };
167
168 &bsc {
169         ethernet@10000000 {
170                 compatible = "smsc,lan9220", "smsc,lan9115";
171                 reg = <0x10000000 0x100>;
172                 phy-mode = "mii";
173                 interrupt-parent = <&irqpin0>;
174                 interrupts = <3 IRQ_TYPE_EDGE_FALLING>;
175                 reg-io-width = <4>;
176                 smsc,irq-push-pull;
177                 smsc,save-mac-address;
178                 vddvario-supply = <&reg_1p8v>;
179                 vdd33a-supply = <&reg_3p3v>;
180         };
181 };
182
183 &cmt1 {
184         status = "okay";
185 };
186
187 &extal2_clk {
188         clock-frequency = <48000000>;
189 };
190
191 &i2c0 {
192         status = "okay";
193
194         compass@c {
195                 compatible = "asahi-kasei,ak8975";
196                 reg = <0x0c>;
197                 interrupt-parent = <&irqpin3>;
198                 interrupts = <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,adxl34x";
209                 reg = <0x1d>;
210                 interrupt-parent = <&irqpin3>;
211                 interrupts = <2 IRQ_TYPE_LEVEL_HIGH>,
212                              <3 IRQ_TYPE_LEVEL_HIGH>;
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                 interrupt-parent = <&irqpin1>;
299                 interrupts = <0 IRQ_TYPE_EDGE_FALLING>;
300         };
301 };
302
303 &i2c3 {
304         pinctrl-0 = <&i2c3_pins>;
305         pinctrl-names = "default";
306         status = "okay";
307
308         pcf8575: gpio@20 {
309                 compatible = "nxp,pcf8575";
310                 reg = <0x20>;
311                 interrupt-parent = <&irqpin2>;
312                 interrupts = <3 IRQ_TYPE_EDGE_FALLING>;
313                 gpio-controller;
314                 #gpio-cells = <2>;
315                 interrupt-controller;
316                 #interrupt-cells = <2>;
317         };
318 };
319
320 &mmcif {
321         pinctrl-0 = <&mmcif_pins>;
322         pinctrl-names = "default";
323
324         bus-width = <8>;
325         vmmc-supply = <&reg_1p8v>;
326         status = "okay";
327 };
328
329 &pfc {
330         i2c3_pins: i2c3 {
331                 renesas,groups = "i2c3_1";
332                 renesas,function = "i2c3";
333         };
334
335         mmcif_pins: mmc {
336                 mux {
337                         renesas,groups = "mmc0_data8_0", "mmc0_ctrl_0";
338                         renesas,function = "mmc0";
339                 };
340                 cfg {
341                         renesas,groups = "mmc0_data8_0";
342                         renesas,pins = "PORT279";
343                         bias-pull-up;
344                 };
345         };
346
347         scifa4_pins: serial4 {
348                 renesas,groups = "scifa4_data", "scifa4_ctrl";
349                 renesas,function = "scifa4";
350         };
351
352         sdhi0_pins: sd0 {
353                 renesas,groups = "sdhi0_data4", "sdhi0_ctrl", "sdhi0_cd", "sdhi0_wp";
354                 renesas,function = "sdhi0";
355         };
356
357         sdhi2_pins: sd2 {
358                 renesas,groups = "sdhi2_data4", "sdhi2_ctrl";
359                 renesas,function = "sdhi2";
360         };
361
362         fsia_pins: sounda {
363                 renesas,groups = "fsia_mclk_in", "fsia_sclk_in",
364                                  "fsia_data_in", "fsia_data_out";
365                 renesas,function = "fsia";
366         };
367 };
368
369 &scifa4 {
370         pinctrl-0 = <&scifa4_pins>;
371         pinctrl-names = "default";
372
373         status = "okay";
374 };
375
376 &sdhi0 {
377         pinctrl-0 = <&sdhi0_pins>;
378         pinctrl-names = "default";
379
380         vmmc-supply = <&vmmc_sdhi0>;
381         bus-width = <4>;
382         status = "okay";
383 };
384
385 &sdhi2 {
386         pinctrl-0 = <&sdhi2_pins>;
387         pinctrl-names = "default";
388
389         vmmc-supply = <&vmmc_sdhi2>;
390         bus-width = <4>;
391         broken-cd;
392         status = "okay";
393 };
394
395 &sh_fsi2 {
396         pinctrl-0 = <&fsia_pins>;
397         pinctrl-names = "default";
398
399         status = "okay";
400 };