xref: /linux/scripts/dtc/include-prefixes/arm/rockchip/rk3288-r89.dts (revision c34e9ab9a612ee8b18273398ef75c207b01f516d)
1724ba675SRob Herring// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2724ba675SRob Herring/*
3724ba675SRob Herring * Copyright (c) 2015 Heiko Stuebner <heiko@sntech.de>
4724ba675SRob Herring */
5724ba675SRob Herring
6724ba675SRob Herring/dts-v1/;
7724ba675SRob Herring#include <dt-bindings/input/input.h>
8724ba675SRob Herring#include <dt-bindings/pwm/pwm.h>
9724ba675SRob Herring#include "rk3288.dtsi"
10724ba675SRob Herring
11724ba675SRob Herring/ {
12724ba675SRob Herring	model = "Netxeon R89";
13724ba675SRob Herring	compatible = "netxeon,r89", "rockchip,rk3288";
14724ba675SRob Herring
15724ba675SRob Herring	memory@0 {
16724ba675SRob Herring		device_type = "memory";
17724ba675SRob Herring		reg = <0x0 0x0 0x0 0x80000000>;
18724ba675SRob Herring	};
19724ba675SRob Herring
20724ba675SRob Herring	ext_gmac: external-gmac-clock {
21724ba675SRob Herring		compatible = "fixed-clock";
22724ba675SRob Herring		clock-frequency = <125000000>;
23724ba675SRob Herring		clock-output-names = "ext_gmac";
24724ba675SRob Herring		#clock-cells = <0>;
25724ba675SRob Herring	};
26724ba675SRob Herring
27724ba675SRob Herring	gpio-keys {
28724ba675SRob Herring		compatible = "gpio-keys";
29724ba675SRob Herring		autorepeat;
30724ba675SRob Herring
31724ba675SRob Herring		pinctrl-names = "default";
32724ba675SRob Herring		pinctrl-0 = <&pwrbtn>;
33724ba675SRob Herring
34724ba675SRob Herring		key-power {
35724ba675SRob Herring			gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>;
36724ba675SRob Herring			linux,code = <KEY_POWER>;
37724ba675SRob Herring			label = "GPIO Key Power";
38724ba675SRob Herring			linux,input-type = <1>;
39724ba675SRob Herring			wakeup-source;
40724ba675SRob Herring			debounce-interval = <100>;
41724ba675SRob Herring		};
42724ba675SRob Herring	};
43724ba675SRob Herring
44724ba675SRob Herring	ir: ir-receiver {
45724ba675SRob Herring		compatible = "gpio-ir-receiver";
46724ba675SRob Herring		gpios = <&gpio7 RK_PA0 GPIO_ACTIVE_LOW>;
47724ba675SRob Herring		pinctrl-names = "default";
48724ba675SRob Herring		pinctrl-0 = <&ir_int>;
49724ba675SRob Herring	};
50724ba675SRob Herring
51*2c3944d9SJohan Jonker	vcc_host: regulator-vcc-host {
52724ba675SRob Herring		compatible = "regulator-fixed";
53724ba675SRob Herring		enable-active-high;
54724ba675SRob Herring		gpio = <&gpio0 RK_PB6 GPIO_ACTIVE_HIGH>;
55724ba675SRob Herring		pinctrl-names = "default";
56724ba675SRob Herring		pinctrl-0 = <&host_vbus_drv>;
57724ba675SRob Herring		regulator-name = "vcc_host";
58724ba675SRob Herring		regulator-always-on;
59724ba675SRob Herring		regulator-boot-on;
60724ba675SRob Herring	};
61724ba675SRob Herring
62*2c3944d9SJohan Jonker	vcc_otg: regulator-vcc-otg {
63724ba675SRob Herring		compatible = "regulator-fixed";
64724ba675SRob Herring		enable-active-high;
65724ba675SRob Herring		gpio = <&gpio0 RK_PB4 GPIO_ACTIVE_HIGH>;
66724ba675SRob Herring		pinctrl-names = "default";
67724ba675SRob Herring		pinctrl-0 = <&otg_vbus_drv>;
68724ba675SRob Herring		regulator-name = "vcc_otg";
69724ba675SRob Herring		regulator-always-on;
70724ba675SRob Herring		regulator-boot-on;
71724ba675SRob Herring	};
72724ba675SRob Herring
73*2c3944d9SJohan Jonker	vcc_sdmmc: regulator-sdmmc {
74724ba675SRob Herring		compatible = "regulator-fixed";
75724ba675SRob Herring		regulator-name = "sdmmc-supply";
76724ba675SRob Herring		regulator-min-microvolt = <3300000>;
77724ba675SRob Herring		regulator-max-microvolt = <3300000>;
78724ba675SRob Herring		gpio = <&gpio7 RK_PB3 GPIO_ACTIVE_LOW>;
79724ba675SRob Herring		startup-delay-us = <100000>;
80724ba675SRob Herring		vin-supply = <&vcc_io>;
81724ba675SRob Herring	};
82724ba675SRob Herring
83*2c3944d9SJohan Jonker	vcc_sys: regulator-sys {
84724ba675SRob Herring		compatible = "regulator-fixed";
85724ba675SRob Herring		regulator-name = "sys-supply";
86724ba675SRob Herring		regulator-min-microvolt = <5000000>;
87724ba675SRob Herring		regulator-max-microvolt = <5000000>;
88724ba675SRob Herring		regulator-always-on;
89724ba675SRob Herring		regulator-boot-on;
90724ba675SRob Herring	};
91724ba675SRob Herring};
92724ba675SRob Herring
93724ba675SRob Herring&cpu0 {
94724ba675SRob Herring	cpu-supply = <&vdd_cpu>;
95724ba675SRob Herring};
96724ba675SRob Herring
97724ba675SRob Herring&cpu1 {
98724ba675SRob Herring	cpu-supply = <&vdd_cpu>;
99724ba675SRob Herring};
100724ba675SRob Herring
101724ba675SRob Herring&cpu2 {
102724ba675SRob Herring	cpu-supply = <&vdd_cpu>;
103724ba675SRob Herring};
104724ba675SRob Herring
105724ba675SRob Herring&cpu3 {
106724ba675SRob Herring	cpu-supply = <&vdd_cpu>;
107724ba675SRob Herring};
108724ba675SRob Herring
109724ba675SRob Herring&gmac {
110724ba675SRob Herring	phy-supply = <&vcc_lan>;
111724ba675SRob Herring	phy-mode = "rgmii";
112724ba675SRob Herring	clock_in_out = "input";
113724ba675SRob Herring	snps,reset-gpio = <&gpio4 RK_PA7 GPIO_ACTIVE_HIGH>;
114724ba675SRob Herring	snps,reset-active-low;
115724ba675SRob Herring	snps,reset-delays-us = <0 10000 1000000>;
116724ba675SRob Herring	assigned-clocks = <&cru SCLK_MAC>;
117724ba675SRob Herring	assigned-clock-parents = <&ext_gmac>;
118724ba675SRob Herring	pinctrl-names = "default";
119724ba675SRob Herring	pinctrl-0 = <&rgmii_pins>;
120724ba675SRob Herring	tx_delay = <0x30>;
121724ba675SRob Herring	rx_delay = <0x10>;
122724ba675SRob Herring	status = "okay";
123724ba675SRob Herring};
124724ba675SRob Herring
125724ba675SRob Herring&hdmi {
126724ba675SRob Herring	status = "okay";
127724ba675SRob Herring};
128724ba675SRob Herring
129724ba675SRob Herring&i2c0 {
130724ba675SRob Herring	status = "okay";
131724ba675SRob Herring
132724ba675SRob Herring	vdd_cpu: pmic@40 {
133724ba675SRob Herring		compatible = "silergy,syr827";
134724ba675SRob Herring		reg = <0x40>;
135724ba675SRob Herring		fcs,suspend-voltage-selector = <1>;
136724ba675SRob Herring		regulator-name = "VDD_CPU";
137724ba675SRob Herring		regulator-enable-ramp-delay = <300>;
138724ba675SRob Herring		regulator-min-microvolt = <850000>;
139724ba675SRob Herring		regulator-max-microvolt = <1350000>;
140724ba675SRob Herring		regulator-ramp-delay = <8000>;
141724ba675SRob Herring		regulator-always-on;
142724ba675SRob Herring		regulator-boot-on;
143724ba675SRob Herring		vin-supply = <&vcc_sys>;
144724ba675SRob Herring	};
145724ba675SRob Herring
146724ba675SRob Herring	vdd_gpu: pmic@41 {
147724ba675SRob Herring		compatible = "silergy,syr828";
148724ba675SRob Herring		reg = <0x41>;
149724ba675SRob Herring		fcs,suspend-voltage-selector = <1>;
150724ba675SRob Herring		regulator-name = "VDD_GPU";
151724ba675SRob Herring		regulator-enable-ramp-delay = <300>;
152724ba675SRob Herring		regulator-min-microvolt = <850000>;
153724ba675SRob Herring		regulator-max-microvolt = <1350000>;
154724ba675SRob Herring		regulator-ramp-delay = <8000>;
155724ba675SRob Herring		regulator-always-on;
156724ba675SRob Herring		regulator-boot-on;
157724ba675SRob Herring		vin-supply = <&vcc_sys>;
158724ba675SRob Herring	};
159724ba675SRob Herring
160724ba675SRob Herring	rtc@51 {
161724ba675SRob Herring		compatible = "haoyu,hym8563";
162724ba675SRob Herring		reg = <0x51>;
163724ba675SRob Herring		#clock-cells = <0>;
164724ba675SRob Herring		clock-output-names = "xin32k";
165724ba675SRob Herring		interrupt-parent = <&gpio0>;
166724ba675SRob Herring		interrupts = <RK_PA4 IRQ_TYPE_EDGE_FALLING>;
167724ba675SRob Herring		pinctrl-names = "default";
168724ba675SRob Herring		pinctrl-0 = <&pmic_int>;
169724ba675SRob Herring	};
170724ba675SRob Herring
171724ba675SRob Herring	act8846: pmic@5a {
172724ba675SRob Herring		compatible = "active-semi,act8846";
173724ba675SRob Herring		reg = <0x5a>;
174724ba675SRob Herring		pinctrl-names = "default";
175724ba675SRob Herring		pinctrl-0 = <&pmic_vsel>, <&pwr_hold>;
176724ba675SRob Herring		system-power-controller;
177724ba675SRob Herring
178724ba675SRob Herring		regulators {
179724ba675SRob Herring			vcc_ddr: REG1 {
180724ba675SRob Herring				regulator-name = "VCC_DDR";
181724ba675SRob Herring				regulator-min-microvolt = <1200000>;
182724ba675SRob Herring				regulator-max-microvolt = <1200000>;
183724ba675SRob Herring				regulator-always-on;
184724ba675SRob Herring			};
185724ba675SRob Herring
186724ba675SRob Herring			vcc_io: REG2 {
187724ba675SRob Herring				regulator-name = "VCC_IO";
188724ba675SRob Herring				regulator-min-microvolt = <3300000>;
189724ba675SRob Herring				regulator-max-microvolt = <3300000>;
190724ba675SRob Herring				regulator-always-on;
191724ba675SRob Herring			};
192724ba675SRob Herring
193724ba675SRob Herring			vdd_log: REG3 {
194724ba675SRob Herring				regulator-name = "VDD_LOG";
195724ba675SRob Herring				regulator-min-microvolt = <1000000>;
196724ba675SRob Herring				regulator-max-microvolt = <1000000>;
197724ba675SRob Herring				regulator-always-on;
198724ba675SRob Herring			};
199724ba675SRob Herring
200724ba675SRob Herring			vcc_20: REG4 {
201724ba675SRob Herring				regulator-name = "VCC_20";
202724ba675SRob Herring				regulator-min-microvolt = <2000000>;
203724ba675SRob Herring				regulator-max-microvolt = <2000000>;
204724ba675SRob Herring				regulator-always-on;
205724ba675SRob Herring			};
206724ba675SRob Herring
207724ba675SRob Herring			vccio_sd: REG5 {
208724ba675SRob Herring				regulator-name = "VCCIO_SD";
209724ba675SRob Herring				regulator-min-microvolt = <3300000>;
210724ba675SRob Herring				regulator-max-microvolt = <3300000>;
211724ba675SRob Herring				regulator-always-on;
212724ba675SRob Herring			};
213724ba675SRob Herring
214724ba675SRob Herring			vdd10_lcd: REG6 {
215724ba675SRob Herring				regulator-name = "VDD10_LCD";
216724ba675SRob Herring				regulator-min-microvolt = <1000000>;
217724ba675SRob Herring				regulator-max-microvolt = <1000000>;
218724ba675SRob Herring				regulator-always-on;
219724ba675SRob Herring			};
220724ba675SRob Herring
221724ba675SRob Herring			vcc_wl: REG7 {
222724ba675SRob Herring				regulator-name = "VCC_WL";
223724ba675SRob Herring				regulator-min-microvolt = <3300000>;
224724ba675SRob Herring				regulator-max-microvolt = <3300000>;
225724ba675SRob Herring				regulator-always-on;
226724ba675SRob Herring			};
227724ba675SRob Herring
228724ba675SRob Herring			vcca_33: REG8 {
229724ba675SRob Herring				regulator-name = "VCCA_33";
230724ba675SRob Herring				regulator-min-microvolt = <3300000>;
231724ba675SRob Herring				regulator-max-microvolt = <3300000>;
232724ba675SRob Herring				regulator-always-on;
233724ba675SRob Herring			};
234724ba675SRob Herring
235724ba675SRob Herring			vcc_lan: REG9 {
236724ba675SRob Herring				regulator-name = "VCC_LAN";
237724ba675SRob Herring				regulator-min-microvolt = <3300000>;
238724ba675SRob Herring				regulator-max-microvolt = <3300000>;
239724ba675SRob Herring				regulator-always-on;
240724ba675SRob Herring			};
241724ba675SRob Herring
242724ba675SRob Herring			vdd_10: REG10 {
243724ba675SRob Herring				regulator-name = "VDD_10";
244724ba675SRob Herring				regulator-min-microvolt = <1000000>;
245724ba675SRob Herring				regulator-max-microvolt = <1000000>;
246724ba675SRob Herring				regulator-always-on;
247724ba675SRob Herring			};
248724ba675SRob Herring
249724ba675SRob Herring			vcc_18: REG11 {
250724ba675SRob Herring				regulator-name = "VCC_18";
251724ba675SRob Herring				regulator-min-microvolt = <1800000>;
252724ba675SRob Herring				regulator-max-microvolt = <1800000>;
253724ba675SRob Herring				regulator-always-on;
254724ba675SRob Herring			};
255724ba675SRob Herring
256724ba675SRob Herring			vcc18_lcd: REG12 {
257724ba675SRob Herring				regulator-name = "VCC18_LCD";
258724ba675SRob Herring				regulator-min-microvolt = <1800000>;
259724ba675SRob Herring				regulator-max-microvolt = <1800000>;
260724ba675SRob Herring				regulator-always-on;
261724ba675SRob Herring			};
262724ba675SRob Herring		};
263724ba675SRob Herring	};
264724ba675SRob Herring};
265724ba675SRob Herring
266724ba675SRob Herring&i2c5 {
267724ba675SRob Herring	status = "okay";
268724ba675SRob Herring};
269724ba675SRob Herring
270724ba675SRob Herring&pinctrl {
271724ba675SRob Herring	pcfg_output_high: pcfg-output-high {
272724ba675SRob Herring		output-high;
273724ba675SRob Herring	};
274724ba675SRob Herring
275724ba675SRob Herring	pcfg_output_low: pcfg-output-low {
276724ba675SRob Herring		output-low;
277724ba675SRob Herring	};
278724ba675SRob Herring
279724ba675SRob Herring	act8846 {
280724ba675SRob Herring		pmic_vsel: pmic-vsel {
281724ba675SRob Herring			rockchip,pins = <7 RK_PA1 RK_FUNC_GPIO &pcfg_output_low>;
282724ba675SRob Herring		};
283724ba675SRob Herring
284724ba675SRob Herring		pwr_hold: pwr-hold {
285724ba675SRob Herring			rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_output_high>;
286724ba675SRob Herring		};
287724ba675SRob Herring	};
288724ba675SRob Herring
289724ba675SRob Herring	buttons {
290724ba675SRob Herring		pwrbtn: pwrbtn {
291724ba675SRob Herring			rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>;
292724ba675SRob Herring		};
293724ba675SRob Herring	};
294724ba675SRob Herring
295724ba675SRob Herring	ir {
296724ba675SRob Herring		ir_int: ir-int {
297724ba675SRob Herring			rockchip,pins = <7 RK_PA0 RK_FUNC_GPIO &pcfg_pull_up>;
298724ba675SRob Herring		};
299724ba675SRob Herring	};
300724ba675SRob Herring
301724ba675SRob Herring	pmic {
302724ba675SRob Herring		pmic_int: pmic-int {
303724ba675SRob Herring			rockchip,pins = <0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up>;
304724ba675SRob Herring		};
305724ba675SRob Herring	};
306724ba675SRob Herring
307724ba675SRob Herring	usb {
308724ba675SRob Herring		host_vbus_drv: host-vbus-drv {
309724ba675SRob Herring			rockchip,pins = <0 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>;
310724ba675SRob Herring		};
311724ba675SRob Herring
312724ba675SRob Herring		otg_vbus_drv: otg-vbus-drv {
313724ba675SRob Herring			rockchip,pins = <0 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>;
314724ba675SRob Herring		};
315724ba675SRob Herring	};
316724ba675SRob Herring};
317724ba675SRob Herring
318724ba675SRob Herring&pwm0 {
319724ba675SRob Herring	status = "okay";
320724ba675SRob Herring};
321724ba675SRob Herring
322724ba675SRob Herring&saradc {
323724ba675SRob Herring	vref-supply = <&vcc_18>;
324724ba675SRob Herring	status = "okay";
325724ba675SRob Herring};
326724ba675SRob Herring
327724ba675SRob Herring&sdmmc {
328724ba675SRob Herring	bus-width = <4>;
329724ba675SRob Herring	cap-mmc-highspeed;
330724ba675SRob Herring	cap-sd-highspeed;
331724ba675SRob Herring	card-detect-delay = <200>;
332724ba675SRob Herring	disable-wp;
333724ba675SRob Herring	pinctrl-names = "default";
334724ba675SRob Herring	pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
335724ba675SRob Herring	vmmc-supply = <&vcc_sdmmc>;
336724ba675SRob Herring	vqmmc-supply = <&vccio_sd>;
337724ba675SRob Herring	status = "okay";
338724ba675SRob Herring};
339724ba675SRob Herring
340724ba675SRob Herring&tsadc {
341724ba675SRob Herring	rockchip,hw-tshut-mode = <0>;
342724ba675SRob Herring	rockchip,hw-tshut-polarity = <0>;
343724ba675SRob Herring	status = "okay";
344724ba675SRob Herring};
345724ba675SRob Herring
346724ba675SRob Herring&uart0 {
347724ba675SRob Herring	status = "okay";
348724ba675SRob Herring};
349724ba675SRob Herring
350724ba675SRob Herring&uart1 {
351724ba675SRob Herring	status = "okay";
352724ba675SRob Herring};
353724ba675SRob Herring
354724ba675SRob Herring&uart2 {
355724ba675SRob Herring	status = "okay";
356724ba675SRob Herring};
357724ba675SRob Herring
358724ba675SRob Herring&uart3 {
359724ba675SRob Herring	status = "okay";
360724ba675SRob Herring};
361724ba675SRob Herring
362724ba675SRob Herring&uart4 {
363724ba675SRob Herring	status = "okay";
364724ba675SRob Herring};
365724ba675SRob Herring
366724ba675SRob Herring&usb_host0_ehci {
367724ba675SRob Herring	status = "okay";
368724ba675SRob Herring};
369724ba675SRob Herring
370724ba675SRob Herring&usb_host1 {
371724ba675SRob Herring	status = "okay";
372724ba675SRob Herring};
373724ba675SRob Herring
374724ba675SRob Herring&usb_otg {
375724ba675SRob Herring	status = "okay";
376724ba675SRob Herring};
377724ba675SRob Herring
378724ba675SRob Herring&usbphy {
379724ba675SRob Herring	status = "okay";
380724ba675SRob Herring};
381724ba675SRob Herring
382724ba675SRob Herring&vopb {
383724ba675SRob Herring	status = "okay";
384724ba675SRob Herring};
385724ba675SRob Herring
386724ba675SRob Herring&vopb_mmu {
387724ba675SRob Herring	status = "okay";
388724ba675SRob Herring};
389724ba675SRob Herring
390724ba675SRob Herring&vopl {
391724ba675SRob Herring	status = "okay";
392724ba675SRob Herring};
393724ba675SRob Herring
394724ba675SRob Herring&vopl_mmu {
395724ba675SRob Herring	status = "okay";
396724ba675SRob Herring};
397724ba675SRob Herring
398724ba675SRob Herring&wdt {
399724ba675SRob Herring	status = "okay";
400724ba675SRob Herring};
401