From: Cody Kang Date: Sat, 21 Nov 2026 15:40:54 +0800 Subject: [PATCH v3 15/17] riscv: dts: spacemit: k3-pico-itx: enable the DisplayPort output MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20261121-k3-display-v3-15-ec419e8e96b8@gmail.com> References: <20261121-k3-display-v3-0-ec419e8e96b8@gmail.com> In-Reply-To: <20261121-k3-display-v3-0-ec419e8e96b8@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 , 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=1795246844; l=2008; i=codykang.hk@gmail.com; s=codykang; h=from:subject:message-id; bh=MoqCFqqlUXTvshGeYEd8HbhhAB7iUB4488Rgem2ZH74=; b=AB0I96oNgFVfRozLOxYB2bk3Z8WxUwp8/VeoyxhlP6U/hW7FFRPg2UcHllruGl8ucRYfDzD5U IHiLflbIWRNDabyyChOBgNOaCVnYCHYptoRN3ZihzPh5WceQcqfTLJR 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 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 --- 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 #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 = ; /* dp1 hpd */ + + bias-disable; + drive-strength = <25>; + power-source = <3300>; + }; + }; + gmac0_rgmii_0_cfg: gmac0-rgmii-0-cfg { gmac0-rgmii-0-pins { pinmux = , /* gmac0_rxdv */ -- 2.43.0