From 16db44294d4e523bdbdd1caa49f305a7a1634cb3 Mon Sep 17 00:00:00 2001 From: Marcel Ziswiler Date: Wed, 13 Sep 2023 16:45:53 +0200 Subject: verdin-am62: fix native lvds overlays Rather than referencing the root node and overriding its compatible, overlays should have their own root node with their compatible which may be checked for compatibility prior to being applied by a boot loader. Signed-off-by: Marcel Ziswiler --- overlays/verdin-am62_mezzanine_backlight.dtsi | 4 +++- .../verdin-am62_mezzanine_panel-cap-touch-10inch-lvds_overlay.dts | 4 +++- .../verdin-am62_mezzanine_panel-lvds-dual-channel-1080p_overlay.dts | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/overlays/verdin-am62_mezzanine_backlight.dtsi b/overlays/verdin-am62_mezzanine_backlight.dtsi index 6bfbd34..fe779ec 100644 --- a/overlays/verdin-am62_mezzanine_backlight.dtsi +++ b/overlays/verdin-am62_mezzanine_backlight.dtsi @@ -8,9 +8,11 @@ #include #include -&{/} { +/ { compatible = "toradex,verdin-am62"; +}; +&{/} { backlight_mezzanine: backlight-mezzanine { compatible = "pwm-backlight"; brightness-levels = <0 45 63 88 119 158 203 255>; diff --git a/overlays/verdin-am62_mezzanine_panel-cap-touch-10inch-lvds_overlay.dts b/overlays/verdin-am62_mezzanine_panel-cap-touch-10inch-lvds_overlay.dts index 8b1a674..c7ed3b6 100644 --- a/overlays/verdin-am62_mezzanine_panel-cap-touch-10inch-lvds_overlay.dts +++ b/overlays/verdin-am62_mezzanine_panel-cap-touch-10inch-lvds_overlay.dts @@ -14,9 +14,11 @@ #include "verdin-am62_mezzanine_backlight.dtsi" -&{/} { +/ { compatible = "toradex,verdin-am62"; +}; +&{/} { panel-lvds-mez { compatible = "panel-lvds"; backlight = <&backlight_mezzanine>; diff --git a/overlays/verdin-am62_mezzanine_panel-lvds-dual-channel-1080p_overlay.dts b/overlays/verdin-am62_mezzanine_panel-lvds-dual-channel-1080p_overlay.dts index 178b2c2..6caffae 100644 --- a/overlays/verdin-am62_mezzanine_panel-lvds-dual-channel-1080p_overlay.dts +++ b/overlays/verdin-am62_mezzanine_panel-lvds-dual-channel-1080p_overlay.dts @@ -13,9 +13,11 @@ #include "verdin-am62_mezzanine_backlight.dtsi" -&{/} { +/ { compatible = "toradex,verdin-am62"; +}; +&{/} { panel-lvds-mez { compatible = "panel-lvds"; #address-cells = <1>; -- cgit v1.2.3