xref: /linux/scripts/dtc/include-prefixes/arm/rockchip/rk3229-xms6.dts (revision c34e9ab9a612ee8b18273398ef75c207b01f516d)
1724ba675SRob Herring// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2724ba675SRob Herring
3724ba675SRob Herring/dts-v1/;
4724ba675SRob Herring
5724ba675SRob Herring#include <dt-bindings/input/input.h>
6724ba675SRob Herring#include "rk3229.dtsi"
7724ba675SRob Herring
8724ba675SRob Herring/ {
9724ba675SRob Herring	model = "Mecer Xtreme Mini S6";
10724ba675SRob Herring	compatible = "mecer,xms6", "rockchip,rk3229";
11724ba675SRob Herring
12724ba675SRob Herring	aliases {
13724ba675SRob Herring		mmc0 = &sdmmc;
14724ba675SRob Herring		mmc1 = &sdio;
15724ba675SRob Herring		mmc2 = &emmc;
16724ba675SRob Herring	};
17724ba675SRob Herring
18724ba675SRob Herring	memory@60000000 {
19724ba675SRob Herring		device_type = "memory";
20724ba675SRob Herring		reg = <0x60000000 0x40000000>;
21724ba675SRob Herring	};
22724ba675SRob Herring
23*2c3944d9SJohan Jonker	dc_12v: regulator-dc-12v {
24724ba675SRob Herring		compatible = "regulator-fixed";
25724ba675SRob Herring		regulator-name = "dc_12v";
26724ba675SRob Herring		regulator-always-on;
27724ba675SRob Herring		regulator-boot-on;
28724ba675SRob Herring		regulator-min-microvolt = <12000000>;
29724ba675SRob Herring		regulator-max-microvolt = <12000000>;
30724ba675SRob Herring	};
31724ba675SRob Herring
32724ba675SRob Herring	ext_gmac: ext_gmac {
33724ba675SRob Herring		compatible = "fixed-clock";
34724ba675SRob Herring		clock-frequency = <125000000>;
35724ba675SRob Herring		clock-output-names = "ext_gmac";
36724ba675SRob Herring		#clock-cells = <0>;
37724ba675SRob Herring	};
38724ba675SRob Herring
39724ba675SRob Herring	power-led {
40724ba675SRob Herring		compatible = "gpio-leds";
41724ba675SRob Herring
42724ba675SRob Herring		blue_led: led-0 {
43724ba675SRob Herring			gpios = <&gpio3 21 GPIO_ACTIVE_HIGH>;
44724ba675SRob Herring			default-state = "on";
45724ba675SRob Herring		};
46724ba675SRob Herring	};
47724ba675SRob Herring
48724ba675SRob Herring	sdio_pwrseq: sdio-pwrseq {
49724ba675SRob Herring		compatible = "mmc-pwrseq-simple";
50724ba675SRob Herring		reset-gpios = <&gpio2 26 GPIO_ACTIVE_LOW>,
51724ba675SRob Herring		              <&gpio2 29 GPIO_ACTIVE_LOW>;
52724ba675SRob Herring	};
53724ba675SRob Herring
54*2c3944d9SJohan Jonker	vcc_host: regulator-vcc-host {
55724ba675SRob Herring		compatible = "regulator-fixed";
56724ba675SRob Herring		enable-active-high;
57724ba675SRob Herring		gpio = <&gpio3 RK_PC4 GPIO_ACTIVE_HIGH>;
58724ba675SRob Herring		pinctrl-names = "default";
59724ba675SRob Herring		pinctrl-0 = <&host_vbus_drv>;
60724ba675SRob Herring		regulator-name = "vcc_host";
61724ba675SRob Herring		regulator-always-on;
62724ba675SRob Herring		regulator-boot-on;
63724ba675SRob Herring		vin-supply = <&vcc_sys>;
64724ba675SRob Herring	};
65724ba675SRob Herring
66*2c3944d9SJohan Jonker	vcc_phy: regulator-vcc-phy {
67724ba675SRob Herring		compatible = "regulator-fixed";
68724ba675SRob Herring		enable-active-high;
69724ba675SRob Herring		regulator-name = "vcc_phy";
70724ba675SRob Herring		regulator-min-microvolt = <1800000>;
71724ba675SRob Herring		regulator-max-microvolt = <1800000>;
72724ba675SRob Herring		regulator-always-on;
73724ba675SRob Herring		regulator-boot-on;
74724ba675SRob Herring		vin-supply = <&vccio_1v8>;
75724ba675SRob Herring	};
76724ba675SRob Herring
77*2c3944d9SJohan Jonker	vcc_sys: regulator-vcc-sys {
78724ba675SRob Herring		compatible = "regulator-fixed";
79724ba675SRob Herring		regulator-name = "vcc_sys";
80724ba675SRob Herring		regulator-always-on;
81724ba675SRob Herring		regulator-boot-on;
82724ba675SRob Herring		regulator-min-microvolt = <5000000>;
83724ba675SRob Herring		regulator-max-microvolt = <5000000>;
84724ba675SRob Herring		vin-supply = <&dc_12v>;
85724ba675SRob Herring	};
86724ba675SRob Herring
87*2c3944d9SJohan Jonker	vccio_1v8: regulator-vccio-1v8 {
88724ba675SRob Herring		compatible = "regulator-fixed";
89724ba675SRob Herring		regulator-name = "vccio_1v8";
90724ba675SRob Herring		regulator-min-microvolt = <1800000>;
91724ba675SRob Herring		regulator-max-microvolt = <1800000>;
92724ba675SRob Herring		regulator-always-on;
93724ba675SRob Herring		vin-supply = <&vcc_sys>;
94724ba675SRob Herring	};
95724ba675SRob Herring
96*2c3944d9SJohan Jonker	vccio_3v3: regulator-vccio-3v3 {
97724ba675SRob Herring		compatible = "regulator-fixed";
98724ba675SRob Herring		regulator-name = "vccio_3v3";
99724ba675SRob Herring		regulator-min-microvolt = <3300000>;
100724ba675SRob Herring		regulator-max-microvolt = <3300000>;
101724ba675SRob Herring		regulator-always-on;
102724ba675SRob Herring		vin-supply = <&vcc_sys>;
103724ba675SRob Herring	};
104724ba675SRob Herring
105*2c3944d9SJohan Jonker	vdd_arm: regulator-vdd-arm {
106724ba675SRob Herring		compatible = "pwm-regulator";
107724ba675SRob Herring		pwms = <&pwm1 0 25000 1>;
108724ba675SRob Herring		pwm-supply = <&vcc_sys>;
109724ba675SRob Herring		regulator-name = "vdd_arm";
110724ba675SRob Herring		regulator-min-microvolt = <950000>;
111724ba675SRob Herring		regulator-max-microvolt = <1400000>;
112724ba675SRob Herring		regulator-always-on;
113724ba675SRob Herring		regulator-boot-on;
114724ba675SRob Herring	};
115724ba675SRob Herring
116*2c3944d9SJohan Jonker	vdd_log: regulator-vdd-log {
117724ba675SRob Herring		compatible = "pwm-regulator";
118724ba675SRob Herring		pwms = <&pwm2 0 25000 1>;
119724ba675SRob Herring		pwm-supply = <&vcc_sys>;
120724ba675SRob Herring		regulator-name = "vdd_log";
121724ba675SRob Herring		regulator-min-microvolt = <1000000>;
122724ba675SRob Herring		regulator-max-microvolt = <1300000>;
123724ba675SRob Herring		regulator-always-on;
124724ba675SRob Herring		regulator-boot-on;
125724ba675SRob Herring	};
126724ba675SRob Herring};
127724ba675SRob Herring
128724ba675SRob Herring&cpu0 {
129724ba675SRob Herring	cpu-supply = <&vdd_arm>;
130724ba675SRob Herring};
131724ba675SRob Herring
132724ba675SRob Herring&cpu1 {
133724ba675SRob Herring	cpu-supply = <&vdd_arm>;
134724ba675SRob Herring};
135724ba675SRob Herring
136724ba675SRob Herring&cpu2 {
137724ba675SRob Herring	cpu-supply = <&vdd_arm>;
138724ba675SRob Herring};
139724ba675SRob Herring
140724ba675SRob Herring&cpu3 {
141724ba675SRob Herring	cpu-supply = <&vdd_arm>;
142724ba675SRob Herring};
143724ba675SRob Herring
144724ba675SRob Herring&emmc {
145724ba675SRob Herring	cap-mmc-highspeed;
146724ba675SRob Herring	non-removable;
147724ba675SRob Herring	status = "okay";
148724ba675SRob Herring};
149724ba675SRob Herring
150724ba675SRob Herring&gmac {
151724ba675SRob Herring	assigned-clocks = <&cru SCLK_MAC_SRC>;
152724ba675SRob Herring	assigned-clock-rates = <50000000>;
153724ba675SRob Herring	clock_in_out = "output";
154724ba675SRob Herring	phy-handle = <&phy>;
155724ba675SRob Herring	phy-mode = "rmii";
156724ba675SRob Herring	phy-supply = <&vcc_phy>;
157724ba675SRob Herring	status = "okay";
158724ba675SRob Herring
159724ba675SRob Herring	mdio {
160724ba675SRob Herring		compatible = "snps,dwmac-mdio";
161724ba675SRob Herring		#address-cells = <1>;
162724ba675SRob Herring		#size-cells = <0>;
163724ba675SRob Herring
164724ba675SRob Herring		phy: ethernet-phy@0 {
165724ba675SRob Herring			compatible = "ethernet-phy-id1234.d400",
166724ba675SRob Herring			             "ethernet-phy-ieee802.3-c22";
167724ba675SRob Herring			reg = <0>;
168724ba675SRob Herring			clocks = <&cru SCLK_MAC_PHY>;
169724ba675SRob Herring			phy-is-integrated;
170724ba675SRob Herring			resets = <&cru SRST_MACPHY>;
171724ba675SRob Herring		};
172724ba675SRob Herring	};
173724ba675SRob Herring};
174724ba675SRob Herring
175724ba675SRob Herring&gpu {
176724ba675SRob Herring	mali-supply = <&vdd_log>;
177724ba675SRob Herring	status = "okay";
178724ba675SRob Herring};
179724ba675SRob Herring
180724ba675SRob Herring&hdmi {
181724ba675SRob Herring	status = "okay";
182724ba675SRob Herring};
183724ba675SRob Herring
184724ba675SRob Herring&hdmi_phy {
185724ba675SRob Herring	status = "okay";
186724ba675SRob Herring};
187724ba675SRob Herring
188724ba675SRob Herring&iep_mmu {
189724ba675SRob Herring	status = "okay";
190724ba675SRob Herring};
191724ba675SRob Herring
192724ba675SRob Herring&io_domains {
193724ba675SRob Herring	status = "okay";
194724ba675SRob Herring
195724ba675SRob Herring	vccio1-supply = <&vccio_3v3>;
196724ba675SRob Herring	vccio2-supply = <&vccio_1v8>;
197724ba675SRob Herring	vccio4-supply = <&vccio_3v3>;
198724ba675SRob Herring};
199724ba675SRob Herring
200724ba675SRob Herring&pinctrl {
201724ba675SRob Herring	usb {
202724ba675SRob Herring		host_vbus_drv: host-vbus-drv {
203724ba675SRob Herring			rockchip,pins = <3 RK_PC4 RK_FUNC_GPIO &pcfg_pull_none>;
204724ba675SRob Herring		};
205724ba675SRob Herring	};
206724ba675SRob Herring};
207724ba675SRob Herring
208724ba675SRob Herring&pwm1 {
209724ba675SRob Herring	status = "okay";
210724ba675SRob Herring};
211724ba675SRob Herring
212724ba675SRob Herring&pwm2 {
213724ba675SRob Herring	status = "okay";
214724ba675SRob Herring};
215724ba675SRob Herring
216724ba675SRob Herring&sdio {
217724ba675SRob Herring	bus-width = <4>;
218724ba675SRob Herring	cap-sd-highspeed;
219724ba675SRob Herring	cap-sdio-irq;
220724ba675SRob Herring	mmc-pwrseq = <&sdio_pwrseq>;
221724ba675SRob Herring	non-removable;
222724ba675SRob Herring	vqmmc-supply = <&vccio_1v8>;
223724ba675SRob Herring	status = "okay";
224724ba675SRob Herring};
225724ba675SRob Herring
226724ba675SRob Herring&sdmmc {
227724ba675SRob Herring	cap-mmc-highspeed;
228724ba675SRob Herring	disable-wp;
229724ba675SRob Herring	status = "okay";
230724ba675SRob Herring};
231724ba675SRob Herring
232724ba675SRob Herring&tsadc {
233724ba675SRob Herring	rockchip,hw-tshut-mode = <0>;
234724ba675SRob Herring	status = "okay";
235724ba675SRob Herring};
236724ba675SRob Herring
237724ba675SRob Herring&u2phy0 {
238724ba675SRob Herring	status = "okay";
239724ba675SRob Herring
240724ba675SRob Herring	u2phy0_host: host-port {
241724ba675SRob Herring		phy-supply = <&vcc_host>;
242724ba675SRob Herring		status = "okay";
243724ba675SRob Herring	};
244724ba675SRob Herring
245724ba675SRob Herring	u2phy0_otg: otg-port {
246724ba675SRob Herring		phy-supply = <&vcc_host>;
247724ba675SRob Herring		status = "okay";
248724ba675SRob Herring	};
249724ba675SRob Herring};
250724ba675SRob Herring
251724ba675SRob Herring&u2phy1 {
252724ba675SRob Herring	status = "okay";
253724ba675SRob Herring
254724ba675SRob Herring	u2phy1_host: host-port {
255724ba675SRob Herring		phy-supply = <&vcc_host>;
256724ba675SRob Herring		status = "okay";
257724ba675SRob Herring	};
258724ba675SRob Herring
259724ba675SRob Herring	u2phy1_otg: otg-port {
260724ba675SRob Herring		phy-supply = <&vcc_host>;
261724ba675SRob Herring		status = "okay";
262724ba675SRob Herring	};
263724ba675SRob Herring};
264724ba675SRob Herring
265724ba675SRob Herring&uart2 {
266724ba675SRob Herring	pinctrl-0 = <&uart21_xfer>;
267724ba675SRob Herring	status = "okay";
268724ba675SRob Herring};
269724ba675SRob Herring
270724ba675SRob Herring&usb_host0_ehci {
271724ba675SRob Herring	status = "okay";
272724ba675SRob Herring};
273724ba675SRob Herring
274724ba675SRob Herring&usb_host0_ohci {
275724ba675SRob Herring	status = "okay";
276724ba675SRob Herring};
277724ba675SRob Herring
278724ba675SRob Herring&usb_host1_ehci {
279724ba675SRob Herring	status = "okay";
280724ba675SRob Herring};
281724ba675SRob Herring
282724ba675SRob Herring&usb_host1_ohci {
283724ba675SRob Herring	status = "okay";
284724ba675SRob Herring};
285724ba675SRob Herring
286724ba675SRob Herring&usb_host2_ehci {
287724ba675SRob Herring	status = "okay";
288724ba675SRob Herring};
289724ba675SRob Herring
290724ba675SRob Herring&usb_host2_ohci {
291724ba675SRob Herring	status = "okay";
292724ba675SRob Herring};
293724ba675SRob Herring
294724ba675SRob Herring&usb_otg {
295724ba675SRob Herring	status = "okay";
296724ba675SRob Herring};
297724ba675SRob Herring
298724ba675SRob Herring&vop {
299724ba675SRob Herring	status = "okay";
300724ba675SRob Herring};
301724ba675SRob Herring
302724ba675SRob Herring&vop_mmu {
303724ba675SRob Herring	status = "okay";
304724ba675SRob Herring};
305