ARM: shmobile: armadillo800eva-reference: Remove early_printk from command line
[platform/adaptation/renesas_rcar/renesas_kernel.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/input/input.h>
15 #include <dt-bindings/interrupt-controller/irq.h>
16 #include <dt-bindings/pwm/pwm.h>
17
18 / {
19         model = "armadillo 800 eva reference";
20         compatible = "renesas,armadillo800eva-reference", "renesas,r8a7740";
21
22         chosen {
23                 bootargs = "console=tty0 console=ttySC1,115200 ignore_loglevel root=/dev/nfs ip=dhcp rw";
24         };
25
26         memory {
27                 device_type = "memory";
28                 reg = <0x40000000 0x20000000>;
29         };
30
31         reg_3p3v: regulator@0 {
32                 compatible = "regulator-fixed";
33                 regulator-name = "fixed-3.3V";
34                 regulator-min-microvolt = <3300000>;
35                 regulator-max-microvolt = <3300000>;
36                 regulator-always-on;
37                 regulator-boot-on;
38         };
39
40         vcc_sdhi0: regulator@1 {
41                 compatible = "regulator-fixed";
42
43                 regulator-name = "SDHI0 Vcc";
44                 regulator-min-microvolt = <3300000>;
45                 regulator-max-microvolt = <3300000>;
46
47                 gpio = <&pfc 75 GPIO_ACTIVE_HIGH>;
48                 enable-active-high;
49         };
50
51         vccq_sdhi0: regulator@2 {
52                 compatible = "regulator-gpio";
53
54                 regulator-name = "SDHI0 VccQ";
55                 regulator-min-microvolt = <1800000>;
56                 regulator-max-microvolt = <3300000>;
57                 vin-supply = <&vcc_sdhi0>;
58
59                 enable-gpio = <&pfc 74 GPIO_ACTIVE_HIGH>;
60                 gpios = <&pfc 17 GPIO_ACTIVE_HIGH>;
61                 states = <3300000 0
62                           1800000 1>;
63
64                 enable-active-high;
65         };
66
67         reg_5p0v: regulator@3 {
68                 compatible = "regulator-fixed";
69                 regulator-name = "fixed-5.0V";
70                 regulator-min-microvolt = <5000000>;
71                 regulator-max-microvolt = <5000000>;
72                 regulator-always-on;
73                 regulator-boot-on;
74         };
75
76         gpio-keys {
77                 compatible = "gpio-keys";
78
79                 power-key {
80                         gpios = <&pfc 99 GPIO_ACTIVE_LOW>;
81                         linux,code = <KEY_POWER>;
82                         label = "SW3";
83                         gpio-key,wakeup;
84                 };
85
86                 back-key {
87                         gpios = <&pfc 100 GPIO_ACTIVE_LOW>;
88                         linux,code = <KEY_BACK>;
89                         label = "SW4";
90                 };
91
92                 menu-key {
93                         gpios = <&pfc 97 GPIO_ACTIVE_LOW>;
94                         linux,code = <KEY_MENU>;
95                         label = "SW5";
96                 };
97
98                 home-key {
99                         gpios = <&pfc 98 GPIO_ACTIVE_LOW>;
100                         linux,code = <KEY_HOME>;
101                         label = "SW6";
102                 };
103         };
104
105         leds {
106                 compatible = "gpio-leds";
107                 led3 {
108                         gpios = <&pfc 102 GPIO_ACTIVE_HIGH>;
109                         label = "LED3";
110                 };
111                 led4 {
112                         gpios = <&pfc 111 GPIO_ACTIVE_HIGH>;
113                         label = "LED4";
114                 };
115                 led5 {
116                         gpios = <&pfc 110 GPIO_ACTIVE_HIGH>;
117                         label = "LED5";
118                 };
119                 led6 {
120                         gpios = <&pfc 177 GPIO_ACTIVE_HIGH>;
121                         label = "LED6";
122                 };
123         };
124
125         i2c2: i2c@2 {
126                 #address-cells = <1>;
127                 #size-cells = <0>;
128                 compatible = "i2c-gpio";
129                 gpios = <&pfc 208 GPIO_ACTIVE_HIGH /* sda */
130                          &pfc 91 GPIO_ACTIVE_HIGH /* scl */
131                         >;
132                 i2c-gpio,delay-us = <5>;
133         };
134
135         backlight {
136                 compatible = "pwm-backlight";
137                 pwms = <&tpu 2 33333 PWM_POLARITY_INVERTED>;
138                 brightness-levels = <0 1 2 4 8 16 32 64 128 255>;
139                 default-brightness-level = <9>;
140                 pinctrl-0 = <&backlight_pins>;
141                 pinctrl-names = "default";
142                 power-supply = <&reg_5p0v>;
143                 enable-gpios = <&pfc 61 GPIO_ACTIVE_HIGH>;
144         };
145
146         sound {
147                 compatible = "simple-audio-card";
148
149                 simple-audio-card,format = "i2s";
150
151                 simple-audio-card,cpu {
152                         sound-dai = <&sh_fsi2 0>;
153                         bitclock-inversion;
154                 };
155
156                 simple-audio-card,codec {
157                         sound-dai = <&wm8978>;
158                         bitclock-master;
159                         frame-master;
160                         system-clock-frequency = <12288000>;
161                 };
162         };
163 };
164
165 &ether {
166         pinctrl-0 = <&ether_pins>;
167         pinctrl-names = "default";
168
169         phy-handle = <&phy0>;
170         status = "ok";
171
172         phy0: ethernet-phy@0 {
173                 reg = <0>;
174         };
175 };
176
177 &i2c0 {
178         status = "okay";
179         touchscreen@55 {
180                 compatible = "sitronix,st1232";
181                 reg = <0x55>;
182                 interrupt-parent = <&irqpin1>;
183                 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
184                 pinctrl-0 = <&st1232_pins>;
185                 pinctrl-names = "default";
186                 gpios = <&pfc 166 GPIO_ACTIVE_LOW>;
187         };
188
189         wm8978: wm8978@1a {
190                 #sound-dai-cells = <0>;
191                 compatible = "wlf,wm8978";
192                 reg = <0x1a>;
193         };
194 };
195
196 &i2c2 {
197         status = "okay";
198         rtc@30 {
199                 compatible = "sii,s35390a";
200                 reg = <0x30>;
201         };
202 };
203
204 &pfc {
205         pinctrl-0 = <&scifa1_pins>;
206         pinctrl-names = "default";
207
208         ether_pins: ether {
209                 renesas,groups = "gether_mii", "gether_int";
210                 renesas,function = "gether";
211         };
212
213         scifa1_pins: serial1 {
214                 renesas,groups = "scifa1_data";
215                 renesas,function = "scifa1";
216         };
217
218         st1232_pins: touchscreen {
219                 renesas,groups = "intc_irq10";
220                 renesas,function = "intc";
221         };
222
223         backlight_pins: backlight {
224                 renesas,groups = "tpu0_to2_1";
225                 renesas,function = "tpu0";
226         };
227
228         mmc0_pins: mmc0 {
229                 renesas,groups = "mmc0_data8_1", "mmc0_ctrl_1";
230                 renesas,function = "mmc0";
231         };
232
233         sdhi0_pins: sd0 {
234                 renesas,groups = "sdhi0_data4", "sdhi0_ctrl", "sdhi0_wp";
235                 renesas,function = "sdhi0";
236         };
237
238         fsia_pins: sounda {
239                 renesas,groups = "fsia_sclk_in", "fsia_mclk_out",
240                                  "fsia_data_in_1", "fsia_data_out_0";
241                 renesas,function = "fsia";
242         };
243 };
244
245 &tpu {
246         status = "okay";
247 };
248
249 &mmcif0 {
250         pinctrl-0 = <&mmc0_pins>;
251         pinctrl-names = "default";
252
253         vmmc-supply = <&reg_3p3v>;
254         bus-width = <8>;
255         non-removable;
256         status = "okay";
257 };
258
259 &sdhi0 {
260         pinctrl-0 = <&sdhi0_pins>;
261         pinctrl-names = "default";
262
263         vmmc-supply = <&vcc_sdhi0>;
264         vqmmc-supply = <&vccq_sdhi0>;
265         bus-width = <4>;
266         cd-gpios = <&pfc 167 GPIO_ACTIVE_LOW>;
267         status = "okay";
268 };
269
270 &sh_fsi2 {
271         pinctrl-0 = <&fsia_pins>;
272         pinctrl-names = "default";
273
274         status = "okay";
275 };