dtoverlays: Remove i2c0mux and i20if status from edt-ft5406.dtsi
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Wed, 10 Nov 2021 15:55:32 +0000 (15:55 +0000)
committerDom Cobley <popcornmix@gmail.com>
Mon, 15 Nov 2021 20:07:54 +0000 (20:07 +0000)
edt-ft5406.dtsi is included from vc4-kms-dsi-7inch which was
also setting i2c0mux and i2c0if status fields. This meant that
dtoverlay wouldn't apply the overlay due to multiple fragments
changing the same parameter.

Move the enable from edt-ft5406.dtsi to edt-ft5406-overlay.dts
for when it should be needed as an independent overlay.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
arch/arm/boot/dts/overlays/edt-ft5406-overlay.dts
arch/arm/boot/dts/overlays/edt-ft5406.dtsi

index f82b4d0..1210e4b 100644 (file)
@@ -8,3 +8,19 @@
 /plugin/;
 
 #include "edt-ft5406.dtsi"
+
+/ {
+       fragment@0 {
+               target = <&i2c0if>;
+               __overlay__ {
+                       status = "okay";
+               };
+       };
+
+       fragment@1 {
+               target = <&i2c0mux>;
+               __overlay__ {
+                       status = "okay";
+               };
+       };
+};
index 0473ff1..6f9b4d0 100644 (file)
@@ -27,7 +27,6 @@
                __overlay__ {
                        #address-cells = <1>;
                        #size-cells = <0>;
-                       status = "okay";
                        ft5406: ts@38 {
                                compatible = "edt,edt-ft5406";
                                reg = <0x38>;
                };
        };
 
-       fragment@13 {
-               target = <&i2c0if>;
-               __overlay__ {
-                       status = "okay";
-               };
-       };
-
        __overrides__ {
                sizex = <&ft5406>,"touchscreen-size-x:0";
                sizey = <&ft5406>,"touchscreen-size-y:0";