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