From 08e9fb36de3b595feca28ebe5a95b4a9f3ab78e6 Mon Sep 17 00:00:00 2001 From: SongJun Li Date: Mon, 8 Apr 2024 16:24:21 +0800 Subject: [PATCH] rock 2a: add tve support Signed-off-by: SongJun Li --- .../arm64/boot/dts/rockchip/overlays/Makefile | 1 + .../rockchip/overlays/rk3528-enable-tve.dts | 36 +++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 arch/arm64/boot/dts/rockchip/overlays/rk3528-enable-tve.dts diff --git a/arch/arm64/boot/dts/rockchip/overlays/Makefile b/arch/arm64/boot/dts/rockchip/overlays/Makefile index 9c95f33c..33dfa538 100644 --- a/arch/arm64/boot/dts/rockchip/overlays/Makefile +++ b/arch/arm64/boot/dts/rockchip/overlays/Makefile @@ -105,6 +105,7 @@ dtb-$(CONFIG_CPU_RK3399) += \ rock-4-radxa-display-10hd.dtbo dtb-$(CONFIG_CLK_RK3528) += \ + rk3528-enable-tve.dtbo \ rk3528-dwc3-otg.dtbo \ rk3528-fiq-debugger-uart1m0.dtbo \ rk3528-fiq-debugger-uart2m1.dtbo \ diff --git a/arch/arm64/boot/dts/rockchip/overlays/rk3528-enable-tve.dts b/arch/arm64/boot/dts/rockchip/overlays/rk3528-enable-tve.dts new file mode 100644 index 00000000..a7a3cb27 --- /dev/null +++ b/arch/arm64/boot/dts/rockchip/overlays/rk3528-enable-tve.dts @@ -0,0 +1,36 @@ +/dts-v1/; +/plugin/; + +/ { + metadata { + title = "Enable analog video output"; + compatible = "radxa,rock-2a"; + category = "misc"; + exclusive = "tve"; + description = "Enable analog video output.\nCurrently this overlay will disable HDMI output due to display artifacts."; + }; +}; + +&hdmi { + status = "disabled"; +}; + +&hdmi_in_vp0 { + status = "disabled"; +}; + +&hdmi_sound { + status = "disabled"; +}; + +&tve { + status = "okay"; +}; + +&tve_in_vp1 { + status = "okay"; +}; + +&sai3 { + status = "disabled"; +};