From: Cody Kang Date: Sun, 29 Nov 2026 20:32:27 +0800 Subject: [PATCH v4 15/16] riscv: dts: spacemit: k3-com260-ifx: enable the DisplayPort output MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20261129-k3-display-v4-15-ce6cf7988202@gmail.com> References: <20261129-k3-display-v4-0-ce6cf7988202@gmail.com> In-Reply-To: <20261129-k3-display-v4-0-ce6cf7988202@gmail.com> To: David Airlie , Simona Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Yixun Lan , Troy Mitchell , Vinod Koul , Neil Armstrong , Manivannan Sadhasivam , Haylen Chu , Michael Turquette , Stephen Boyd , Brian Masney , Philipp Zabel , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Yao Zi , =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , Guodong Xu , Icenowy Zheng , Jerome Brunet , Sarah Emery , Ze Huang , Dmitry Baryshkov Cc: Cody Kang , James Morris , dri-devel@lists.freedesktop.org, linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, spacemit@lists.linux.dev, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, linux-clk@vger.kernel.org X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1795955545; l=2419; i=codykang.hk@gmail.com; s=codykang; h=from:subject:message-id; bh=BBkO4TEyuJcfxvWDNIav2SzaY3XHZcz4bl4Hxrkl8qU=; b=jUgyCmpd+xiitE8aVJB30JsPPrOcFJFD4JVray8foSBfK9tIZZmIgVIQXuBFl/FbQQoF/kKVI 4THCRk0xr38CcL3zjrPE1NjDQ3o5V/CzqwMGiC71+azqfrEyLTjFGyY X-Developer-Key: i=codykang.hk@gmail.com; a=ed25519; pk=Osn6/cs9Su/mHHw4P19cmVc3v2FMQfiWahjsN0vEkuk= X-Endpoint-Received: by B4 Relay for codykang.hk@gmail.com/codykang with auth_id=895 List-Id: B4 Relay Submissions From: Cody Kang CoM260-IFX carries a single DisplayPort output. Enable the second DPU and the DisplayPort controller it feeds. Signed-off-by: Cody Kang --- 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 #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 = ; /* dp1 hpd */ + + bias-disable; + drive-strength = <25>; + power-source = <1800>; + }; + }; + gmac0_rgmii_0_cfg: gmac0-rgmii-0-cfg { gmac0-rgmii-0-pins { pinmux = , /* gmac0_rxdv */ -- 2.43.0