From: Cody Kang <[email protected]> Pico-ITX brings the second DPU's output to a USB Type-C receptacle, as DisplayPort alternate mode. The mux and the PD controller in front of the receptacle are run by the on-board EC and the SoC only gets the HPD line back, so there is no connector node to link the output to. Enable that DPU and the DisplayPort controller it feeds.
Signed-off-by: Cody Kang <[email protected]> --- v3: - commit message: the output is the Type-C receptacle's DP alternate mode, not a DisplayPort connector (Icenowy Zheng) v2: - no change --- arch/riscv/boot/dts/spacemit/k3-pico-itx.dts | 11 +++++++++++ arch/riscv/boot/dts/spacemit/k3-pinctrl.dtsi | 11 +++++++++++ 2 files changed, 22 insertions(+) diff --git a/arch/riscv/boot/dts/spacemit/k3-pico-itx.dts b/arch/riscv/boot/dts/spacemit/k3-pico-itx.dts index dda420900aa2c..da042d7c30328 100644 --- a/arch/riscv/boot/dts/spacemit/k3-pico-itx.dts +++ b/arch/riscv/boot/dts/spacemit/k3-pico-itx.dts @@ -6,6 +6,7 @@ #include <dt-bindings/gpio/gpio.h> #include "k3.dtsi" +#include "k3-display.dtsi" #include "k3-pinctrl.dtsi" / { @@ -368,3 +369,13 @@ &usb3d { phy-names = "usb2-phy", "usb3-phy"; status = "okay"; }; + +&dpu1_crtc0 { + status = "okay"; +}; + +&dp1 { + pinctrl-names = "default"; + pinctrl-0 = <&dp1_1_cfg>; + status = "okay"; +}; diff --git a/arch/riscv/boot/dts/spacemit/k3-pinctrl.dtsi b/arch/riscv/boot/dts/spacemit/k3-pinctrl.dtsi index cb4f4f4e33aff..a3188ca0ceb36 100644 --- a/arch/riscv/boot/dts/spacemit/k3-pinctrl.dtsi +++ b/arch/riscv/boot/dts/spacemit/k3-pinctrl.dtsi @@ -11,6 +11,17 @@ #define K3_GPIO(x) (x / 32) (x % 32) &pinctrl { + /omit-if-no-ref/ + dp1_1_cfg: dp1-1-cfg { + dp1-pins { + pinmux = <K3_PADCONF(24, 6)>; /* dp1 hpd */ + + bias-disable; + drive-strength = <25>; + power-source = <3300>; + }; + }; + gmac0_rgmii_0_cfg: gmac0-rgmii-0-cfg { gmac0-rgmii-0-pins { pinmux = <K3_PADCONF(0, 1)>, /* gmac0_rxdv */ -- 2.43.0
