summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Ziswiler <marcel.ziswiler@toradex.com>2023-09-13 16:45:53 +0200
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2023-09-13 16:45:53 +0200
commit16db44294d4e523bdbdd1caa49f305a7a1634cb3 (patch)
tree0fd156a1898d3e90b690d94de171449b9e8934dd
parent28a84e584ce575689110c12fcd517ab4a957dd36 (diff)
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 <marcel.ziswiler@toradex.com>
-rw-r--r--overlays/verdin-am62_mezzanine_backlight.dtsi4
-rw-r--r--overlays/verdin-am62_mezzanine_panel-cap-touch-10inch-lvds_overlay.dts4
-rw-r--r--overlays/verdin-am62_mezzanine_panel-lvds-dual-channel-1080p_overlay.dts4
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 <dt-bindings/gpio/gpio.h>
#include <dt-bindings/pwm/pwm.h>
-&{/} {
+/ {
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>;