xref: /linux/scripts/dtc/include-prefixes/arm/rockchip/rk3188-radxarock.dts (revision c34e9ab9a612ee8b18273398ef75c207b01f516d)
1724ba675SRob Herring// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2724ba675SRob Herring/*
3724ba675SRob Herring * Copyright (c) 2013 Heiko Stuebner <heiko@sntech.de>
4724ba675SRob Herring */
5724ba675SRob Herring
6724ba675SRob Herring/dts-v1/;
7724ba675SRob Herring#include <dt-bindings/input/input.h>
8724ba675SRob Herring#include "rk3188.dtsi"
9724ba675SRob Herring
10724ba675SRob Herring/ {
11724ba675SRob Herring	model = "Radxa Rock";
12724ba675SRob Herring	compatible = "radxa,rock", "rockchip,rk3188";
13724ba675SRob Herring
14724ba675SRob Herring	aliases {
15724ba675SRob Herring		mmc0 = &mmc0;
16724ba675SRob Herring	};
17724ba675SRob Herring
18724ba675SRob Herring	memory@60000000 {
19724ba675SRob Herring		device_type = "memory";
20724ba675SRob Herring		reg = <0x60000000 0x80000000>;
21724ba675SRob Herring	};
22724ba675SRob Herring
23724ba675SRob Herring	gpio-keys {
24724ba675SRob Herring		compatible = "gpio-keys";
25724ba675SRob Herring		autorepeat;
26724ba675SRob Herring
27724ba675SRob Herring		key-power {
28724ba675SRob Herring			gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_LOW>;
29724ba675SRob Herring			linux,code = <KEY_POWER>;
30724ba675SRob Herring			label = "GPIO Key Power";
31724ba675SRob Herring			linux,input-type = <1>;
32724ba675SRob Herring			wakeup-source;
33724ba675SRob Herring			debounce-interval = <100>;
34724ba675SRob Herring		};
35724ba675SRob Herring	};
36724ba675SRob Herring
37724ba675SRob Herring	gpio-leds {
38724ba675SRob Herring		compatible = "gpio-leds";
39724ba675SRob Herring
40724ba675SRob Herring		green_led: led-0 {
41724ba675SRob Herring			label = "rock:green:user1";
42724ba675SRob Herring			gpios = <&gpio0 RK_PB4 GPIO_ACTIVE_LOW>;
43724ba675SRob Herring			default-state = "off";
44724ba675SRob Herring		};
45724ba675SRob Herring
46724ba675SRob Herring		blue_led: led-1 {
47724ba675SRob Herring			label = "rock:blue:user2";
48724ba675SRob Herring			gpios = <&gpio0 RK_PB6 GPIO_ACTIVE_LOW>;
49724ba675SRob Herring			default-state = "off";
50724ba675SRob Herring		};
51724ba675SRob Herring
52724ba675SRob Herring		sleep_led: led-2 {
53724ba675SRob Herring			label = "rock:red:power";
54724ba675SRob Herring			gpios = <&gpio0 RK_PB7 GPIO_ACTIVE_HIGH>;
55724ba675SRob Herring			default-state = "off";
56724ba675SRob Herring		};
57724ba675SRob Herring	};
58724ba675SRob Herring
59724ba675SRob Herring	sound {
60724ba675SRob Herring		compatible = "simple-audio-card";
61724ba675SRob Herring		simple-audio-card,name = "SPDIF";
62724ba675SRob Herring
63724ba675SRob Herring		simple-audio-card,dai-link@1 {  /* S/PDIF - S/PDIF */
64724ba675SRob Herring			cpu { sound-dai = <&spdif>; };
65724ba675SRob Herring			codec { sound-dai = <&spdif_out>; };
66724ba675SRob Herring		};
67724ba675SRob Herring	};
68724ba675SRob Herring
69724ba675SRob Herring	spdif_out: spdif-out {
70724ba675SRob Herring		compatible = "linux,spdif-dit";
71724ba675SRob Herring		#sound-dai-cells = <0>;
72724ba675SRob Herring	};
73724ba675SRob Herring
74724ba675SRob Herring	ir_recv: ir-receiver {
75724ba675SRob Herring		compatible = "gpio-ir-receiver";
76724ba675SRob Herring		gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_LOW>;
77724ba675SRob Herring		pinctrl-names = "default";
78724ba675SRob Herring		pinctrl-0 = <&ir_recv_pin>;
79724ba675SRob Herring	};
80724ba675SRob Herring
81*2c3944d9SJohan Jonker	vcc_otg: regulator-usb-otg {
82724ba675SRob Herring		compatible = "regulator-fixed";
83724ba675SRob Herring		enable-active-high;
84724ba675SRob Herring		gpio = <&gpio2 RK_PD7 GPIO_ACTIVE_HIGH>;
85724ba675SRob Herring		pinctrl-names = "default";
86724ba675SRob Herring		pinctrl-0 = <&otg_vbus_drv>;
87724ba675SRob Herring		regulator-name = "otg-vbus";
88724ba675SRob Herring		regulator-min-microvolt = <5000000>;
89724ba675SRob Herring		regulator-max-microvolt = <5000000>;
90724ba675SRob Herring		regulator-always-on;
91724ba675SRob Herring		regulator-boot-on;
92724ba675SRob Herring	};
93724ba675SRob Herring
94*2c3944d9SJohan Jonker	vcc_sd0: regulator-sdmmc {
95724ba675SRob Herring		compatible = "regulator-fixed";
96724ba675SRob Herring		regulator-name = "sdmmc-supply";
97724ba675SRob Herring		regulator-min-microvolt = <3300000>;
98724ba675SRob Herring		regulator-max-microvolt = <3300000>;
99724ba675SRob Herring		gpio = <&gpio3 RK_PA1 GPIO_ACTIVE_LOW>;
100724ba675SRob Herring		pinctrl-names = "default";
101724ba675SRob Herring		pinctrl-0 = <&sdmmc_pwr>;
102724ba675SRob Herring		startup-delay-us = <100000>;
103724ba675SRob Herring		vin-supply = <&vcc_io>;
104724ba675SRob Herring	};
105724ba675SRob Herring
106*2c3944d9SJohan Jonker	vcc_host: regulator-usb-host {
107724ba675SRob Herring		compatible = "regulator-fixed";
108724ba675SRob Herring		enable-active-high;
109724ba675SRob Herring		gpio = <&gpio0 RK_PA3 GPIO_ACTIVE_HIGH>;
110724ba675SRob Herring		pinctrl-names = "default";
111724ba675SRob Herring		pinctrl-0 = <&host_vbus_drv>;
112724ba675SRob Herring		regulator-name = "host-pwr";
113724ba675SRob Herring		regulator-min-microvolt = <5000000>;
114724ba675SRob Herring		regulator-max-microvolt = <5000000>;
115724ba675SRob Herring		regulator-always-on;
116724ba675SRob Herring		regulator-boot-on;
117724ba675SRob Herring	};
118724ba675SRob Herring
119*2c3944d9SJohan Jonker	vsys: regulator-vsys {
120724ba675SRob Herring		compatible = "regulator-fixed";
121724ba675SRob Herring		regulator-name = "vsys";
122724ba675SRob Herring		regulator-min-microvolt = <5000000>;
123724ba675SRob Herring		regulator-max-microvolt = <5000000>;
124724ba675SRob Herring		regulator-boot-on;
125724ba675SRob Herring	};
126724ba675SRob Herring};
127724ba675SRob Herring
128724ba675SRob Herring&emac {
129724ba675SRob Herring	phy = <&phy0>;
130724ba675SRob Herring	phy-supply = <&vcc_rmii>;
131724ba675SRob Herring	pinctrl-names = "default";
132724ba675SRob Herring	pinctrl-0 = <&emac_xfer>, <&emac_mdio>, <&phy_int>;
133724ba675SRob Herring	status = "okay";
134724ba675SRob Herring
135724ba675SRob Herring	mdio {
136724ba675SRob Herring		#address-cells = <1>;
137724ba675SRob Herring		#size-cells = <0>;
138724ba675SRob Herring
139724ba675SRob Herring		phy0: ethernet-phy@0 {
140724ba675SRob Herring			reg = <0>;
141724ba675SRob Herring			interrupt-parent = <&gpio3>;
142724ba675SRob Herring			interrupts = <RK_PD2 IRQ_TYPE_LEVEL_LOW>;
143724ba675SRob Herring		};
144724ba675SRob Herring	};
145724ba675SRob Herring};
146724ba675SRob Herring
147724ba675SRob Herring&cpu0 {
148724ba675SRob Herring	cpu-supply = <&vdd_arm>;
149724ba675SRob Herring};
150724ba675SRob Herring
151724ba675SRob Herring&cpu1 {
152724ba675SRob Herring	cpu-supply = <&vdd_arm>;
153724ba675SRob Herring};
154724ba675SRob Herring
155724ba675SRob Herring&cpu2 {
156724ba675SRob Herring	cpu-supply = <&vdd_arm>;
157724ba675SRob Herring};
158724ba675SRob Herring
159724ba675SRob Herring&cpu3 {
160724ba675SRob Herring	cpu-supply = <&vdd_arm>;
161724ba675SRob Herring};
162724ba675SRob Herring
163724ba675SRob Herring&gpu {
164724ba675SRob Herring	status = "okay";
165724ba675SRob Herring};
166724ba675SRob Herring
167724ba675SRob Herring&i2c1 {
168724ba675SRob Herring	status = "okay";
169724ba675SRob Herring	clock-frequency = <400000>;
170724ba675SRob Herring
171724ba675SRob Herring	rtc@51 {
172724ba675SRob Herring		compatible = "haoyu,hym8563";
173724ba675SRob Herring		reg = <0x51>;
174724ba675SRob Herring		interrupt-parent = <&gpio0>;
175724ba675SRob Herring		interrupts = <RK_PB5 IRQ_TYPE_EDGE_FALLING>;
176724ba675SRob Herring		pinctrl-names = "default";
177724ba675SRob Herring		pinctrl-0 = <&rtc_int>;
178724ba675SRob Herring		#clock-cells = <0>;
179724ba675SRob Herring		clock-output-names = "xin32k";
180724ba675SRob Herring	};
181724ba675SRob Herring
182724ba675SRob Herring	act8846: act8846@5a {
183724ba675SRob Herring		compatible = "active-semi,act8846";
184724ba675SRob Herring		reg = <0x5a>;
185724ba675SRob Herring		status = "okay";
186724ba675SRob Herring		system-power-controller;
187724ba675SRob Herring
188724ba675SRob Herring		pinctrl-names = "default";
189724ba675SRob Herring		pinctrl-0 = <&act8846_dvs0_ctl>;
190724ba675SRob Herring
191724ba675SRob Herring		vp1-supply = <&vsys>;
192724ba675SRob Herring		vp2-supply = <&vsys>;
193724ba675SRob Herring		vp3-supply = <&vsys>;
194724ba675SRob Herring		vp4-supply = <&vsys>;
195724ba675SRob Herring		inl1-supply = <&vcc_io>;
196724ba675SRob Herring		inl2-supply = <&vsys>;
197724ba675SRob Herring		inl3-supply = <&vsys>;
198724ba675SRob Herring
199724ba675SRob Herring		regulators {
200724ba675SRob Herring			vcc_ddr: REG1 {
201724ba675SRob Herring				regulator-name = "VCC_DDR";
202724ba675SRob Herring				regulator-min-microvolt = <1200000>;
203724ba675SRob Herring				regulator-max-microvolt = <1200000>;
204724ba675SRob Herring				regulator-always-on;
205724ba675SRob Herring			};
206724ba675SRob Herring
207724ba675SRob Herring			vdd_log: REG2 {
208724ba675SRob Herring				regulator-name = "VDD_LOG";
209724ba675SRob Herring				regulator-min-microvolt = <1000000>;
210724ba675SRob Herring				regulator-max-microvolt = <1000000>;
211724ba675SRob Herring				regulator-always-on;
212724ba675SRob Herring			};
213724ba675SRob Herring
214724ba675SRob Herring			vdd_arm: REG3 {
215724ba675SRob Herring				regulator-name = "VDD_ARM";
216724ba675SRob Herring				regulator-min-microvolt = <875000>;
217724ba675SRob Herring				regulator-max-microvolt = <1350000>;
218724ba675SRob Herring				regulator-always-on;
219724ba675SRob Herring			};
220724ba675SRob Herring
221724ba675SRob Herring			vcc_io: REG4 {
222724ba675SRob Herring				regulator-name = "VCC_IO";
223724ba675SRob Herring				regulator-min-microvolt = <3300000>;
224724ba675SRob Herring				regulator-max-microvolt = <3300000>;
225724ba675SRob Herring				regulator-always-on;
226724ba675SRob Herring			};
227724ba675SRob Herring
228724ba675SRob Herring			vdd_10: REG5 {
229724ba675SRob Herring				regulator-name = "VDD_10";
230724ba675SRob Herring				regulator-min-microvolt = <1000000>;
231724ba675SRob Herring				regulator-max-microvolt = <1000000>;
232724ba675SRob Herring				regulator-always-on;
233724ba675SRob Herring			};
234724ba675SRob Herring
235724ba675SRob Herring			vdd_hdmi: REG6 {
236724ba675SRob Herring				regulator-name = "VDD_HDMI";
237724ba675SRob Herring				regulator-min-microvolt = <2500000>;
238724ba675SRob Herring				regulator-max-microvolt = <2500000>;
239724ba675SRob Herring				regulator-always-on;
240724ba675SRob Herring			};
241724ba675SRob Herring
242724ba675SRob Herring			vcc18: REG7 {
243724ba675SRob Herring				regulator-name = "VCC_18";
244724ba675SRob Herring				regulator-min-microvolt = <1800000>;
245724ba675SRob Herring				regulator-max-microvolt = <1800000>;
246724ba675SRob Herring				regulator-always-on;
247724ba675SRob Herring			};
248724ba675SRob Herring
249724ba675SRob Herring			vcca_33: REG8 {
250724ba675SRob Herring				regulator-name = "VCCA_33";
251724ba675SRob Herring				regulator-min-microvolt = <3300000>;
252724ba675SRob Herring				regulator-max-microvolt = <3300000>;
253724ba675SRob Herring				regulator-always-on;
254724ba675SRob Herring			};
255724ba675SRob Herring
256724ba675SRob Herring			vcc_rmii: REG9 {
257724ba675SRob Herring				regulator-name = "VCC_RMII";
258724ba675SRob Herring				regulator-min-microvolt = <3300000>;
259724ba675SRob Herring				regulator-max-microvolt = <3300000>;
260724ba675SRob Herring			};
261724ba675SRob Herring
262724ba675SRob Herring			vccio_wl: REG10 {
263724ba675SRob Herring				regulator-name = "VCCIO_WL";
264724ba675SRob Herring				regulator-min-microvolt = <3300000>;
265724ba675SRob Herring				regulator-max-microvolt = <3300000>;
266724ba675SRob Herring				regulator-always-on;
267724ba675SRob Herring			};
268724ba675SRob Herring
269724ba675SRob Herring			vcc_18: REG11 {
270724ba675SRob Herring				regulator-name = "VCC18_IO";
271724ba675SRob Herring				regulator-min-microvolt = <1800000>;
272724ba675SRob Herring				regulator-max-microvolt = <1800000>;
273724ba675SRob Herring				regulator-always-on;
274724ba675SRob Herring			};
275724ba675SRob Herring
276724ba675SRob Herring			vcc28: REG12 {
277724ba675SRob Herring				regulator-name = "VCC_28";
278724ba675SRob Herring				regulator-min-microvolt = <2800000>;
279724ba675SRob Herring				regulator-max-microvolt = <2800000>;
280724ba675SRob Herring				regulator-always-on;
281724ba675SRob Herring			};
282724ba675SRob Herring		};
283724ba675SRob Herring	};
284724ba675SRob Herring};
285724ba675SRob Herring
286724ba675SRob Herring&mmc0 {
287724ba675SRob Herring	status = "okay";
288724ba675SRob Herring	pinctrl-names = "default";
289724ba675SRob Herring	pinctrl-0 = <&sd0_clk>, <&sd0_cmd>, <&sd0_cd>, <&sd0_bus4>;
290724ba675SRob Herring	vmmc-supply = <&vcc_sd0>;
291724ba675SRob Herring
292724ba675SRob Herring	bus-width = <4>;
293724ba675SRob Herring	cap-mmc-highspeed;
294724ba675SRob Herring	cap-sd-highspeed;
295724ba675SRob Herring	disable-wp;
296724ba675SRob Herring};
297724ba675SRob Herring
298724ba675SRob Herring&pwm1 {
299724ba675SRob Herring	status = "okay";
300724ba675SRob Herring};
301724ba675SRob Herring
302724ba675SRob Herring&pwm2 {
303724ba675SRob Herring	status = "okay";
304724ba675SRob Herring};
305724ba675SRob Herring
306724ba675SRob Herring&pwm3 {
307724ba675SRob Herring	status = "okay";
308724ba675SRob Herring};
309724ba675SRob Herring
310724ba675SRob Herring&pinctrl {
311724ba675SRob Herring	pcfg_output_low: pcfg-output-low {
312724ba675SRob Herring		output-low;
313724ba675SRob Herring	};
314724ba675SRob Herring
315724ba675SRob Herring	act8846 {
316724ba675SRob Herring		act8846_dvs0_ctl: act8846-dvs0-ctl {
317724ba675SRob Herring			rockchip,pins = <3 RK_PD3 RK_FUNC_GPIO &pcfg_output_low>;
318724ba675SRob Herring		};
319724ba675SRob Herring	};
320724ba675SRob Herring
321724ba675SRob Herring	hym8563 {
322724ba675SRob Herring		rtc_int: rtc-int {
323724ba675SRob Herring			rockchip,pins = <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_up>;
324724ba675SRob Herring		};
325724ba675SRob Herring	};
326724ba675SRob Herring
327724ba675SRob Herring	lan8720a  {
328724ba675SRob Herring		phy_int: phy-int {
329724ba675SRob Herring			rockchip,pins = <3 RK_PD2 RK_FUNC_GPIO &pcfg_pull_up>;
330724ba675SRob Herring		};
331724ba675SRob Herring	};
332724ba675SRob Herring
333724ba675SRob Herring	ir-receiver {
334724ba675SRob Herring		ir_recv_pin: ir-recv-pin {
335724ba675SRob Herring			rockchip,pins = <0 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
336724ba675SRob Herring		};
337724ba675SRob Herring	};
338724ba675SRob Herring
339724ba675SRob Herring	sd0 {
340724ba675SRob Herring		sdmmc_pwr: sdmmc-pwr {
341724ba675SRob Herring			rockchip,pins = <3 RK_PA1 RK_FUNC_GPIO &pcfg_pull_none>;
342724ba675SRob Herring		};
343724ba675SRob Herring	};
344724ba675SRob Herring
345724ba675SRob Herring	usb {
346724ba675SRob Herring		host_vbus_drv: host-vbus-drv {
347724ba675SRob Herring			rockchip,pins = <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>;
348724ba675SRob Herring		};
349724ba675SRob Herring		otg_vbus_drv: otg-vbus-drv {
350724ba675SRob Herring			rockchip,pins = <2 RK_PD7 RK_FUNC_GPIO &pcfg_pull_none>;
351724ba675SRob Herring		};
352724ba675SRob Herring	};
353724ba675SRob Herring};
354724ba675SRob Herring
355724ba675SRob Herring&spdif {
356724ba675SRob Herring	status = "okay";
357724ba675SRob Herring};
358724ba675SRob Herring
359724ba675SRob Herring&uart0 {
360724ba675SRob Herring	status = "okay";
361724ba675SRob Herring};
362724ba675SRob Herring
363724ba675SRob Herring&uart1 {
364724ba675SRob Herring	status = "okay";
365724ba675SRob Herring};
366724ba675SRob Herring
367724ba675SRob Herring&uart2 {
368724ba675SRob Herring	status = "okay";
369724ba675SRob Herring};
370724ba675SRob Herring
371724ba675SRob Herring&uart3 {
372724ba675SRob Herring	status = "okay";
373724ba675SRob Herring};
374724ba675SRob Herring
375724ba675SRob Herring&usbphy {
376724ba675SRob Herring	status = "okay";
377724ba675SRob Herring};
378724ba675SRob Herring
379724ba675SRob Herring&usb_host {
380724ba675SRob Herring	status = "okay";
381724ba675SRob Herring};
382724ba675SRob Herring
383724ba675SRob Herring&usb_otg {
384724ba675SRob Herring	status = "okay";
385724ba675SRob Herring};
386724ba675SRob Herring
387724ba675SRob Herring&wdt {
388724ba675SRob Herring	status = "okay";
389724ba675SRob Herring};
390