ARM: shmobile: r8a7790: tidyup SDHI register size on DTSI
[deliverable/linux.git] / arch / arm / boot / dts / r8a73a4-ape6evm.dts
CommitLineData
78ded168
MD
1/*
2 * Device Tree Source for the APE6EVM board
3 *
4 * Copyright (C) 2013 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 "r8a73a4.dtsi"
326baa80 13#include <dt-bindings/gpio/gpio.h>
2670ee89 14#include <dt-bindings/input/input.h>
78ded168
MD
15
16/ {
17 model = "APE6EVM";
18 compatible = "renesas,ape6evm", "renesas,r8a73a4";
19
326baa80
UH
20 aliases {
21 serial0 = &scifa0;
22 };
23
78ded168 24 chosen {
d2f463a6 25 bootargs = "console=ttySC0,115200 ignore_loglevel root=/dev/nfs ip=dhcp rw";
326baa80 26 stdout-path = &scifa0;
78ded168
MD
27 };
28
29 memory@40000000 {
30 device_type = "memory";
31 reg = <0 0x40000000 0 0x40000000>;
8353f09f
TY
32 };
33
34 memory@200000000 {
35 device_type = "memory";
36 reg = <2 0x00000000 0 0x40000000>;
78ded168
MD
37 };
38
326baa80
UH
39 vcc_mmc0: regulator@0 {
40 compatible = "regulator-fixed";
41 regulator-name = "MMC0 Vcc";
42 regulator-min-microvolt = <2800000>;
43 regulator-max-microvolt = <2800000>;
44 regulator-always-on;
45 };
46
47 vcc_sdhi0: regulator@1 {
48 compatible = "regulator-fixed";
49
50 regulator-name = "SDHI0 Vcc";
51 regulator-min-microvolt = <3300000>;
52 regulator-max-microvolt = <3300000>;
53
54 gpio = <&pfc 76 GPIO_ACTIVE_HIGH>;
55 enable-active-high;
56 };
57
09ee81da
LP
58 /* Common 1.8V and 3.3V rails, used by several devices on APE6EVM */
59 ape6evm_fixed_1v8: regulator@2 {
60 compatible = "regulator-fixed";
61 regulator-name = "1V8";
62 regulator-min-microvolt = <1800000>;
63 regulator-max-microvolt = <1800000>;
64 regulator-always-on;
65 };
66
67 ape6evm_fixed_3v3: regulator@3 {
15351a7a
MD
68 compatible = "regulator-fixed";
69 regulator-name = "3V3";
70 regulator-min-microvolt = <3300000>;
71 regulator-max-microvolt = <3300000>;
72 regulator-always-on;
73 };
74
78ded168 75 lbsc {
326baa80 76 compatible = "simple-bus";
78ded168
MD
77 #address-cells = <1>;
78 #size-cells = <1>;
326baa80 79 ranges = <0 0 0 0x20000000>;
15351a7a
MD
80
81 ethernet@8000000 {
6cdaa63f 82 compatible = "smsc,lan9220", "smsc,lan9115";
15351a7a
MD
83 reg = <0x08000000 0x1000>;
84 interrupt-parent = <&irqc1>;
77e2d7e2 85 interrupts = <8 IRQ_TYPE_LEVEL_HIGH>;
15351a7a
MD
86 phy-mode = "mii";
87 reg-io-width = <4>;
88 smsc,irq-active-high;
89 smsc,irq-push-pull;
90 vdd33a-supply = <&ape6evm_fixed_3v3>;
09ee81da 91 vddvario-supply = <&ape6evm_fixed_1v8>;
15351a7a 92 };
78ded168 93 };
b742257d
UH
94
95 leds {
96 compatible = "gpio-leds";
97 led1 {
98 gpios = <&pfc 28 GPIO_ACTIVE_LOW>;
99 label = "GNSS_EN";
100 };
101 led2 {
102 gpios = <&pfc 126 GPIO_ACTIVE_LOW>;
103 label = "NFC_NRST";
104 };
105 led3 {
106 gpios = <&pfc 132 GPIO_ACTIVE_LOW>;
107 label = "GNSS_NRST";
108 };
109 led4 {
110 gpios = <&pfc 232 GPIO_ACTIVE_LOW>;
111 label = "BT_WAKEUP";
112 };
113 led5 {
114 gpios = <&pfc 250 GPIO_ACTIVE_LOW>;
115 label = "STROBE";
116 };
117 led6 {
118 gpios = <&pfc 288 GPIO_ACTIVE_LOW>;
119 label = "BBRESETOUT";
120 };
121 };
2670ee89
UH
122
123 keyboard {
124 compatible = "gpio-keys";
125
126 zero-key {
127 gpios = <&pfc 324 GPIO_ACTIVE_LOW>;
128 linux,code = <KEY_0>;
129 label = "S16";
130 };
131
132 menu-key {
133 gpios = <&pfc 325 GPIO_ACTIVE_LOW>;
134 linux,code = <KEY_MENU>;
135 label = "S17";
136 };
137
138 home-key {
139 gpios = <&pfc 326 GPIO_ACTIVE_LOW>;
140 linux,code = <KEY_HOME>;
141 label = "S18";
142 };
143
144 back-key {
145 gpios = <&pfc 327 GPIO_ACTIVE_LOW>;
146 linux,code = <KEY_BACK>;
147 label = "S19";
148 };
149
150 volup-key {
151 gpios = <&pfc 328 GPIO_ACTIVE_LOW>;
152 linux,code = <KEY_VOLUMEUP>;
153 label = "S20";
154 };
155
156 voldown-key {
157 gpios = <&pfc 329 GPIO_ACTIVE_LOW>;
158 linux,code = <KEY_VOLUMEDOWN>;
159 label = "S21";
160 };
161 };
78ded168 162};
463a2432
GL
163
164&i2c5 {
eda3a4fa 165 status = "okay";
463a2432
GL
166 vdd_dvfs: max8973@1b {
167 compatible = "maxim,max8973";
168 reg = <0x1b>;
169
170 regulator-min-microvolt = <935000>;
171 regulator-max-microvolt = <1200000>;
172 regulator-boot-on;
173 regulator-always-on;
174 };
175};
176
177&cpu0 {
178 cpu0-supply = <&vdd_dvfs>;
179 operating-points = <
180 /* kHz uV */
181 1950000 1115000
182 1462500 995000
183 >;
184 voltage-tolerance = <1>; /* 1% */
185};
326baa80
UH
186
187&cmt1 {
188 status = "okay";
189};
190
191&pfc {
192 scifa0_pins: serial0 {
193 renesas,groups = "scifa0_data";
194 renesas,function = "scifa0";
195 };
196
197 mmc0_pins: mmc {
198 renesas,groups = "mmc0_data8", "mmc0_ctrl";
199 renesas,function = "mmc0";
200 };
201
202 sdhi0_pins: sd0 {
203 renesas,groups = "sdhi0_data4", "sdhi0_ctrl", "sdhi0_cd";
204 renesas,function = "sdhi0";
205 };
206
207 sdhi1_pins: sd1 {
208 renesas,groups = "sdhi1_data4", "sdhi1_ctrl";
209 renesas,function = "sdhi1";
210 };
211};
212
213&mmcif0 {
214 vmmc-supply = <&vcc_mmc0>;
215 bus-width = <8>;
216 non-removable;
217 pinctrl-names = "default";
218 pinctrl-0 = <&mmc0_pins>;
219 status = "okay";
220};
221
222&scifa0 {
223 pinctrl-0 = <&scifa0_pins>;
224 pinctrl-names = "default";
225
226 status = "okay";
227};
228
229&sdhi0 {
230 vmmc-supply = <&vcc_sdhi0>;
231 bus-width = <4>;
232 toshiba,mmc-wrprotect-disable;
233 pinctrl-names = "default";
234 pinctrl-0 = <&sdhi0_pins>;
235 status = "okay";
236};
237
238&sdhi1 {
239 vmmc-supply = <&ape6evm_fixed_3v3>;
240 bus-width = <4>;
241 broken-cd;
242 toshiba,mmc-wrprotect-disable;
243 pinctrl-names = "default";
244 pinctrl-0 = <&sdhi1_pins>;
245 status = "okay";
246};
This page took 0.198154 seconds and 5 git commands to generate.