12846c905SEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 22846c905SEmmanuel Vadot 32846c905SEmmanuel Vadot/dts-v1/; 42846c905SEmmanuel Vadot 52846c905SEmmanuel Vadot#include <dt-bindings/gpio/gpio.h> 62846c905SEmmanuel Vadot#include <dt-bindings/pinctrl/rockchip.h> 72846c905SEmmanuel Vadot#include <dt-bindings/soc/rockchip,vop2.h> 82846c905SEmmanuel Vadot#include "rk3588-orangepi-5-compact.dtsi" 92846c905SEmmanuel Vadot 102846c905SEmmanuel Vadot/ { 112846c905SEmmanuel Vadot model = "Xunlong Orange Pi 5 Max"; 122846c905SEmmanuel Vadot compatible = "xunlong,orangepi-5-max", "rockchip,rk3588"; 132846c905SEmmanuel Vadot 142846c905SEmmanuel Vadot hdmi0-con { 152846c905SEmmanuel Vadot compatible = "hdmi-connector"; 162846c905SEmmanuel Vadot type = "a"; 172846c905SEmmanuel Vadot 182846c905SEmmanuel Vadot port { 192846c905SEmmanuel Vadot hdmi0_con_in: endpoint { 202846c905SEmmanuel Vadot remote-endpoint = <&hdmi0_out_con>; 212846c905SEmmanuel Vadot }; 222846c905SEmmanuel Vadot }; 232846c905SEmmanuel Vadot }; 24*8ccc0d23SEmmanuel Vadot 25*8ccc0d23SEmmanuel Vadot hdmi1-con { 26*8ccc0d23SEmmanuel Vadot compatible = "hdmi-connector"; 27*8ccc0d23SEmmanuel Vadot type = "a"; 28*8ccc0d23SEmmanuel Vadot 29*8ccc0d23SEmmanuel Vadot port { 30*8ccc0d23SEmmanuel Vadot hdmi1_con_in: endpoint { 31*8ccc0d23SEmmanuel Vadot remote-endpoint = <&hdmi1_out_con>; 32*8ccc0d23SEmmanuel Vadot }; 33*8ccc0d23SEmmanuel Vadot }; 34*8ccc0d23SEmmanuel Vadot }; 352846c905SEmmanuel Vadot}; 362846c905SEmmanuel Vadot 372846c905SEmmanuel Vadot&hdmi0 { 382846c905SEmmanuel Vadot status = "okay"; 392846c905SEmmanuel Vadot}; 402846c905SEmmanuel Vadot 412846c905SEmmanuel Vadot&hdmi0_in { 422846c905SEmmanuel Vadot hdmi0_in_vp0: endpoint { 432846c905SEmmanuel Vadot remote-endpoint = <&vp0_out_hdmi0>; 442846c905SEmmanuel Vadot }; 452846c905SEmmanuel Vadot}; 462846c905SEmmanuel Vadot 472846c905SEmmanuel Vadot&hdmi0_out { 482846c905SEmmanuel Vadot hdmi0_out_con: endpoint { 492846c905SEmmanuel Vadot remote-endpoint = <&hdmi0_con_in>; 502846c905SEmmanuel Vadot }; 512846c905SEmmanuel Vadot}; 522846c905SEmmanuel Vadot 53*8ccc0d23SEmmanuel Vadot&hdmi0_sound { 542846c905SEmmanuel Vadot status = "okay"; 552846c905SEmmanuel Vadot}; 562846c905SEmmanuel Vadot 57*8ccc0d23SEmmanuel Vadot&hdmi1 { 58*8ccc0d23SEmmanuel Vadot pinctrl-names = "default"; 59*8ccc0d23SEmmanuel Vadot pinctrl-0 = <&hdmim0_tx1_cec &hdmim0_tx1_hpd 60*8ccc0d23SEmmanuel Vadot &hdmim1_tx1_scl &hdmim1_tx1_sda>; 61*8ccc0d23SEmmanuel Vadot status = "okay"; 62*8ccc0d23SEmmanuel Vadot}; 63*8ccc0d23SEmmanuel Vadot 64*8ccc0d23SEmmanuel Vadot&hdmi1_in { 65*8ccc0d23SEmmanuel Vadot hdmi1_in_vp1: endpoint { 66*8ccc0d23SEmmanuel Vadot remote-endpoint = <&vp1_out_hdmi1>; 67*8ccc0d23SEmmanuel Vadot }; 68*8ccc0d23SEmmanuel Vadot}; 69*8ccc0d23SEmmanuel Vadot 70*8ccc0d23SEmmanuel Vadot&hdmi1_out { 71*8ccc0d23SEmmanuel Vadot hdmi1_out_con: endpoint { 72*8ccc0d23SEmmanuel Vadot remote-endpoint = <&hdmi1_con_in>; 73*8ccc0d23SEmmanuel Vadot }; 74*8ccc0d23SEmmanuel Vadot}; 75*8ccc0d23SEmmanuel Vadot 76*8ccc0d23SEmmanuel Vadot&hdmi1_sound { 77*8ccc0d23SEmmanuel Vadot status = "okay"; 78*8ccc0d23SEmmanuel Vadot}; 79*8ccc0d23SEmmanuel Vadot 80*8ccc0d23SEmmanuel Vadot&hdptxphy0 { 81*8ccc0d23SEmmanuel Vadot status = "okay"; 82*8ccc0d23SEmmanuel Vadot}; 83*8ccc0d23SEmmanuel Vadot 84*8ccc0d23SEmmanuel Vadot&hdptxphy1 { 85*8ccc0d23SEmmanuel Vadot status = "okay"; 86*8ccc0d23SEmmanuel Vadot}; 87*8ccc0d23SEmmanuel Vadot 88*8ccc0d23SEmmanuel Vadot&i2s5_8ch { 89*8ccc0d23SEmmanuel Vadot status = "okay"; 90*8ccc0d23SEmmanuel Vadot}; 91*8ccc0d23SEmmanuel Vadot 92*8ccc0d23SEmmanuel Vadot&i2s6_8ch { 93*8ccc0d23SEmmanuel Vadot status = "okay"; 94*8ccc0d23SEmmanuel Vadot}; 95*8ccc0d23SEmmanuel Vadot 96*8ccc0d23SEmmanuel Vadot&led_blue_pwm { 97*8ccc0d23SEmmanuel Vadot pwms = <&pwm4 0 25000 0>; 98*8ccc0d23SEmmanuel Vadot}; 99*8ccc0d23SEmmanuel Vadot 100*8ccc0d23SEmmanuel Vadot&led_green_pwm { 101*8ccc0d23SEmmanuel Vadot pwms = <&pwm5 0 25000 0>; 102*8ccc0d23SEmmanuel Vadot}; 103*8ccc0d23SEmmanuel Vadot 1042846c905SEmmanuel Vadot&pinctrl { 1052846c905SEmmanuel Vadot 1062846c905SEmmanuel Vadot usb { 1072846c905SEmmanuel Vadot usb_otg_pwren: usb-otg-pwren { 1082846c905SEmmanuel Vadot rockchip,pins = <4 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>; 1092846c905SEmmanuel Vadot }; 1102846c905SEmmanuel Vadot }; 1112846c905SEmmanuel Vadot}; 1122846c905SEmmanuel Vadot 1132846c905SEmmanuel Vadot&vp0 { 1142846c905SEmmanuel Vadot vp0_out_hdmi0: endpoint@ROCKCHIP_VOP2_EP_HDMI0 { 1152846c905SEmmanuel Vadot reg = <ROCKCHIP_VOP2_EP_HDMI0>; 1162846c905SEmmanuel Vadot remote-endpoint = <&hdmi0_in_vp0>; 1172846c905SEmmanuel Vadot }; 1182846c905SEmmanuel Vadot}; 119*8ccc0d23SEmmanuel Vadot 120*8ccc0d23SEmmanuel Vadot&vp1 { 121*8ccc0d23SEmmanuel Vadot vp1_out_hdmi1: endpoint@ROCKCHIP_VOP2_EP_HDMI1 { 122*8ccc0d23SEmmanuel Vadot reg = <ROCKCHIP_VOP2_EP_HDMI1>; 123*8ccc0d23SEmmanuel Vadot remote-endpoint = <&hdmi1_in_vp1>; 124*8ccc0d23SEmmanuel Vadot }; 125*8ccc0d23SEmmanuel Vadot}; 126