Merge branch 'heads/soc2' into dt3-base
[linux-2.6-block.git] / arch / arm / boot / dts / r8a7740-armadillo800eva-reference.dts
CommitLineData
76b92b40
BH
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/;
31c46cbf 12#include "r8a7740.dtsi"
14d0a2b7 13#include <dt-bindings/gpio/gpio.h>
77e2d7e2 14#include <dt-bindings/interrupt-controller/irq.h>
87b73d88 15#include <dt-bindings/pwm/pwm.h>
76b92b40
BH
16
17/ {
18 model = "armadillo 800 eva reference";
19 compatible = "renesas,armadillo800eva-reference", "renesas,r8a7740";
20
21 chosen {
3d814499 22 bootargs = "console=tty0 console=ttySC1,115200 earlyprintk=sh-sci.1,115200 ignore_loglevel root=/dev/nfs ip=dhcp rw";
76b92b40
BH
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
e99d7963
GL
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
0a4f7889
LP
66 leds {
67 compatible = "gpio-leds";
68 led1 {
69 gpios = <&pfc 102 GPIO_ACTIVE_HIGH>;
70 };
71 led2 {
72 gpios = <&pfc 111 GPIO_ACTIVE_HIGH>;
73 };
74 led3 {
75 gpios = <&pfc 110 GPIO_ACTIVE_HIGH>;
76 };
77 led4 {
78 gpios = <&pfc 177 GPIO_ACTIVE_HIGH>;
79 };
80 };
87b73d88
LP
81
82 backlight {
83 compatible = "pwm-backlight";
84 pwms = <&tpu 2 33333 PWM_POLARITY_INVERTED>;
85 brightness-levels = <0 1 2 4 8 16 32 64 128 255>;
86 default-brightness-level = <9>;
87 pinctrl-0 = <&backlight_pins>;
88 pinctrl-names = "default";
89 };
6a3549d4
KM
90
91 sound {
92 compatible = "simple-audio-card";
93
94 simple-audio-card,format = "i2s";
95
96 simple-audio-card,cpu {
97 sound-dai = <&sh_fsi2 0>;
98 bitclock-inversion;
99 };
100
101 simple-audio-card,codec {
102 sound-dai = <&wm8978>;
103 bitclock-master;
104 frame-master;
105 system-clock-frequency = <12288000>;
106 };
107 };
76b92b40
BH
108};
109
110&i2c0 {
eda3a4fa 111 status = "okay";
e63763b9 112 touchscreen@55 {
76b92b40
BH
113 compatible = "sitronix,st1232";
114 reg = <0x55>;
115 interrupt-parent = <&irqpin1>;
b69e4435 116 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
f46a6b0f
LP
117 pinctrl-0 = <&st1232_pins>;
118 pinctrl-names = "default";
14d0a2b7 119 gpios = <&pfc 166 GPIO_ACTIVE_LOW>;
76b92b40 120 };
6a3549d4
KM
121
122 wm8978: wm8978@1a {
123 #sound-dai-cells = <0>;
124 compatible = "wlf,wm8978";
125 reg = <0x1a>;
126 };
76b92b40 127};
5d244563
LP
128
129&pfc {
130 pinctrl-0 = <&scifa1_pins>;
131 pinctrl-names = "default";
132
e63763b9 133 scifa1_pins: serial1 {
5d244563
LP
134 renesas,groups = "scifa1_data";
135 renesas,function = "scifa1";
136 };
f46a6b0f 137
e63763b9 138 st1232_pins: touchscreen {
f46a6b0f
LP
139 renesas,groups = "intc_irq10";
140 renesas,function = "intc";
141 };
87b73d88
LP
142
143 backlight_pins: backlight {
144 renesas,groups = "tpu0_to2_1";
145 renesas,function = "tpu0";
146 };
e99d7963
GL
147
148 mmc0_pins: mmc0 {
149 renesas,groups = "mmc0_data8_1", "mmc0_ctrl_1";
150 renesas,function = "mmc0";
151 };
152
e63763b9 153 sdhi0_pins: sd0 {
e99d7963
GL
154 renesas,groups = "sdhi0_data4", "sdhi0_ctrl", "sdhi0_wp";
155 renesas,function = "sdhi0";
156 };
6a3549d4
KM
157
158 fsia_pins: sounda {
159 renesas,groups = "fsia_sclk_in", "fsia_mclk_out",
160 "fsia_data_in_1", "fsia_data_out_0";
161 renesas,function = "fsia";
162 };
87b73d88
LP
163};
164
165&tpu {
166 status = "okay";
5d244563 167};
e99d7963
GL
168
169&mmcif0 {
170 pinctrl-0 = <&mmc0_pins>;
171 pinctrl-names = "default";
172
173 vmmc-supply = <&reg_3p3v>;
174 bus-width = <8>;
175 non-removable;
176 status = "okay";
177};
178
179&sdhi0 {
180 pinctrl-0 = <&sdhi0_pins>;
181 pinctrl-names = "default";
182
183 vmmc-supply = <&vcc_sdhi0>;
184 vqmmc-supply = <&vccq_sdhi0>;
185 bus-width = <4>;
186 cd-gpios = <&pfc 167 GPIO_ACTIVE_LOW>;
187 status = "okay";
188};
6a3549d4
KM
189
190&sh_fsi2 {
191 pinctrl-0 = <&fsia_pins>;
192 pinctrl-names = "default";
193
194 status = "okay";
195};