]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
mediatek: filogic: mt-stuart: fix dtc warnings
authorChad Monroe <chad@monroe.io>
Tue, 11 Aug 2026 02:49:32 +0000 (19:49 -0700)
committerJonas Jelonek <jelonek.jonas@gmail.com>
Tue, 11 Aug 2026 20:13:08 +0000 (22:13 +0200)
Rename the system LED children to led@1..led@4. The nodes have a
reg property, so dtc wants unit addresses. The sysled driver names
the LEDs from the label property, which does not change.

Remove #address-cells and #size-cells from the eMMC card@0 node.
The node has no children with a reg property.

No functional change.

Signed-off-by: Chad Monroe <chad@monroe.io>
Link: https://github.com/openwrt/openwrt/pull/24352
Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
target/linux/mediatek/dts/mt7988a-smartrg-mt-stuart.dtsi

index 07d75a0f722d14caf9b4030c3b517557616b0567..b4a05e0bc0414d54b33e5a93e958478cb57ebcd2 100644 (file)
                #address-cells = <1>;
                #size-cells = <0>;
 
-               led_sys_red: system_red {
+               led_sys_red: led@1 {
                        label = "red";
                        reg = <1>;
                };
 
-               led_sys_green: system_green {
+               led_sys_green: led@2 {
                        label = "green";
                        reg = <2>;
                };
 
-               led_sys_blue: system_blue {
+               led_sys_blue: led@3 {
                        label = "blue";
                        reg = <3>;
                };
 
-               led_sys_white: system_white {
+               led_sys_white: led@4 {
                        label = "white";
                        reg = <4>;
                };
        #size-cells = <0>;
 
        card@0 {
-               #address-cells = <0>;
-               #size-cells = <0>;
                compatible = "mmc-card";
                reg = <0>;