]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blame - arch/arm/boot/dts/r8a73a4-ape6evm.dts
UBUNTU: Ubuntu-5.11.0-22.23
[mirror_ubuntu-hirsute-kernel.git] / arch / arm / boot / dts / r8a73a4-ape6evm.dts
CommitLineData
cdbfaf64 1// SPDX-License-Identifier: GPL-2.0
78ded168
MD
2/*
3 * Device Tree Source for the APE6EVM board
4 *
5 * Copyright (C) 2013 Renesas Solutions Corp.
78ded168
MD
6 */
7
8/dts-v1/;
31c46cbf 9#include "r8a73a4.dtsi"
326baa80 10#include <dt-bindings/gpio/gpio.h>
2670ee89 11#include <dt-bindings/input/input.h>
78ded168
MD
12
13/ {
14 model = "APE6EVM";
15 compatible = "renesas,ape6evm", "renesas,r8a73a4";
16
326baa80
UH
17 aliases {
18 serial0 = &scifa0;
19 };
20
78ded168 21 chosen {
07d2bf96 22 bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
6deac6d0 23 stdout-path = "serial0:115200n8";
78ded168
MD
24 };
25
26 memory@40000000 {
27 device_type = "memory";
28 reg = <0 0x40000000 0 0x40000000>;
8353f09f
TY
29 };
30
31 memory@200000000 {
32 device_type = "memory";
33 reg = <2 0x00000000 0 0x40000000>;
78ded168
MD
34 };
35
47061472 36 vcc_mmc0: regulator-mmc0 {
326baa80
UH
37 compatible = "regulator-fixed";
38 regulator-name = "MMC0 Vcc";
39 regulator-min-microvolt = <2800000>;
40 regulator-max-microvolt = <2800000>;
41 regulator-always-on;
42 };
43
47061472 44 vcc_sdhi0: regulator-sdhi0 {
326baa80
UH
45 compatible = "regulator-fixed";
46
47 regulator-name = "SDHI0 Vcc";
48 regulator-min-microvolt = <3300000>;
49 regulator-max-microvolt = <3300000>;
50
51 gpio = <&pfc 76 GPIO_ACTIVE_HIGH>;
52 enable-active-high;
53 };
54
09ee81da 55 /* Common 1.8V and 3.3V rails, used by several devices on APE6EVM */
47061472 56 ape6evm_fixed_1v8: regulator-1v8 {
09ee81da
LP
57 compatible = "regulator-fixed";
58 regulator-name = "1V8";
59 regulator-min-microvolt = <1800000>;
60 regulator-max-microvolt = <1800000>;
61 regulator-always-on;
62 };
63
47061472 64 ape6evm_fixed_3v3: regulator-3v3 {
15351a7a
MD
65 compatible = "regulator-fixed";
66 regulator-name = "3V3";
67 regulator-min-microvolt = <3300000>;
68 regulator-max-microvolt = <3300000>;
69 regulator-always-on;
70 };
71
b742257d
UH
72 leds {
73 compatible = "gpio-leds";
74 led1 {
ca50ee8f 75 gpios = <&pfc 28 GPIO_ACTIVE_HIGH>;
b742257d
UH
76 label = "GNSS_EN";
77 };
78 led2 {
ca50ee8f 79 gpios = <&pfc 126 GPIO_ACTIVE_HIGH>;
b742257d
UH
80 label = "NFC_NRST";
81 };
82 led3 {
ca50ee8f 83 gpios = <&pfc 132 GPIO_ACTIVE_HIGH>;
b742257d
UH
84 label = "GNSS_NRST";
85 };
86 led4 {
ca50ee8f 87 gpios = <&pfc 232 GPIO_ACTIVE_HIGH>;
b742257d
UH
88 label = "BT_WAKEUP";
89 };
90 led5 {
ca50ee8f 91 gpios = <&pfc 250 GPIO_ACTIVE_HIGH>;
b742257d
UH
92 label = "STROBE";
93 };
94 led6 {
ca50ee8f 95 gpios = <&pfc 288 GPIO_ACTIVE_HIGH>;
b742257d
UH
96 label = "BBRESETOUT";
97 };
98 };
2670ee89
UH
99
100 keyboard {
101 compatible = "gpio-keys";
102
a1046620
GU
103 pinctrl-names = "default";
104 pinctrl-0 = <&keyboard_pins>;
105
2670ee89
UH
106 zero-key {
107 gpios = <&pfc 324 GPIO_ACTIVE_LOW>;
108 linux,code = <KEY_0>;
109 label = "S16";
0cc16889 110 wakeup-source;
2670ee89
UH
111 };
112
113 menu-key {
114 gpios = <&pfc 325 GPIO_ACTIVE_LOW>;
115 linux,code = <KEY_MENU>;
116 label = "S17";
117 };
118
119 home-key {
120 gpios = <&pfc 326 GPIO_ACTIVE_LOW>;
121 linux,code = <KEY_HOME>;
122 label = "S18";
123 };
124
125 back-key {
126 gpios = <&pfc 327 GPIO_ACTIVE_LOW>;
127 linux,code = <KEY_BACK>;
128 label = "S19";
129 };
130
131 volup-key {
132 gpios = <&pfc 328 GPIO_ACTIVE_LOW>;
133 linux,code = <KEY_VOLUMEUP>;
134 label = "S20";
135 };
136
137 voldown-key {
138 gpios = <&pfc 329 GPIO_ACTIVE_LOW>;
139 linux,code = <KEY_VOLUMEDOWN>;
140 label = "S21";
141 };
142 };
78ded168 143};
463a2432
GL
144
145&i2c5 {
eda3a4fa 146 status = "okay";
e8545be9 147 vdd_dvfs: regulator@1b {
463a2432
GL
148 compatible = "maxim,max8973";
149 reg = <0x1b>;
150
151 regulator-min-microvolt = <935000>;
152 regulator-max-microvolt = <1200000>;
153 regulator-boot-on;
154 regulator-always-on;
155 };
156};
157
158&cpu0 {
159 cpu0-supply = <&vdd_dvfs>;
4e28626d
GU
160 operating-points = <1950000 1115000>, /* kHz uV */
161 <1462500 995000>;
463a2432
GL
162 voltage-tolerance = <1>; /* 1% */
163};
326baa80 164
a656c603 165&bsc {
53239664
GU
166 flash@0 {
167 compatible = "cfi-flash", "mtd-rom";
168 reg = <0x0 0x08000000>;
169 bank-width = <2>;
170
171 partitions {
172 compatible = "fixed-partitions";
173 #address-cells = <1>;
174 #size-cells = <1>;
175
176 partition@0 {
177 label = "uboot";
178 reg = <0x00000000 0x00040000>;
179 read-only;
180 };
181 partition@40000 {
182 label = "uboot-env";
183 reg = <0x00040000 0x00040000>;
184 read-only;
185 };
186 partition@80000 {
187 label = "flash";
188 reg = <0x00080000 0x07f80000>;
189 };
190 };
191 };
192
a656c603
GU
193 ethernet@8000000 {
194 compatible = "smsc,lan9220", "smsc,lan9115";
195 reg = <0x08000000 0x1000>;
196 interrupt-parent = <&irqc1>;
197 interrupts = <8 IRQ_TYPE_LEVEL_HIGH>;
198 phy-mode = "mii";
199 reg-io-width = <4>;
200 smsc,irq-active-high;
201 smsc,irq-push-pull;
202 vdd33a-supply = <&ape6evm_fixed_3v3>;
203 vddvario-supply = <&ape6evm_fixed_1v8>;
204 };
205};
206
326baa80
UH
207&cmt1 {
208 status = "okay";
209};
210
211&pfc {
94f58eb2 212 scifa0_pins: scifa0 {
a32f5cff
SH
213 groups = "scifa0_data";
214 function = "scifa0";
326baa80
UH
215 };
216
8b68d53e 217 mmc0_pins: mmc0 {
a32f5cff
SH
218 groups = "mmc0_data8", "mmc0_ctrl";
219 function = "mmc0";
326baa80
UH
220 };
221
222 sdhi0_pins: sd0 {
a32f5cff
SH
223 groups = "sdhi0_data4", "sdhi0_ctrl", "sdhi0_cd";
224 function = "sdhi0";
326baa80
UH
225 };
226
227 sdhi1_pins: sd1 {
a32f5cff
SH
228 groups = "sdhi1_data4", "sdhi1_ctrl";
229 function = "sdhi1";
326baa80 230 };
a1046620
GU
231
232 keyboard_pins: keyboard {
a32f5cff
SH
233 pins = "PORT324", "PORT325", "PORT326", "PORT327", "PORT328",
234 "PORT329";
a1046620
GU
235 bias-pull-up;
236 };
326baa80
UH
237};
238
239&mmcif0 {
240 vmmc-supply = <&vcc_mmc0>;
241 bus-width = <8>;
242 non-removable;
243 pinctrl-names = "default";
244 pinctrl-0 = <&mmc0_pins>;
245 status = "okay";
246};
247
248&scifa0 {
249 pinctrl-0 = <&scifa0_pins>;
250 pinctrl-names = "default";
251
252 status = "okay";
253};
254
255&sdhi0 {
256 vmmc-supply = <&vcc_sdhi0>;
257 bus-width = <4>;
9eb663e8 258 disable-wp;
326baa80
UH
259 pinctrl-names = "default";
260 pinctrl-0 = <&sdhi0_pins>;
261 status = "okay";
262};
263
264&sdhi1 {
265 vmmc-supply = <&ape6evm_fixed_3v3>;
266 bus-width = <4>;
267 broken-cd;
9eb663e8 268 disable-wp;
326baa80
UH
269 pinctrl-names = "default";
270 pinctrl-0 = <&sdhi1_pins>;
271 status = "okay";
272};