xref: /freebsd/sys/contrib/device-tree/src/arm64/rockchip/rk3588-rock-5b.dtsi (revision 833e5d42ab135b0238e61c5b3c19b8619677cbfa)
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	analog-sound {
9		compatible = "audio-graph-card";
10		label = "rk3588-es8316";
11
12		widgets = "Microphone", "Mic Jack",
13			  "Headphone", "Headphones";
14
15		routing = "MIC2", "Mic Jack",
16			  "Headphones", "HPOL",
17			  "Headphones", "HPOR";
18
19		dais = <&i2s0_8ch_p0>;
20		hp-det-gpios = <&gpio1 RK_PD5 GPIO_ACTIVE_HIGH>;
21		pinctrl-names = "default";
22		pinctrl-0 = <&hp_detect>;
23	};
24
25	leds {
26		compatible = "gpio-leds";
27		pinctrl-names = "default";
28		pinctrl-0 = <&led_rgb_b>;
29
30		led_rgb_b {
31			function = LED_FUNCTION_STATUS;
32			color = <LED_COLOR_ID_BLUE>;
33			gpios = <&gpio0 RK_PB7 GPIO_ACTIVE_HIGH>;
34			linux,default-trigger = "heartbeat";
35		};
36	};
37
38	rfkill {
39		compatible = "rfkill-gpio";
40		label = "rfkill-m2-wlan";
41		radio-type = "wlan";
42		shutdown-gpios = <&gpio4 RK_PA2 GPIO_ACTIVE_HIGH>;
43	};
44};
45
46&hdmi_receiver {
47	hpd-gpios = <&gpio1 RK_PC6 GPIO_ACTIVE_LOW>;
48	status = "okay";
49};
50
51&pinctrl {
52	hdmirx {
53		hdmirx_hpd: hdmirx-5v-detection {
54			rockchip,pins = <1 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;
55		};
56	};
57
58	leds {
59		led_rgb_b: led-rgb-b {
60			rockchip,pins = <0 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>;
61		};
62	};
63
64	pcie2 {
65		pcie2_0_vcc3v3_en: pcie2-0-vcc-en {
66			rockchip,pins = <1 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>;
67		};
68	};
69
70	sound {
71		hp_detect: hp-detect {
72			rockchip,pins = <1 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>;
73		};
74	};
75};
76
77&usb_host2_xhci {
78	status = "okay";
79};
80
81&vcc3v3_pcie2x1l0 {
82	gpios = <&gpio1 RK_PD2 GPIO_ACTIVE_HIGH>;
83	pinctrl-names = "default";
84	pinctrl-0 = <&pcie2_0_vcc3v3_en>;
85	status = "okay";
86};
87