diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-tablet.dtsi b/arch/arm64/boot/dts/rockchip/rk3588s-tablet.dtsi index cabf516fe425..8c3b6edf0c1e 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588s-tablet.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3588s-tablet.dtsi @@ -259,6 +259,14 @@ mem-supply = <&vdd_cpu_big1_mem_s0>; }; +&dp0 { + status = "okay"; +}; + +&dp0_in_vp1 { + status = "okay"; +}; + &edp0 { force-hpd; status = "okay"; @@ -474,6 +482,17 @@ source-pdos = ; + altmodes { + #address-cells = <1>; + #size-cells = <0>; + + altmode@0 { + reg = <0>; + svid = <0xff01>; + vdo = <0xffffffff>; + }; + }; + ports { #address-cells = <1>; #size-cells = <0>; @@ -484,6 +503,13 @@ remote-endpoint = <&usbdp_phy0_orientation_switch>; }; }; + + port@1 { + reg = <1>; + dp_altmode_mux: endpoint { + remote-endpoint = <&usbdp_phy0_dp_altmode_mux>; + }; + }; }; }; }; @@ -764,9 +790,12 @@ }; &usbdp_phy0 { + orientation-switch; + svid = <0xff01>; + sbu1-dc-gpios = <&gpio4 RK_PA6 GPIO_ACTIVE_HIGH>; + sbu2-dc-gpios = <&gpio4 RK_PA7 GPIO_ACTIVE_HIGH>; status = "okay"; - orientation-switch; port { #address-cells = <1>; #size-cells = <0>; @@ -774,6 +803,11 @@ reg = <0>; remote-endpoint = <&usbc0_orien_sw>; }; + + usbdp_phy0_dp_altmode_mux: endpoint@1 { + reg = <1>; + remote-endpoint = <&dp_altmode_mux>; + }; }; }; @@ -816,7 +850,7 @@ &vop { assigned-clocks = <&cru DCLK_VOP2_SRC>, <&cru DCLK_VOP2_SRC>, <&cru DCLK_VOP2_SRC>, <&cru DCLK_VOP3>; - assigned-clock-parents = <0>, <0>, <&cru PLL_V0PLL>, <0>; + assigned-clock-parents = <0>, <&cru PLL_GPLL>, <&cru PLL_V0PLL>, <0>; status = "okay"; };