From: Cody Kang <[email protected]> CoM260-IFX carries a single DisplayPort output. Enable the second DPU and the DisplayPort controller it feeds.
Signed-off-by: Cody Kang <[email protected]> --- v4: - sort the DisplayPort overrides into the file; name the pin group child after its group v3: - describe the HPD pad at the 1.8 V it runs at - commit message: reworded v2: - describe the DP receptacle (dp-connector) and link it to dp1 port@1 (Rob Herring, on patch 03) --- arch/riscv/boot/dts/spacemit/k3-com260-ifx.dts | 27 ++++++++++++++++++++++++++ arch/riscv/boot/dts/spacemit/k3-pinctrl.dtsi | 11 +++++++++++ 2 files changed, 38 insertions(+) diff --git a/arch/riscv/boot/dts/spacemit/k3-com260-ifx.dts b/arch/riscv/boot/dts/spacemit/k3-com260-ifx.dts index fadcf28389be9..3ece0d6aa2f34 100644 --- a/arch/riscv/boot/dts/spacemit/k3-com260-ifx.dts +++ b/arch/riscv/boot/dts/spacemit/k3-com260-ifx.dts @@ -6,6 +6,7 @@ #include <dt-bindings/phy/phy.h> #include "k3-com260.dtsi" +#include "k3-display.dtsi" / { model = "SpacemiT K3 CoM260 IFX"; @@ -20,6 +21,18 @@ chosen { stdout-path = "serial0:115200n8"; }; + connector { + compatible = "dp-connector"; + label = "DP1"; + type = "full-size"; + + port { + dp1_connector_in: endpoint { + remote-endpoint = <&dp1_out>; + }; + }; + }; + reg_hub_5v: regulator-usb3-hub-5v { compatible = "regulator-fixed"; regulator-name = "USB30_HUB"; @@ -60,6 +73,20 @@ &combophy { status = "okay"; }; +&dp1 { + pinctrl-names = "default"; + pinctrl-0 = <&dp1_3_cfg>; + status = "okay"; +}; + +&dp1_out { + remote-endpoint = <&dp1_connector_in>; +}; + +&dpu1_crtc0 { + status = "okay"; +}; + &i2c1 { pinctrl-names = "default"; pinctrl-0 = <&i2c1_1_cfg>; diff --git a/arch/riscv/boot/dts/spacemit/k3-pinctrl.dtsi b/arch/riscv/boot/dts/spacemit/k3-pinctrl.dtsi index 7a3b357dd9537..8b37beb63e4de 100644 --- a/arch/riscv/boot/dts/spacemit/k3-pinctrl.dtsi +++ b/arch/riscv/boot/dts/spacemit/k3-pinctrl.dtsi @@ -22,6 +22,17 @@ dp1-1-pins { }; }; + /omit-if-no-ref/ + dp1_3_cfg: dp1-3-cfg { + dp1-3-pins { + pinmux = <K3_PADCONF(72, 4)>; /* dp1 hpd */ + + bias-disable; + drive-strength = <25>; + power-source = <1800>; + }; + }; + gmac0_rgmii_0_cfg: gmac0-rgmii-0-cfg { gmac0-rgmii-0-pins { pinmux = <K3_PADCONF(0, 1)>, /* gmac0_rxdv */ -- 2.43.0
