[PATCH 3/4] arm64: dts: mediatek: Use DP AltMode defines
Dmitry Baryshkov
dmitry.baryshkov at oss.qualcomm.com
Wed Oct 14 16:47:39 PDT 2026
On Wed, Oct 14, 2026 at 11:31:51PM +0200, Sebastian Reichel wrote:
> From: Sebastian Reichel <sebastian.reichel at collabora.com>
>
> Use the new USB-C DP AltMode defines for the SVID and the capabilities
> VDO to make the DTs more readable. This also fixes up mt8390 Genio
> platform incorrectly announcing UFP_D (upwards facing) support. This
> feature is unfortunately not supported by the SoC.
>
> Signed-off-by: Sebastian Reichel <sebastian.reichel at collabora.com>
> ---
> arch/arm64/boot/dts/mediatek/mt8390-genio-common.dtsi | 8 ++++++--
> arch/arm64/boot/dts/mediatek/mt8395-genio-common.dtsi | 10 ++++++++--
> 2 files changed, 14 insertions(+), 4 deletions(-)
>
> diff --git a/arch/arm64/boot/dts/mediatek/mt8390-genio-common.dtsi b/arch/arm64/boot/dts/mediatek/mt8390-genio-common.dtsi
> index 669eaec662f3..02f8b33d64ac 100644
> --- a/arch/arm64/boot/dts/mediatek/mt8390-genio-common.dtsi
> +++ b/arch/arm64/boot/dts/mediatek/mt8390-genio-common.dtsi
> @@ -527,8 +527,12 @@ PDO_FIXED_DUAL_ROLE |
>
> altmodes {
> displayport {
> - svid = /bits/ 16 <0xff01>;
> - vdo = <0x001c1c47>;
> + svid = /bits/ 16 <USB_DISPLAYPORT_SVID>;
USB_SVID_DP_ALTMODE
> + vdo = <VDO_DP(DP_CAP_DPAM_V2_0, DP_CAP_CABLE_TYPE_PASSIVE,
> + DP_CAP_UHBR_13_5_UNSUPPORTED,
> + DP_PIN_UFP_NONE, DP_PIN_DFP_C_D_E,
> + DP_CAP_USB2_USED, DP_CAP_RECEPTACLE,
> + DP_CAP_SIGNALLING_HBR3, DP_CAP_DFP_D)>;
> };
> };
>
> diff --git a/arch/arm64/boot/dts/mediatek/mt8395-genio-common.dtsi b/arch/arm64/boot/dts/mediatek/mt8395-genio-common.dtsi
> index aef908df530e..3f7d57dfcf93 100644
> --- a/arch/arm64/boot/dts/mediatek/mt8395-genio-common.dtsi
> +++ b/arch/arm64/boot/dts/mediatek/mt8395-genio-common.dtsi
> @@ -597,8 +597,14 @@ PDO_FIXED_DUAL_ROLE |
>
> altmodes {
> displayport {
> - svid = /bits/ 16 <0xff01>;
> - vdo = <0x00001c46>;
> + svid = /bits/ 16 <USB_DISPLAYPORT_SVID>;
USB_SVID_DP_ALTMODE
> + vdo = <VDO_DP(DP_CAP_DPAM_V2_0,
> + DP_CAP_CABLE_TYPE_PASSIVE,
> + DP_CAP_UHBR_13_5_UNSUPPORTED,
> + DP_PIN_UFP_NONE, DP_PIN_DFP_C_D_E,
> + DP_CAP_USB2_USED, DP_CAP_RECEPTACLE,
> + DP_CAP_SIGNALLING_HBR3,
> + DP_CAP_DFP_D)>;
> };
> };
>
>
> --
> 2.53.0
>
--
With best wishes
Dmitry
More information about the Linux-rockchip
mailing list