xref: /linux/scripts/dtc/include-prefixes/arm64/rockchip/rk3588-rock-5t.dts (revision b9a10f876409bf3768178f4aded199e193ddbe33)
1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2
3/dts-v1/;
4
5#include "rk3588-rock-5b-5bp-5t.dtsi"
6
7/ {
8	model = "Radxa ROCK 5T";
9	compatible = "radxa,rock-5t", "rockchip,rk3588";
10
11	analog-sound {
12		compatible = "audio-graph-card";
13		label = "rk3588-es8316";
14
15		widgets = "Microphone", "Mic Jack",
16		"Headphone", "Headphones";
17
18		routing = "MIC2", "Mic Jack",
19		"Headphones", "HPOL",
20		"Headphones", "HPOR";
21
22		dais = <&i2s0_8ch_p0>;
23		hp-det-gpios = <&gpio4 RK_PC3 GPIO_ACTIVE_HIGH>;
24		pinctrl-names = "default";
25		pinctrl-0 = <&hp_detect>;
26	};
27
28	leds {
29		compatible = "gpio-leds";
30		pinctrl-names = "default";
31		pinctrl-0 = <&led_rgb_b>;
32
33		led_rgb_b {
34			function = LED_FUNCTION_STATUS;
35			color = <LED_COLOR_ID_BLUE>;
36			gpios = <&gpio0 RK_PA0 GPIO_ACTIVE_HIGH>;
37			linux,default-trigger = "heartbeat";
38		};
39	};
40
41	rfkill {
42		compatible = "rfkill-gpio";
43		label = "rfkill-m2-wlan";
44		radio-type = "wlan";
45		shutdown-gpios = <&gpio1 RK_PB0 GPIO_ACTIVE_HIGH>;
46	};
47
48	vcc3v3_pcie2x1l1: regulator-vcc3v3-pcie2x1l2 {
49		compatible = "regulator-fixed";
50		regulator-name = "vcc3v3_pcie2x1l1";
51		regulator-min-microvolt = <3300000>;
52		regulator-max-microvolt = <3300000>;
53		startup-delay-us = <5000>;
54		vin-supply = <&vcc_3v3_s3>;
55	};
56};
57
58&hdmi_receiver {
59	hpd-gpios = <&gpio2 RK_PB7 GPIO_ACTIVE_LOW>;
60	status = "okay";
61};
62
63&pcie2x1l1 {
64	pinctrl-names = "default";
65	pinctrl-0 = <&pcie2_1_rst>;
66	reset-gpios = <&gpio4 RK_PA2 GPIO_ACTIVE_HIGH>;
67	vpcie3v3-supply = <&vcc3v3_pcie2x1l1>;
68	status = "okay";
69};
70
71&pcie30phy {
72	data-lanes = <1 1 2 2>;
73};
74
75&pcie3x2 {
76	pinctrl-names = "default";
77	pinctrl-0 = <&pcie3x2_rst>;
78	reset-gpios = <&gpio4 RK_PB0 GPIO_ACTIVE_HIGH>;
79	vpcie3v3-supply = <&vcc3v3_pcie30>;
80	status = "okay";
81};
82
83&pcie3x4 {
84	num-lanes = <2>;
85};
86
87&pinctrl {
88	hdmirx {
89		hdmirx_hpd: hdmirx-5v-detection {
90			rockchip,pins = <2 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>;
91		};
92	};
93
94	leds {
95		led_rgb_b: led-rgb-b {
96			rockchip,pins = <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>;
97		};
98	};
99
100	pcie2 {
101		pcie2_1_rst: pcie2-1-rst {
102			rockchip,pins = <4 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
103		};
104		pcie2_0_vcc3v3_en: pcie2-0-vcc-en {
105			rockchip,pins = <2 RK_PC0 RK_FUNC_GPIO &pcfg_pull_none>;
106		};
107	};
108
109	pcie3 {
110		pcie3x2_rst: pcie3x2-rst {
111			rockchip,pins = <4 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>;
112		};
113	};
114
115	sound {
116		hp_detect: hp-detect {
117			rockchip,pins = <4 RK_PC3 RK_FUNC_GPIO &pcfg_pull_none>;
118		};
119	};
120
121	usb {
122		vcc5v0_host_en: vcc5v0-host-en {
123			rockchip,pins = <1 RK_PA1 RK_FUNC_GPIO &pcfg_pull_none>;
124		};
125	};
126};
127
128&vcc3v3_pcie2x1l0 {
129	gpios = <&gpio2 RK_PC0 GPIO_ACTIVE_HIGH>;
130	pinctrl-names = "default";
131	pinctrl-0 = <&pcie2_0_vcc3v3_en>;
132	status = "okay";
133};
134
135&vcc5v0_host {
136	enable-active-high;
137	gpio = <&gpio1 RK_PA1 GPIO_ACTIVE_HIGH>;
138	pinctrl-names = "default";
139	pinctrl-0 = <&vcc5v0_host_en>;
140};
141