xref: /linux/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts (revision 2f24482304ebd32c5aa374f31465b9941a860b92)
1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2
3/dts-v1/;
4
5#include <dt-bindings/gpio/gpio.h>
6#include <dt-bindings/pinctrl/rockchip.h>
7#include <dt-bindings/soc/rockchip,vop2.h>
8#include "rk3588-orangepi-5-compact.dtsi"
9
10/ {
11	model = "Xunlong Orange Pi 5 Max";
12	compatible = "xunlong,orangepi-5-max", "rockchip,rk3588";
13
14	hdmi0-con {
15		compatible = "hdmi-connector";
16		type = "a";
17
18		port {
19			hdmi0_con_in: endpoint {
20				remote-endpoint = <&hdmi0_out_con>;
21			};
22		};
23	};
24
25	hdmi1-con {
26		compatible = "hdmi-connector";
27		type = "a";
28
29		port {
30			hdmi1_con_in: endpoint {
31				remote-endpoint = <&hdmi1_out_con>;
32			};
33		};
34	};
35};
36
37&hdmi0 {
38	status = "okay";
39};
40
41&hdmi0_in {
42	hdmi0_in_vp0: endpoint {
43		remote-endpoint = <&vp0_out_hdmi0>;
44	};
45};
46
47&hdmi0_out {
48	hdmi0_out_con: endpoint {
49		remote-endpoint = <&hdmi0_con_in>;
50	};
51};
52
53&hdmi0_sound {
54	status = "okay";
55};
56
57&hdmi1 {
58	pinctrl-names = "default";
59	pinctrl-0 = <&hdmim0_tx1_cec &hdmim0_tx1_hpd
60			     &hdmim1_tx1_scl &hdmim1_tx1_sda>;
61	status = "okay";
62};
63
64&hdmi1_in {
65	hdmi1_in_vp1: endpoint {
66		remote-endpoint = <&vp1_out_hdmi1>;
67	};
68};
69
70&hdmi1_out {
71	hdmi1_out_con: endpoint {
72		remote-endpoint = <&hdmi1_con_in>;
73	};
74};
75
76&hdmi1_sound {
77	status = "okay";
78};
79
80&hdptxphy0 {
81	status = "okay";
82};
83
84&hdptxphy1 {
85	status = "okay";
86};
87
88&i2s5_8ch {
89	status = "okay";
90};
91
92&i2s6_8ch {
93	status = "okay";
94};
95
96&led_blue_pwm {
97	pwms = <&pwm4 0 25000 0>;
98};
99
100&led_green_pwm {
101	pwms = <&pwm5 0 25000 0>;
102};
103
104&pinctrl {
105
106	usb {
107		usb_otg_pwren: usb-otg-pwren {
108			rockchip,pins = <4 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>;
109		};
110	};
111};
112
113&vp0 {
114	vp0_out_hdmi0: endpoint@ROCKCHIP_VOP2_EP_HDMI0 {
115		reg = <ROCKCHIP_VOP2_EP_HDMI0>;
116		remote-endpoint = <&hdmi0_in_vp0>;
117	};
118};
119
120&vp1 {
121	vp1_out_hdmi1: endpoint@ROCKCHIP_VOP2_EP_HDMI1 {
122		reg = <ROCKCHIP_VOP2_EP_HDMI1>;
123		remote-endpoint = <&hdmi1_in_vp1>;
124	};
125};
126