xref: /linux/scripts/dtc/include-prefixes/arm/rockchip/rk3229-xms6.dts (revision 724ba6751532055db75992fc6ae21c3e322e94a7)
1*724ba675SRob Herring// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2*724ba675SRob Herring
3*724ba675SRob Herring/dts-v1/;
4*724ba675SRob Herring
5*724ba675SRob Herring#include <dt-bindings/input/input.h>
6*724ba675SRob Herring#include "rk3229.dtsi"
7*724ba675SRob Herring
8*724ba675SRob Herring/ {
9*724ba675SRob Herring	model = "Mecer Xtreme Mini S6";
10*724ba675SRob Herring	compatible = "mecer,xms6", "rockchip,rk3229";
11*724ba675SRob Herring
12*724ba675SRob Herring	aliases {
13*724ba675SRob Herring		mmc0 = &sdmmc;
14*724ba675SRob Herring		mmc1 = &sdio;
15*724ba675SRob Herring		mmc2 = &emmc;
16*724ba675SRob Herring	};
17*724ba675SRob Herring
18*724ba675SRob Herring	memory@60000000 {
19*724ba675SRob Herring		device_type = "memory";
20*724ba675SRob Herring		reg = <0x60000000 0x40000000>;
21*724ba675SRob Herring	};
22*724ba675SRob Herring
23*724ba675SRob Herring	dc_12v: dc-12v-regulator {
24*724ba675SRob Herring		compatible = "regulator-fixed";
25*724ba675SRob Herring		regulator-name = "dc_12v";
26*724ba675SRob Herring		regulator-always-on;
27*724ba675SRob Herring		regulator-boot-on;
28*724ba675SRob Herring		regulator-min-microvolt = <12000000>;
29*724ba675SRob Herring		regulator-max-microvolt = <12000000>;
30*724ba675SRob Herring	};
31*724ba675SRob Herring
32*724ba675SRob Herring	ext_gmac: ext_gmac {
33*724ba675SRob Herring		compatible = "fixed-clock";
34*724ba675SRob Herring		clock-frequency = <125000000>;
35*724ba675SRob Herring		clock-output-names = "ext_gmac";
36*724ba675SRob Herring		#clock-cells = <0>;
37*724ba675SRob Herring	};
38*724ba675SRob Herring
39*724ba675SRob Herring	power-led {
40*724ba675SRob Herring		compatible = "gpio-leds";
41*724ba675SRob Herring
42*724ba675SRob Herring		blue_led: led-0 {
43*724ba675SRob Herring			gpios = <&gpio3 21 GPIO_ACTIVE_HIGH>;
44*724ba675SRob Herring			default-state = "on";
45*724ba675SRob Herring		};
46*724ba675SRob Herring	};
47*724ba675SRob Herring
48*724ba675SRob Herring	sdio_pwrseq: sdio-pwrseq {
49*724ba675SRob Herring		compatible = "mmc-pwrseq-simple";
50*724ba675SRob Herring		reset-gpios = <&gpio2 26 GPIO_ACTIVE_LOW>,
51*724ba675SRob Herring		              <&gpio2 29 GPIO_ACTIVE_LOW>;
52*724ba675SRob Herring	};
53*724ba675SRob Herring
54*724ba675SRob Herring	vcc_host: vcc-host-regulator {
55*724ba675SRob Herring		compatible = "regulator-fixed";
56*724ba675SRob Herring		enable-active-high;
57*724ba675SRob Herring		gpio = <&gpio3 RK_PC4 GPIO_ACTIVE_HIGH>;
58*724ba675SRob Herring		pinctrl-names = "default";
59*724ba675SRob Herring		pinctrl-0 = <&host_vbus_drv>;
60*724ba675SRob Herring		regulator-name = "vcc_host";
61*724ba675SRob Herring		regulator-always-on;
62*724ba675SRob Herring		regulator-boot-on;
63*724ba675SRob Herring		vin-supply = <&vcc_sys>;
64*724ba675SRob Herring	};
65*724ba675SRob Herring
66*724ba675SRob Herring	vcc_phy: vcc-phy-regulator {
67*724ba675SRob Herring		compatible = "regulator-fixed";
68*724ba675SRob Herring		enable-active-high;
69*724ba675SRob Herring		regulator-name = "vcc_phy";
70*724ba675SRob Herring		regulator-min-microvolt = <1800000>;
71*724ba675SRob Herring		regulator-max-microvolt = <1800000>;
72*724ba675SRob Herring		regulator-always-on;
73*724ba675SRob Herring		regulator-boot-on;
74*724ba675SRob Herring		vin-supply = <&vccio_1v8>;
75*724ba675SRob Herring	};
76*724ba675SRob Herring
77*724ba675SRob Herring	vcc_sys: vcc-sys-regulator {
78*724ba675SRob Herring		compatible = "regulator-fixed";
79*724ba675SRob Herring		regulator-name = "vcc_sys";
80*724ba675SRob Herring		regulator-always-on;
81*724ba675SRob Herring		regulator-boot-on;
82*724ba675SRob Herring		regulator-min-microvolt = <5000000>;
83*724ba675SRob Herring		regulator-max-microvolt = <5000000>;
84*724ba675SRob Herring		vin-supply = <&dc_12v>;
85*724ba675SRob Herring	};
86*724ba675SRob Herring
87*724ba675SRob Herring	vccio_1v8: vccio-1v8-regulator {
88*724ba675SRob Herring		compatible = "regulator-fixed";
89*724ba675SRob Herring		regulator-name = "vccio_1v8";
90*724ba675SRob Herring		regulator-min-microvolt = <1800000>;
91*724ba675SRob Herring		regulator-max-microvolt = <1800000>;
92*724ba675SRob Herring		regulator-always-on;
93*724ba675SRob Herring		vin-supply = <&vcc_sys>;
94*724ba675SRob Herring	};
95*724ba675SRob Herring
96*724ba675SRob Herring	vccio_3v3: vccio-3v3-regulator {
97*724ba675SRob Herring		compatible = "regulator-fixed";
98*724ba675SRob Herring		regulator-name = "vccio_3v3";
99*724ba675SRob Herring		regulator-min-microvolt = <3300000>;
100*724ba675SRob Herring		regulator-max-microvolt = <3300000>;
101*724ba675SRob Herring		regulator-always-on;
102*724ba675SRob Herring		vin-supply = <&vcc_sys>;
103*724ba675SRob Herring	};
104*724ba675SRob Herring
105*724ba675SRob Herring	vdd_arm: vdd-arm-regulator {
106*724ba675SRob Herring		compatible = "pwm-regulator";
107*724ba675SRob Herring		pwms = <&pwm1 0 25000 1>;
108*724ba675SRob Herring		pwm-supply = <&vcc_sys>;
109*724ba675SRob Herring		regulator-name = "vdd_arm";
110*724ba675SRob Herring		regulator-min-microvolt = <950000>;
111*724ba675SRob Herring		regulator-max-microvolt = <1400000>;
112*724ba675SRob Herring		regulator-always-on;
113*724ba675SRob Herring		regulator-boot-on;
114*724ba675SRob Herring	};
115*724ba675SRob Herring
116*724ba675SRob Herring	vdd_log: vdd-log-regulator {
117*724ba675SRob Herring		compatible = "pwm-regulator";
118*724ba675SRob Herring		pwms = <&pwm2 0 25000 1>;
119*724ba675SRob Herring		pwm-supply = <&vcc_sys>;
120*724ba675SRob Herring		regulator-name = "vdd_log";
121*724ba675SRob Herring		regulator-min-microvolt = <1000000>;
122*724ba675SRob Herring		regulator-max-microvolt = <1300000>;
123*724ba675SRob Herring		regulator-always-on;
124*724ba675SRob Herring		regulator-boot-on;
125*724ba675SRob Herring	};
126*724ba675SRob Herring};
127*724ba675SRob Herring
128*724ba675SRob Herring&cpu0 {
129*724ba675SRob Herring	cpu-supply = <&vdd_arm>;
130*724ba675SRob Herring};
131*724ba675SRob Herring
132*724ba675SRob Herring&cpu1 {
133*724ba675SRob Herring	cpu-supply = <&vdd_arm>;
134*724ba675SRob Herring};
135*724ba675SRob Herring
136*724ba675SRob Herring&cpu2 {
137*724ba675SRob Herring	cpu-supply = <&vdd_arm>;
138*724ba675SRob Herring};
139*724ba675SRob Herring
140*724ba675SRob Herring&cpu3 {
141*724ba675SRob Herring	cpu-supply = <&vdd_arm>;
142*724ba675SRob Herring};
143*724ba675SRob Herring
144*724ba675SRob Herring&emmc {
145*724ba675SRob Herring	cap-mmc-highspeed;
146*724ba675SRob Herring	non-removable;
147*724ba675SRob Herring	status = "okay";
148*724ba675SRob Herring};
149*724ba675SRob Herring
150*724ba675SRob Herring&gmac {
151*724ba675SRob Herring	assigned-clocks = <&cru SCLK_MAC_SRC>;
152*724ba675SRob Herring	assigned-clock-rates = <50000000>;
153*724ba675SRob Herring	clock_in_out = "output";
154*724ba675SRob Herring	phy-handle = <&phy>;
155*724ba675SRob Herring	phy-mode = "rmii";
156*724ba675SRob Herring	phy-supply = <&vcc_phy>;
157*724ba675SRob Herring	status = "okay";
158*724ba675SRob Herring
159*724ba675SRob Herring	mdio {
160*724ba675SRob Herring		compatible = "snps,dwmac-mdio";
161*724ba675SRob Herring		#address-cells = <1>;
162*724ba675SRob Herring		#size-cells = <0>;
163*724ba675SRob Herring
164*724ba675SRob Herring		phy: ethernet-phy@0 {
165*724ba675SRob Herring			compatible = "ethernet-phy-id1234.d400",
166*724ba675SRob Herring			             "ethernet-phy-ieee802.3-c22";
167*724ba675SRob Herring			reg = <0>;
168*724ba675SRob Herring			clocks = <&cru SCLK_MAC_PHY>;
169*724ba675SRob Herring			phy-is-integrated;
170*724ba675SRob Herring			resets = <&cru SRST_MACPHY>;
171*724ba675SRob Herring		};
172*724ba675SRob Herring	};
173*724ba675SRob Herring};
174*724ba675SRob Herring
175*724ba675SRob Herring&gpu {
176*724ba675SRob Herring	mali-supply = <&vdd_log>;
177*724ba675SRob Herring	status = "okay";
178*724ba675SRob Herring};
179*724ba675SRob Herring
180*724ba675SRob Herring&hdmi {
181*724ba675SRob Herring	status = "okay";
182*724ba675SRob Herring};
183*724ba675SRob Herring
184*724ba675SRob Herring&hdmi_phy {
185*724ba675SRob Herring	status = "okay";
186*724ba675SRob Herring};
187*724ba675SRob Herring
188*724ba675SRob Herring&iep_mmu {
189*724ba675SRob Herring	status = "okay";
190*724ba675SRob Herring};
191*724ba675SRob Herring
192*724ba675SRob Herring&io_domains {
193*724ba675SRob Herring	status = "okay";
194*724ba675SRob Herring
195*724ba675SRob Herring	vccio1-supply = <&vccio_3v3>;
196*724ba675SRob Herring	vccio2-supply = <&vccio_1v8>;
197*724ba675SRob Herring	vccio4-supply = <&vccio_3v3>;
198*724ba675SRob Herring};
199*724ba675SRob Herring
200*724ba675SRob Herring&pinctrl {
201*724ba675SRob Herring	usb {
202*724ba675SRob Herring		host_vbus_drv: host-vbus-drv {
203*724ba675SRob Herring			rockchip,pins = <3 RK_PC4 RK_FUNC_GPIO &pcfg_pull_none>;
204*724ba675SRob Herring		};
205*724ba675SRob Herring	};
206*724ba675SRob Herring};
207*724ba675SRob Herring
208*724ba675SRob Herring&pwm1 {
209*724ba675SRob Herring	status = "okay";
210*724ba675SRob Herring};
211*724ba675SRob Herring
212*724ba675SRob Herring&pwm2 {
213*724ba675SRob Herring	status = "okay";
214*724ba675SRob Herring};
215*724ba675SRob Herring
216*724ba675SRob Herring&sdio {
217*724ba675SRob Herring	bus-width = <4>;
218*724ba675SRob Herring	cap-sd-highspeed;
219*724ba675SRob Herring	cap-sdio-irq;
220*724ba675SRob Herring	mmc-pwrseq = <&sdio_pwrseq>;
221*724ba675SRob Herring	non-removable;
222*724ba675SRob Herring	vqmmc-supply = <&vccio_1v8>;
223*724ba675SRob Herring	status = "okay";
224*724ba675SRob Herring};
225*724ba675SRob Herring
226*724ba675SRob Herring&sdmmc {
227*724ba675SRob Herring	cap-mmc-highspeed;
228*724ba675SRob Herring	disable-wp;
229*724ba675SRob Herring	status = "okay";
230*724ba675SRob Herring};
231*724ba675SRob Herring
232*724ba675SRob Herring&tsadc {
233*724ba675SRob Herring	rockchip,hw-tshut-mode = <0>;
234*724ba675SRob Herring	status = "okay";
235*724ba675SRob Herring};
236*724ba675SRob Herring
237*724ba675SRob Herring&u2phy0 {
238*724ba675SRob Herring	status = "okay";
239*724ba675SRob Herring
240*724ba675SRob Herring	u2phy0_host: host-port {
241*724ba675SRob Herring		phy-supply = <&vcc_host>;
242*724ba675SRob Herring		status = "okay";
243*724ba675SRob Herring	};
244*724ba675SRob Herring
245*724ba675SRob Herring	u2phy0_otg: otg-port {
246*724ba675SRob Herring		phy-supply = <&vcc_host>;
247*724ba675SRob Herring		status = "okay";
248*724ba675SRob Herring	};
249*724ba675SRob Herring};
250*724ba675SRob Herring
251*724ba675SRob Herring&u2phy1 {
252*724ba675SRob Herring	status = "okay";
253*724ba675SRob Herring
254*724ba675SRob Herring	u2phy1_host: host-port {
255*724ba675SRob Herring		phy-supply = <&vcc_host>;
256*724ba675SRob Herring		status = "okay";
257*724ba675SRob Herring	};
258*724ba675SRob Herring
259*724ba675SRob Herring	u2phy1_otg: otg-port {
260*724ba675SRob Herring		phy-supply = <&vcc_host>;
261*724ba675SRob Herring		status = "okay";
262*724ba675SRob Herring	};
263*724ba675SRob Herring};
264*724ba675SRob Herring
265*724ba675SRob Herring&uart2 {
266*724ba675SRob Herring	pinctrl-0 = <&uart21_xfer>;
267*724ba675SRob Herring	status = "okay";
268*724ba675SRob Herring};
269*724ba675SRob Herring
270*724ba675SRob Herring&usb_host0_ehci {
271*724ba675SRob Herring	status = "okay";
272*724ba675SRob Herring};
273*724ba675SRob Herring
274*724ba675SRob Herring&usb_host0_ohci {
275*724ba675SRob Herring	status = "okay";
276*724ba675SRob Herring};
277*724ba675SRob Herring
278*724ba675SRob Herring&usb_host1_ehci {
279*724ba675SRob Herring	status = "okay";
280*724ba675SRob Herring};
281*724ba675SRob Herring
282*724ba675SRob Herring&usb_host1_ohci {
283*724ba675SRob Herring	status = "okay";
284*724ba675SRob Herring};
285*724ba675SRob Herring
286*724ba675SRob Herring&usb_host2_ehci {
287*724ba675SRob Herring	status = "okay";
288*724ba675SRob Herring};
289*724ba675SRob Herring
290*724ba675SRob Herring&usb_host2_ohci {
291*724ba675SRob Herring	status = "okay";
292*724ba675SRob Herring};
293*724ba675SRob Herring
294*724ba675SRob Herring&usb_otg {
295*724ba675SRob Herring	status = "okay";
296*724ba675SRob Herring};
297*724ba675SRob Herring
298*724ba675SRob Herring&vop {
299*724ba675SRob Herring	status = "okay";
300*724ba675SRob Herring};
301*724ba675SRob Herring
302*724ba675SRob Herring&vop_mmu {
303*724ba675SRob Herring	status = "okay";
304*724ba675SRob Herring};
305