xref: /freebsd/sys/contrib/device-tree/src/arm64/rockchip/rk3588-ok3588-c.dts (revision 7d0873ebb83b19ba1e8a89e679470d885efe12e3)
1*7d0873ebSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2*7d0873ebSEmmanuel Vadot
3*7d0873ebSEmmanuel Vadot/dts-v1/;
4*7d0873ebSEmmanuel Vadot#include "rk3588-fet3588-c.dtsi"
5*7d0873ebSEmmanuel Vadot
6*7d0873ebSEmmanuel Vadot/ {
7*7d0873ebSEmmanuel Vadot	model = "Forlinx OK3588-C Board";
8*7d0873ebSEmmanuel Vadot	compatible = "forlinx,ok3588-c", "forlinx,fet3588-c", "rockchip,rk3588";
9*7d0873ebSEmmanuel Vadot
10*7d0873ebSEmmanuel Vadot	aliases {
11*7d0873ebSEmmanuel Vadot		ethernet0 = &gmac0;
12*7d0873ebSEmmanuel Vadot		ethernet1 = &gmac1;
13*7d0873ebSEmmanuel Vadot		mmc1 = &sdmmc;
14*7d0873ebSEmmanuel Vadot	};
15*7d0873ebSEmmanuel Vadot
16*7d0873ebSEmmanuel Vadot	adc-keys-0 {
17*7d0873ebSEmmanuel Vadot		compatible = "adc-keys";
18*7d0873ebSEmmanuel Vadot		io-channels = <&saradc 0>;
19*7d0873ebSEmmanuel Vadot		io-channel-names = "buttons";
20*7d0873ebSEmmanuel Vadot		keyup-threshold-microvolt = <1800000>;
21*7d0873ebSEmmanuel Vadot		poll-interval = <100>;
22*7d0873ebSEmmanuel Vadot
23*7d0873ebSEmmanuel Vadot		button-maskrom {
24*7d0873ebSEmmanuel Vadot			label = "Maskrom";
25*7d0873ebSEmmanuel Vadot			linux,code = <KEY_SETUP>;
26*7d0873ebSEmmanuel Vadot			press-threshold-microvolt = <400>;
27*7d0873ebSEmmanuel Vadot		};
28*7d0873ebSEmmanuel Vadot	};
29*7d0873ebSEmmanuel Vadot
30*7d0873ebSEmmanuel Vadot	adc-keys-1 {
31*7d0873ebSEmmanuel Vadot		compatible = "adc-keys";
32*7d0873ebSEmmanuel Vadot		io-channels = <&saradc 1>;
33*7d0873ebSEmmanuel Vadot		io-channel-names = "buttons";
34*7d0873ebSEmmanuel Vadot		keyup-threshold-microvolt = <1800000>;
35*7d0873ebSEmmanuel Vadot		poll-interval = <100>;
36*7d0873ebSEmmanuel Vadot
37*7d0873ebSEmmanuel Vadot		button-volume-up {
38*7d0873ebSEmmanuel Vadot			label = "V+/Recovery";
39*7d0873ebSEmmanuel Vadot			linux,code = <KEY_VOLUMEUP>;
40*7d0873ebSEmmanuel Vadot			press-threshold-microvolt = <17000>;
41*7d0873ebSEmmanuel Vadot		};
42*7d0873ebSEmmanuel Vadot
43*7d0873ebSEmmanuel Vadot		button-volume-down {
44*7d0873ebSEmmanuel Vadot			label = "V-";
45*7d0873ebSEmmanuel Vadot			linux,code = <KEY_VOLUMEDOWN>;
46*7d0873ebSEmmanuel Vadot			press-threshold-microvolt = <417000>;
47*7d0873ebSEmmanuel Vadot		};
48*7d0873ebSEmmanuel Vadot
49*7d0873ebSEmmanuel Vadot		button-menu {
50*7d0873ebSEmmanuel Vadot			label = "Menu";
51*7d0873ebSEmmanuel Vadot			linux,code = <KEY_MENU>;
52*7d0873ebSEmmanuel Vadot			press-threshold-microvolt = <890000>;
53*7d0873ebSEmmanuel Vadot		};
54*7d0873ebSEmmanuel Vadot
55*7d0873ebSEmmanuel Vadot		button-escape {
56*7d0873ebSEmmanuel Vadot			label = "ESC";
57*7d0873ebSEmmanuel Vadot			linux,code = <KEY_ESC>;
58*7d0873ebSEmmanuel Vadot			press-threshold-microvolt = <1235000>;
59*7d0873ebSEmmanuel Vadot		};
60*7d0873ebSEmmanuel Vadot	};
61*7d0873ebSEmmanuel Vadot
62*7d0873ebSEmmanuel Vadot	fan: pwm-fan {
63*7d0873ebSEmmanuel Vadot		compatible = "pwm-fan";
64*7d0873ebSEmmanuel Vadot		cooling-levels = <0 95 145 195 255>;
65*7d0873ebSEmmanuel Vadot		fan-supply = <&vcc12v_dcin>;
66*7d0873ebSEmmanuel Vadot		pwms = <&pwm2 0 50000 0>;
67*7d0873ebSEmmanuel Vadot		#cooling-cells = <2>;
68*7d0873ebSEmmanuel Vadot	};
69*7d0873ebSEmmanuel Vadot
70*7d0873ebSEmmanuel Vadot	sound {
71*7d0873ebSEmmanuel Vadot		compatible = "simple-audio-card";
72*7d0873ebSEmmanuel Vadot		pinctrl-names = "default";
73*7d0873ebSEmmanuel Vadot		pinctrl-0 = <&hp_detect>;
74*7d0873ebSEmmanuel Vadot		simple-audio-card,name = "RK3588 OK3588-C Audio";
75*7d0873ebSEmmanuel Vadot		simple-audio-card,bitclock-master = <&masterdai>;
76*7d0873ebSEmmanuel Vadot		simple-audio-card,format = "i2s";
77*7d0873ebSEmmanuel Vadot		simple-audio-card,frame-master = <&masterdai>;
78*7d0873ebSEmmanuel Vadot		simple-audio-card,hp-det-gpio = <&gpio1 RK_PB2 GPIO_ACTIVE_HIGH>;
79*7d0873ebSEmmanuel Vadot		simple-audio-card,mclk-fs = <256>;
80*7d0873ebSEmmanuel Vadot		simple-audio-card,pin-switches = "Headphones", "Speaker";
81*7d0873ebSEmmanuel Vadot		simple-audio-card,widgets =
82*7d0873ebSEmmanuel Vadot			"Headphones", "Headphones",
83*7d0873ebSEmmanuel Vadot			"Speaker", "Speaker",
84*7d0873ebSEmmanuel Vadot			"Microphone", "Internal Microphone",
85*7d0873ebSEmmanuel Vadot			"Microphone", "Headset Microphone";
86*7d0873ebSEmmanuel Vadot		simple-audio-card,routing =
87*7d0873ebSEmmanuel Vadot			"Headphones", "LHP",
88*7d0873ebSEmmanuel Vadot			"Headphones", "RHP",
89*7d0873ebSEmmanuel Vadot			"Speaker", "LSPK",
90*7d0873ebSEmmanuel Vadot			"Speaker", "RSPK",
91*7d0873ebSEmmanuel Vadot			"LMICP", "Headset Microphone",
92*7d0873ebSEmmanuel Vadot			"RMICP", "Internal Microphone";
93*7d0873ebSEmmanuel Vadot
94*7d0873ebSEmmanuel Vadot		simple-audio-card,cpu {
95*7d0873ebSEmmanuel Vadot			sound-dai = <&i2s0_8ch>;
96*7d0873ebSEmmanuel Vadot		};
97*7d0873ebSEmmanuel Vadot
98*7d0873ebSEmmanuel Vadot		masterdai: simple-audio-card,codec {
99*7d0873ebSEmmanuel Vadot			sound-dai = <&nau8822>;
100*7d0873ebSEmmanuel Vadot		};
101*7d0873ebSEmmanuel Vadot	};
102*7d0873ebSEmmanuel Vadot
103*7d0873ebSEmmanuel Vadot	vcc12v_dcin: vcc12v-dcin-regulator {
104*7d0873ebSEmmanuel Vadot		compatible = "regulator-fixed";
105*7d0873ebSEmmanuel Vadot		regulator-name = "vcc12v_dcin";
106*7d0873ebSEmmanuel Vadot		regulator-always-on;
107*7d0873ebSEmmanuel Vadot		regulator-boot-on;
108*7d0873ebSEmmanuel Vadot		regulator-min-microvolt = <12000000>;
109*7d0873ebSEmmanuel Vadot		regulator-max-microvolt = <12000000>;
110*7d0873ebSEmmanuel Vadot	};
111*7d0873ebSEmmanuel Vadot
112*7d0873ebSEmmanuel Vadot	vcc1v8_sys: vcc1v8-sys-regulator {
113*7d0873ebSEmmanuel Vadot		compatible = "regulator-fixed";
114*7d0873ebSEmmanuel Vadot		regulator-name = "vcc1v8_sys";
115*7d0873ebSEmmanuel Vadot		regulator-always-on;
116*7d0873ebSEmmanuel Vadot		regulator-boot-on;
117*7d0873ebSEmmanuel Vadot		regulator-min-microvolt = <1800000>;
118*7d0873ebSEmmanuel Vadot		regulator-max-microvolt = <1800000>;
119*7d0873ebSEmmanuel Vadot		vin-supply = <&vcc3v3_sys>;
120*7d0873ebSEmmanuel Vadot	};
121*7d0873ebSEmmanuel Vadot
122*7d0873ebSEmmanuel Vadot	vcc3v3_pcie2x1l0: vcc3v3-pcie2x1l0-regulator {
123*7d0873ebSEmmanuel Vadot		compatible = "regulator-fixed";
124*7d0873ebSEmmanuel Vadot		regulator-name = "vcc3v3_pcie2x1l0";
125*7d0873ebSEmmanuel Vadot		regulator-min-microvolt = <3300000>;
126*7d0873ebSEmmanuel Vadot		regulator-max-microvolt = <3300000>;
127*7d0873ebSEmmanuel Vadot		startup-delay-us = <50000>;
128*7d0873ebSEmmanuel Vadot		vin-supply = <&vcc5v0_sys>;
129*7d0873ebSEmmanuel Vadot	};
130*7d0873ebSEmmanuel Vadot
131*7d0873ebSEmmanuel Vadot	vcc3v3_pcie2x1l2: vcc3v3-pcie2x1l2-regulator {
132*7d0873ebSEmmanuel Vadot		compatible = "regulator-fixed";
133*7d0873ebSEmmanuel Vadot		regulator-name = "vcc3v3_pcie2x1l2";
134*7d0873ebSEmmanuel Vadot		regulator-min-microvolt = <3300000>;
135*7d0873ebSEmmanuel Vadot		regulator-max-microvolt = <3300000>;
136*7d0873ebSEmmanuel Vadot		startup-delay-us = <5000>;
137*7d0873ebSEmmanuel Vadot		vin-supply = <&vcc5v0_sys>;
138*7d0873ebSEmmanuel Vadot	};
139*7d0873ebSEmmanuel Vadot
140*7d0873ebSEmmanuel Vadot	vcc3v3_pcie30: vcc3v3_pcie30-regulator {
141*7d0873ebSEmmanuel Vadot		compatible = "regulator-fixed";
142*7d0873ebSEmmanuel Vadot		regulator-name = "vcc3v3_pcie30";
143*7d0873ebSEmmanuel Vadot		regulator-always-on;
144*7d0873ebSEmmanuel Vadot		regulator-boot-on;
145*7d0873ebSEmmanuel Vadot		regulator-min-microvolt = <3300000>;
146*7d0873ebSEmmanuel Vadot		regulator-max-microvolt = <3300000>;
147*7d0873ebSEmmanuel Vadot		vin-supply = <&vcc5v0_sys>;
148*7d0873ebSEmmanuel Vadot	};
149*7d0873ebSEmmanuel Vadot
150*7d0873ebSEmmanuel Vadot	vcc3v3_sys: vcc3v3-sys-regulator {
151*7d0873ebSEmmanuel Vadot		compatible = "regulator-fixed";
152*7d0873ebSEmmanuel Vadot		regulator-name = "vcc3v3_sys";
153*7d0873ebSEmmanuel Vadot		regulator-always-on;
154*7d0873ebSEmmanuel Vadot		regulator-boot-on;
155*7d0873ebSEmmanuel Vadot		regulator-min-microvolt = <3300000>;
156*7d0873ebSEmmanuel Vadot		regulator-max-microvolt = <3300000>;
157*7d0873ebSEmmanuel Vadot		vin-supply = <&vcc5v0_sys>;
158*7d0873ebSEmmanuel Vadot	};
159*7d0873ebSEmmanuel Vadot
160*7d0873ebSEmmanuel Vadot	vcc5v0_sys: vcc5v0-sys-regulator {
161*7d0873ebSEmmanuel Vadot		compatible = "regulator-fixed";
162*7d0873ebSEmmanuel Vadot		regulator-name = "vcc5v0_sys";
163*7d0873ebSEmmanuel Vadot		regulator-always-on;
164*7d0873ebSEmmanuel Vadot		regulator-boot-on;
165*7d0873ebSEmmanuel Vadot		regulator-min-microvolt = <5000000>;
166*7d0873ebSEmmanuel Vadot		regulator-max-microvolt = <5000000>;
167*7d0873ebSEmmanuel Vadot		vin-supply = <&vcc12v_dcin>;
168*7d0873ebSEmmanuel Vadot	};
169*7d0873ebSEmmanuel Vadot};
170*7d0873ebSEmmanuel Vadot
171*7d0873ebSEmmanuel Vadot&gmac0 {
172*7d0873ebSEmmanuel Vadot	clock_in_out = "output";
173*7d0873ebSEmmanuel Vadot	phy-handle = <&rgmii_phy0>;
174*7d0873ebSEmmanuel Vadot	phy-mode = "rgmii-rxid";
175*7d0873ebSEmmanuel Vadot	pinctrl-names = "default";
176*7d0873ebSEmmanuel Vadot	pinctrl-0 = <&gmac0_miim
177*7d0873ebSEmmanuel Vadot		     &gmac0_tx_bus2
178*7d0873ebSEmmanuel Vadot		     &gmac0_rx_bus2
179*7d0873ebSEmmanuel Vadot		     &gmac0_rgmii_clk
180*7d0873ebSEmmanuel Vadot		     &gmac0_rgmii_bus>;
181*7d0873ebSEmmanuel Vadot	tx_delay = <0x44>;
182*7d0873ebSEmmanuel Vadot	rx_delay = <0x00>;
183*7d0873ebSEmmanuel Vadot	status = "okay";
184*7d0873ebSEmmanuel Vadot};
185*7d0873ebSEmmanuel Vadot
186*7d0873ebSEmmanuel Vadot&gmac1 {
187*7d0873ebSEmmanuel Vadot	clock_in_out = "output";
188*7d0873ebSEmmanuel Vadot	phy-handle = <&rgmii_phy1>;
189*7d0873ebSEmmanuel Vadot	phy-mode = "rgmii-rxid";
190*7d0873ebSEmmanuel Vadot	pinctrl-names = "default";
191*7d0873ebSEmmanuel Vadot	pinctrl-0 = <&gmac1_miim
192*7d0873ebSEmmanuel Vadot		     &gmac1_tx_bus2
193*7d0873ebSEmmanuel Vadot		     &gmac1_rx_bus2
194*7d0873ebSEmmanuel Vadot		     &gmac1_rgmii_clk
195*7d0873ebSEmmanuel Vadot		     &gmac1_rgmii_bus>;
196*7d0873ebSEmmanuel Vadot	tx_delay = <0x44>;
197*7d0873ebSEmmanuel Vadot	rx_delay = <0x00>;
198*7d0873ebSEmmanuel Vadot	status = "okay";
199*7d0873ebSEmmanuel Vadot};
200*7d0873ebSEmmanuel Vadot
201*7d0873ebSEmmanuel Vadot&gpu {
202*7d0873ebSEmmanuel Vadot	mali-supply = <&vdd_gpu_s0>;
203*7d0873ebSEmmanuel Vadot	status = "okay";
204*7d0873ebSEmmanuel Vadot};
205*7d0873ebSEmmanuel Vadot
206*7d0873ebSEmmanuel Vadot&i2c2 {
207*7d0873ebSEmmanuel Vadot	status = "okay";
208*7d0873ebSEmmanuel Vadot
209*7d0873ebSEmmanuel Vadot	tca6424a: gpio@23 {
210*7d0873ebSEmmanuel Vadot		compatible = "ti,tca6424";
211*7d0873ebSEmmanuel Vadot		reg = <0x23>;
212*7d0873ebSEmmanuel Vadot		gpio-controller;
213*7d0873ebSEmmanuel Vadot		#gpio-cells = <2>;
214*7d0873ebSEmmanuel Vadot
215*7d0873ebSEmmanuel Vadot		interrupt-parent = <&gpio1>;
216*7d0873ebSEmmanuel Vadot		interrupts = <RK_PA4 IRQ_TYPE_EDGE_FALLING>;
217*7d0873ebSEmmanuel Vadot		interrupt-controller;
218*7d0873ebSEmmanuel Vadot		#interrupt-cells = <2>;
219*7d0873ebSEmmanuel Vadot
220*7d0873ebSEmmanuel Vadot		pinctrl-names = "default";
221*7d0873ebSEmmanuel Vadot		pinctrl-0 = <&tca6424a_int>;
222*7d0873ebSEmmanuel Vadot		vcc-supply = <&vcc3v3_sys>;
223*7d0873ebSEmmanuel Vadot	};
224*7d0873ebSEmmanuel Vadot};
225*7d0873ebSEmmanuel Vadot
226*7d0873ebSEmmanuel Vadot&i2c5 {
227*7d0873ebSEmmanuel Vadot	status = "okay";
228*7d0873ebSEmmanuel Vadot	pinctrl-names = "default";
229*7d0873ebSEmmanuel Vadot	pinctrl-0 = <&i2c5m2_xfer>;
230*7d0873ebSEmmanuel Vadot
231*7d0873ebSEmmanuel Vadot	pcf8563: rtc@51 {
232*7d0873ebSEmmanuel Vadot		compatible = "nxp,pcf8563";
233*7d0873ebSEmmanuel Vadot		reg = <0x51>;
234*7d0873ebSEmmanuel Vadot	};
235*7d0873ebSEmmanuel Vadot};
236*7d0873ebSEmmanuel Vadot
237*7d0873ebSEmmanuel Vadot&i2c7 {
238*7d0873ebSEmmanuel Vadot	status = "okay";
239*7d0873ebSEmmanuel Vadot
240*7d0873ebSEmmanuel Vadot	nau8822: audio-codec@1a {
241*7d0873ebSEmmanuel Vadot		compatible = "nuvoton,nau8822";
242*7d0873ebSEmmanuel Vadot		reg = <0x1a>;
243*7d0873ebSEmmanuel Vadot		clocks = <&cru I2S0_8CH_MCLKOUT>;
244*7d0873ebSEmmanuel Vadot		clock-names = "mclk";
245*7d0873ebSEmmanuel Vadot		assigned-clocks = <&cru I2S0_8CH_MCLKOUT>;
246*7d0873ebSEmmanuel Vadot		assigned-clock-rates = <12288000>;
247*7d0873ebSEmmanuel Vadot		#sound-dai-cells = <0>;
248*7d0873ebSEmmanuel Vadot	};
249*7d0873ebSEmmanuel Vadot};
250*7d0873ebSEmmanuel Vadot
251*7d0873ebSEmmanuel Vadot&i2s0_8ch {
252*7d0873ebSEmmanuel Vadot	pinctrl-names = "default";
253*7d0873ebSEmmanuel Vadot	pinctrl-0 = <&i2s0_lrck
254*7d0873ebSEmmanuel Vadot		     &i2s0_mclk
255*7d0873ebSEmmanuel Vadot		     &i2s0_sclk
256*7d0873ebSEmmanuel Vadot		     &i2s0_sdi0
257*7d0873ebSEmmanuel Vadot		     &i2s0_sdo0>;
258*7d0873ebSEmmanuel Vadot	status = "okay";
259*7d0873ebSEmmanuel Vadot};
260*7d0873ebSEmmanuel Vadot
261*7d0873ebSEmmanuel Vadot&mdio0 {
262*7d0873ebSEmmanuel Vadot	rgmii_phy0: ethernet-phy@1 {
263*7d0873ebSEmmanuel Vadot		/* RTL8211F */
264*7d0873ebSEmmanuel Vadot		compatible = "ethernet-phy-id001c.c916",
265*7d0873ebSEmmanuel Vadot			     "ethernet-phy-ieee802.3-c22";
266*7d0873ebSEmmanuel Vadot		reg = <0x1>;
267*7d0873ebSEmmanuel Vadot		pinctrl-names = "default";
268*7d0873ebSEmmanuel Vadot		pinctrl-0 = <&rtl8211f_0_rst>;
269*7d0873ebSEmmanuel Vadot		reset-assert-us = <20000>;
270*7d0873ebSEmmanuel Vadot		reset-deassert-us = <100000>;
271*7d0873ebSEmmanuel Vadot		reset-gpios = <&gpio0 RK_PB0 GPIO_ACTIVE_LOW>;
272*7d0873ebSEmmanuel Vadot	};
273*7d0873ebSEmmanuel Vadot};
274*7d0873ebSEmmanuel Vadot
275*7d0873ebSEmmanuel Vadot&mdio1 {
276*7d0873ebSEmmanuel Vadot	rgmii_phy1: ethernet-phy@2 {
277*7d0873ebSEmmanuel Vadot		/* RTL8211F */
278*7d0873ebSEmmanuel Vadot		compatible = "ethernet-phy-id001c.c916",
279*7d0873ebSEmmanuel Vadot			     "ethernet-phy-ieee802.3-c22";
280*7d0873ebSEmmanuel Vadot		reg = <0x2>;
281*7d0873ebSEmmanuel Vadot		pinctrl-names = "default";
282*7d0873ebSEmmanuel Vadot		pinctrl-0 = <&rtl8211f_1_rst>;
283*7d0873ebSEmmanuel Vadot		reset-assert-us = <20000>;
284*7d0873ebSEmmanuel Vadot		reset-deassert-us = <100000>;
285*7d0873ebSEmmanuel Vadot		reset-gpios = <&gpio1 RK_PB4 GPIO_ACTIVE_LOW>;
286*7d0873ebSEmmanuel Vadot	};
287*7d0873ebSEmmanuel Vadot};
288*7d0873ebSEmmanuel Vadot
289*7d0873ebSEmmanuel Vadot&pcie2x1l0 {
290*7d0873ebSEmmanuel Vadot	pinctrl-names = "default";
291*7d0873ebSEmmanuel Vadot	pinctrl-0 = <&pcie2_0_rst>;
292*7d0873ebSEmmanuel Vadot	reset-gpios = <&gpio4 RK_PA5 GPIO_ACTIVE_HIGH>;
293*7d0873ebSEmmanuel Vadot	vpcie3v3-supply = <&vcc3v3_pcie2x1l0>;
294*7d0873ebSEmmanuel Vadot	status = "okay";
295*7d0873ebSEmmanuel Vadot};
296*7d0873ebSEmmanuel Vadot
297*7d0873ebSEmmanuel Vadot&pcie2x1l2 {
298*7d0873ebSEmmanuel Vadot	pinctrl-names = "default";
299*7d0873ebSEmmanuel Vadot	pinctrl-0 = <&pcie2_2_rst>;
300*7d0873ebSEmmanuel Vadot	reset-gpios = <&gpio3 RK_PD1 GPIO_ACTIVE_HIGH>;
301*7d0873ebSEmmanuel Vadot	vpcie3v3-supply = <&vcc3v3_pcie2x1l2>;
302*7d0873ebSEmmanuel Vadot	status = "okay";
303*7d0873ebSEmmanuel Vadot};
304*7d0873ebSEmmanuel Vadot
305*7d0873ebSEmmanuel Vadot&pcie30phy {
306*7d0873ebSEmmanuel Vadot	status = "okay";
307*7d0873ebSEmmanuel Vadot};
308*7d0873ebSEmmanuel Vadot
309*7d0873ebSEmmanuel Vadot&pcie3x4 {
310*7d0873ebSEmmanuel Vadot	pinctrl-names = "default";
311*7d0873ebSEmmanuel Vadot	pinctrl-0 = <&pcie3_rst>;
312*7d0873ebSEmmanuel Vadot	reset-gpios = <&gpio4 RK_PB6 GPIO_ACTIVE_HIGH>;
313*7d0873ebSEmmanuel Vadot	vpcie3v3-supply = <&vcc3v3_pcie30>;
314*7d0873ebSEmmanuel Vadot	status = "okay";
315*7d0873ebSEmmanuel Vadot};
316*7d0873ebSEmmanuel Vadot
317*7d0873ebSEmmanuel Vadot&pinctrl {
318*7d0873ebSEmmanuel Vadot	pcie2 {
319*7d0873ebSEmmanuel Vadot		pcie2_0_rst: pcie2-0-rst {
320*7d0873ebSEmmanuel Vadot			rockchip,pins = <4 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>;
321*7d0873ebSEmmanuel Vadot		};
322*7d0873ebSEmmanuel Vadot
323*7d0873ebSEmmanuel Vadot		pcie2_2_rst: pcie2-2-rst {
324*7d0873ebSEmmanuel Vadot			rockchip,pins = <3 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>;
325*7d0873ebSEmmanuel Vadot		};
326*7d0873ebSEmmanuel Vadot	};
327*7d0873ebSEmmanuel Vadot
328*7d0873ebSEmmanuel Vadot	pcie3 {
329*7d0873ebSEmmanuel Vadot		pcie3_rst: pcie3-rst {
330*7d0873ebSEmmanuel Vadot			rockchip,pins = <4 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>;
331*7d0873ebSEmmanuel Vadot		};
332*7d0873ebSEmmanuel Vadot	};
333*7d0873ebSEmmanuel Vadot
334*7d0873ebSEmmanuel Vadot	rtl8211f {
335*7d0873ebSEmmanuel Vadot		rtl8211f_0_rst: rtl8211f-0-rst {
336*7d0873ebSEmmanuel Vadot			rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>;
337*7d0873ebSEmmanuel Vadot		};
338*7d0873ebSEmmanuel Vadot		rtl8211f_1_rst: rtl8211f-1-rst {
339*7d0873ebSEmmanuel Vadot			rockchip,pins = <1 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>;
340*7d0873ebSEmmanuel Vadot		};
341*7d0873ebSEmmanuel Vadot	};
342*7d0873ebSEmmanuel Vadot
343*7d0873ebSEmmanuel Vadot	sound {
344*7d0873ebSEmmanuel Vadot		hp_detect: hp-detect {
345*7d0873ebSEmmanuel Vadot			rockchip,pins = <1 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
346*7d0873ebSEmmanuel Vadot		};
347*7d0873ebSEmmanuel Vadot	};
348*7d0873ebSEmmanuel Vadot
349*7d0873ebSEmmanuel Vadot	tca6424a {
350*7d0873ebSEmmanuel Vadot		tca6424a_int: tca6424a-int {
351*7d0873ebSEmmanuel Vadot			rockchip,pins = <1 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up>;
352*7d0873ebSEmmanuel Vadot		};
353*7d0873ebSEmmanuel Vadot	};
354*7d0873ebSEmmanuel Vadot};
355*7d0873ebSEmmanuel Vadot
356*7d0873ebSEmmanuel Vadot&pwm2 {
357*7d0873ebSEmmanuel Vadot	status = "okay";
358*7d0873ebSEmmanuel Vadot};
359*7d0873ebSEmmanuel Vadot
360*7d0873ebSEmmanuel Vadot&saradc {
361*7d0873ebSEmmanuel Vadot	vref-supply = <&avcc_1v8_s0>;
362*7d0873ebSEmmanuel Vadot	status = "okay";
363*7d0873ebSEmmanuel Vadot};
364*7d0873ebSEmmanuel Vadot
365*7d0873ebSEmmanuel Vadot&sdmmc {
366*7d0873ebSEmmanuel Vadot	bus-width = <4>;
367*7d0873ebSEmmanuel Vadot	cap-mmc-highspeed;
368*7d0873ebSEmmanuel Vadot	cap-sd-highspeed;
369*7d0873ebSEmmanuel Vadot	cd-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_LOW>;
370*7d0873ebSEmmanuel Vadot	disable-wp;
371*7d0873ebSEmmanuel Vadot	max-frequency = <150000000>;
372*7d0873ebSEmmanuel Vadot	no-sdio;
373*7d0873ebSEmmanuel Vadot	no-mmc;
374*7d0873ebSEmmanuel Vadot	sd-uhs-sdr104;
375*7d0873ebSEmmanuel Vadot	vqmmc-supply = <&vccio_sd_s0>;
376*7d0873ebSEmmanuel Vadot	status = "okay";
377*7d0873ebSEmmanuel Vadot};
378*7d0873ebSEmmanuel Vadot
379*7d0873ebSEmmanuel Vadot&u2phy2 {
380*7d0873ebSEmmanuel Vadot	status = "okay";
381*7d0873ebSEmmanuel Vadot};
382*7d0873ebSEmmanuel Vadot
383*7d0873ebSEmmanuel Vadot&u2phy2_host {
384*7d0873ebSEmmanuel Vadot	status = "okay";
385*7d0873ebSEmmanuel Vadot};
386*7d0873ebSEmmanuel Vadot
387*7d0873ebSEmmanuel Vadot&u2phy3 {
388*7d0873ebSEmmanuel Vadot	status = "okay";
389*7d0873ebSEmmanuel Vadot};
390*7d0873ebSEmmanuel Vadot
391*7d0873ebSEmmanuel Vadot&u2phy3_host {
392*7d0873ebSEmmanuel Vadot	status = "okay";
393*7d0873ebSEmmanuel Vadot};
394*7d0873ebSEmmanuel Vadot
395*7d0873ebSEmmanuel Vadot&usb_host0_ehci {
396*7d0873ebSEmmanuel Vadot	status = "okay";
397*7d0873ebSEmmanuel Vadot};
398*7d0873ebSEmmanuel Vadot
399*7d0873ebSEmmanuel Vadot&usb_host0_ohci {
400*7d0873ebSEmmanuel Vadot	status = "okay";
401*7d0873ebSEmmanuel Vadot};
402*7d0873ebSEmmanuel Vadot
403*7d0873ebSEmmanuel Vadot&usb_host1_ehci {
404*7d0873ebSEmmanuel Vadot	status = "okay";
405*7d0873ebSEmmanuel Vadot};
406*7d0873ebSEmmanuel Vadot
407*7d0873ebSEmmanuel Vadot&usb_host1_ohci {
408*7d0873ebSEmmanuel Vadot	status = "okay";
409*7d0873ebSEmmanuel Vadot};
410