Merge tag 'ext4_for_linus_stable' of git://git.kernel.org/pub/scm/linux/kernel/git...
[sfrench/cifs-2.6.git] / arch / arm / boot / dts / r8a7740-armadillo800eva-reference.dts
1 /*
2  * Reference Device Tree Source for the armadillo 800 eva board
3  *
4  * Copyright (C) 2012 Renesas Solutions Corp.
5  *
6  * This file is licensed under the terms of the GNU General Public License
7  * version 2.  This program is licensed "as is" without any warranty of any
8  * kind, whether express or implied.
9  */
10
11 /dts-v1/;
12 #include "r8a7740.dtsi"
13 #include <dt-bindings/gpio/gpio.h>
14 #include <dt-bindings/interrupt-controller/irq.h>
15 #include <dt-bindings/pwm/pwm.h>
16
17 / {
18         model = "armadillo 800 eva reference";
19         compatible = "renesas,armadillo800eva-reference", "renesas,r8a7740";
20
21         chosen {
22                 bootargs = "console=tty0 console=ttySC1,115200 earlyprintk=sh-sci.1,115200 ignore_loglevel root=/dev/nfs ip=dhcp rw";
23         };
24
25         memory {
26                 device_type = "memory";
27                 reg = <0x40000000 0x20000000>;
28         };
29
30         reg_3p3v: regulator@0 {
31                 compatible = "regulator-fixed";
32                 regulator-name = "fixed-3.3V";
33                 regulator-min-microvolt = <3300000>;
34                 regulator-max-microvolt = <3300000>;
35                 regulator-always-on;
36                 regulator-boot-on;
37         };
38
39         vcc_sdhi0: regulator@1 {
40                 compatible = "regulator-fixed";
41
42                 regulator-name = "SDHI0 Vcc";
43                 regulator-min-microvolt = <3300000>;
44                 regulator-max-microvolt = <3300000>;
45
46                 gpio = <&pfc 75 GPIO_ACTIVE_HIGH>;
47                 enable-active-high;
48         };
49
50         vccq_sdhi0: regulator@2 {
51                 compatible = "regulator-gpio";
52
53                 regulator-name = "SDHI0 VccQ";
54                 regulator-min-microvolt = <1800000>;
55                 regulator-max-microvolt = <3300000>;
56                 vin-supply = <&vcc_sdhi0>;
57
58                 enable-gpio = <&pfc 74 GPIO_ACTIVE_HIGH>;
59                 gpios = <&pfc 17 GPIO_ACTIVE_HIGH>;
60                 states = <3300000 0
61                           1800000 1>;
62
63                 enable-active-high;
64         };
65
66         reg_5p0v: regulator@3 {
67                 compatible = "regulator-fixed";
68                 regulator-name = "fixed-5.0V";
69                 regulator-min-microvolt = <5000000>;
70                 regulator-max-microvolt = <5000000>;
71                 regulator-always-on;
72                 regulator-boot-on;
73         };
74
75         gpio-keys {
76                 compatible = "gpio-keys";
77
78                 power-key {
79                         gpios = <&pfc 99 GPIO_ACTIVE_LOW>;
80                         linux,code = <116>;
81                         label = "SW3";
82                         gpio-key,wakeup;
83                 };
84
85                 back-key {
86                         gpios = <&pfc 100 GPIO_ACTIVE_LOW>;
87                         linux,code = <158>;
88                         label = "SW4";
89                 };
90
91                 menu-key {
92                         gpios = <&pfc 97 GPIO_ACTIVE_LOW>;
93                         linux,code = <139>;
94                         label = "SW5";
95                 };
96
97                 home-key {
98                         gpios = <&pfc 98 GPIO_ACTIVE_LOW>;
99                         linux,code = <102>;
100                         label = "SW6";
101                 };
102         };
103
104         leds {
105                 compatible = "gpio-leds";
106                 led1 {
107                         gpios = <&pfc 102 GPIO_ACTIVE_HIGH>;
108                 };
109                 led2 {
110                         gpios = <&pfc 111 GPIO_ACTIVE_HIGH>;
111                 };
112                 led3 {
113                         gpios = <&pfc 110 GPIO_ACTIVE_HIGH>;
114                 };
115                 led4 {
116                         gpios = <&pfc 177 GPIO_ACTIVE_HIGH>;
117                 };
118         };
119
120         backlight {
121                 compatible = "pwm-backlight";
122                 pwms = <&tpu 2 33333 PWM_POLARITY_INVERTED>;
123                 brightness-levels = <0 1 2 4 8 16 32 64 128 255>;
124                 default-brightness-level = <9>;
125                 pinctrl-0 = <&backlight_pins>;
126                 pinctrl-names = "default";
127                 power-supply = <&reg_5p0v>;
128                 enable-gpios = <&pfc 61 GPIO_ACTIVE_HIGH>;
129         };
130
131         sound {
132                 compatible = "simple-audio-card";
133
134                 simple-audio-card,format = "i2s";
135
136                 simple-audio-card,cpu {
137                         sound-dai = <&sh_fsi2 0>;
138                         bitclock-inversion;
139                 };
140
141                 simple-audio-card,codec {
142                         sound-dai = <&wm8978>;
143                         bitclock-master;
144                         frame-master;
145                         system-clock-frequency = <12288000>;
146                 };
147         };
148 };
149
150 &i2c0 {
151         status = "okay";
152         touchscreen@55 {
153                 compatible = "sitronix,st1232";
154                 reg = <0x55>;
155                 interrupt-parent = <&irqpin1>;
156                 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
157                 pinctrl-0 = <&st1232_pins>;
158                 pinctrl-names = "default";
159                 gpios = <&pfc 166 GPIO_ACTIVE_LOW>;
160         };
161
162         wm8978: wm8978@1a {
163                 #sound-dai-cells = <0>;
164                 compatible = "wlf,wm8978";
165                 reg = <0x1a>;
166         };
167 };
168
169 &pfc {
170         pinctrl-0 = <&scifa1_pins>;
171         pinctrl-names = "default";
172
173         scifa1_pins: serial1 {
174                 renesas,groups = "scifa1_data";
175                 renesas,function = "scifa1";
176         };
177
178         st1232_pins: touchscreen {
179                 renesas,groups = "intc_irq10";
180                 renesas,function = "intc";
181         };
182
183         backlight_pins: backlight {
184                 renesas,groups = "tpu0_to2_1";
185                 renesas,function = "tpu0";
186         };
187
188         mmc0_pins: mmc0 {
189                 renesas,groups = "mmc0_data8_1", "mmc0_ctrl_1";
190                 renesas,function = "mmc0";
191         };
192
193         sdhi0_pins: sd0 {
194                 renesas,groups = "sdhi0_data4", "sdhi0_ctrl", "sdhi0_wp";
195                 renesas,function = "sdhi0";
196         };
197
198         fsia_pins: sounda {
199                 renesas,groups = "fsia_sclk_in", "fsia_mclk_out",
200                                  "fsia_data_in_1", "fsia_data_out_0";
201                 renesas,function = "fsia";
202         };
203 };
204
205 &tpu {
206         status = "okay";
207 };
208
209 &mmcif0 {
210         pinctrl-0 = <&mmc0_pins>;
211         pinctrl-names = "default";
212
213         vmmc-supply = <&reg_3p3v>;
214         bus-width = <8>;
215         non-removable;
216         status = "okay";
217 };
218
219 &sdhi0 {
220         pinctrl-0 = <&sdhi0_pins>;
221         pinctrl-names = "default";
222
223         vmmc-supply = <&vcc_sdhi0>;
224         vqmmc-supply = <&vccq_sdhi0>;
225         bus-width = <4>;
226         cd-gpios = <&pfc 167 GPIO_ACTIVE_LOW>;
227         status = "okay";
228 };
229
230 &sh_fsi2 {
231         pinctrl-0 = <&fsia_pins>;
232         pinctrl-names = "default";
233
234         status = "okay";
235 };