From 2cf5db4b6fdbc9bab181bdaead37edb8cf06c4d3 Mon Sep 17 00:00:00 2001 From: Maxim Paymushkin Date: Wed, 11 Dec 2024 12:21:03 +0100 Subject: [PATCH] patch: kernel: rk35xx-vendor-6.1: adakta-smarc: add lvds overlay --- .../adakta-smarc-display-lvds0-vp1.dts | 52 +++++++++++++++++++ .../adakta-smarc-display-lvds0-vp2.dts | 52 +++++++++++++++++++ .../adakta-smarc-display-lvds1-vp1.dts | 52 +++++++++++++++++++ .../adakta-smarc-display-lvds1-vp2.dts | 52 +++++++++++++++++++ 4 files changed, 208 insertions(+) create mode 100644 patch/kernel/rk35xx-vendor-6.1/overlay/adakta-smarc-display-lvds0-vp1.dts create mode 100644 patch/kernel/rk35xx-vendor-6.1/overlay/adakta-smarc-display-lvds0-vp2.dts create mode 100644 patch/kernel/rk35xx-vendor-6.1/overlay/adakta-smarc-display-lvds1-vp1.dts create mode 100644 patch/kernel/rk35xx-vendor-6.1/overlay/adakta-smarc-display-lvds1-vp2.dts diff --git a/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-smarc-display-lvds0-vp1.dts b/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-smarc-display-lvds0-vp1.dts new file mode 100644 index 000000000000..8924efc15296 --- /dev/null +++ b/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-smarc-display-lvds0-vp1.dts @@ -0,0 +1,52 @@ +/dts-v1/; +/plugin/; + +/ { + metadata { + title = "Enable LVDS0 via VP1"; + compatible = "adakta,adakta-smarc-rk3568"; + category = "display"; + description = "Enable LVDS0 via VP1"; + }; + + fragment@0 { + target = <&lvds0>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@1 { + target = <&lvds0_in_vp1>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@2 { + target = <&route_lvds>; + + __overlay__ { + status = "okay"; + connect = <&vp1_out_lvds>; + }; + }; + + fragment@3 { + target = <&lvds0_backlight>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@4 { + target = <&video_phy0>; + + __overlay__ { + status = "okay"; + }; + }; +}; diff --git a/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-smarc-display-lvds0-vp2.dts b/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-smarc-display-lvds0-vp2.dts new file mode 100644 index 000000000000..ed4615dcd8fc --- /dev/null +++ b/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-smarc-display-lvds0-vp2.dts @@ -0,0 +1,52 @@ +/dts-v1/; +/plugin/; + +/ { + metadata { + title = "Enable LVDS0 via VP2"; + compatible = "adakta,adakta-smarc-rk3568"; + category = "display"; + description = "Enable LVDS0 via VP2"; + }; + + fragment@0 { + target = <&lvds0>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@1 { + target = <&lvds0_in_vp2>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@2 { + target = <&route_lvds>; + + __overlay__ { + status = "okay"; + connect = <&vp2_out_lvds>; + }; + }; + + fragment@3 { + target = <&lvds0_backlight>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@4 { + target = <&video_phy0>; + + __overlay__ { + status = "okay"; + }; + }; +}; diff --git a/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-smarc-display-lvds1-vp1.dts b/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-smarc-display-lvds1-vp1.dts new file mode 100644 index 000000000000..f2a990ef87da --- /dev/null +++ b/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-smarc-display-lvds1-vp1.dts @@ -0,0 +1,52 @@ +/dts-v1/; +/plugin/; + +/ { + metadata { + title = "Enable LVDS1 via VP1"; + compatible = "adakta,adakta-smarc-rk3568"; + category = "display"; + description = "Enable LVDS1 via VP1"; + }; + + fragment@0 { + target = <&lvds1>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@1 { + target = <&lvds1_in_vp1>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@2 { + target = <&route_lvds>; + + __overlay__ { + status = "okay"; + connect = <&vp1_out_lvds>; + }; + }; + + fragment@3 { + target = <&lvds1_backlight>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@4 { + target = <&video_phy1>; + + __overlay__ { + status = "okay"; + }; + }; +}; diff --git a/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-smarc-display-lvds1-vp2.dts b/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-smarc-display-lvds1-vp2.dts new file mode 100644 index 000000000000..2d3d175e61d4 --- /dev/null +++ b/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-smarc-display-lvds1-vp2.dts @@ -0,0 +1,52 @@ +/dts-v1/; +/plugin/; + +/ { + metadata { + title = "Enable LVDS1 via VP2"; + compatible = "adakta,adakta-smarc-rk3568"; + category = "display"; + description = "Enable LVDS1 via VP2"; + }; + + fragment@0 { + target = <&lvds1>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@1 { + target = <&lvds1_in_vp2>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@2 { + target = <&route_lvds>; + + __overlay__ { + status = "okay"; + connect = <&vp2_out_lvds>; + }; + }; + + fragment@3 { + target = <&lvds1_backlight>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@4 { + target = <&video_phy1>; + + __overlay__ { + status = "okay"; + }; + }; +};