]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
mediatek: filogic: fix "srg,sysled" dtc warnings
authorShiji Yang <yangshiji66@outlook.com>
Sun, 18 May 2025 22:53:31 +0000 (06:53 +0800)
committerShiji Yang <yangshiji66@outlook.com>
Mon, 19 May 2025 12:00:59 +0000 (20:00 +0800)
Add missing #address-cells and #size-cells to fix the
following dtc warnings:

../dts/mt7986a-smartrg-bonanza-peak.dtsi:562.4-14: Warning (reg_format): /soc/i2c@11008000/system-leds/led@1:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
../dts/mt7986a-smartrg-bonanza-peak.dtsi:568.4-14: Warning (reg_format): /soc/i2c@11008000/system-leds/led@2:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
../dts/mt7986a-smartrg-bonanza-peak.dtsi:574.4-14: Warning (reg_format): /soc/i2c@11008000/system-leds/led@3:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
../dts/mt7986a-smartrg-bonanza-peak.dtsi:580.4-14: Warning (reg_format): /soc/i2c@11008000/system-leds/led@4:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
../dts/mt7988a-smartrg-mt-stuart.dtsi:394.4-14: Warning (reg_format): /soc/i2c@11004000/system-leds/system_red:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
../dts/mt7988a-smartrg-mt-stuart.dtsi:399.4-14: Warning (reg_format): /soc/i2c@11004000/system-leds/system_green:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
../dts/mt7988a-smartrg-mt-stuart.dtsi:404.4-14: Warning (reg_format): /soc/i2c@11004000/system-leds/system_blue:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
../dts/mt7988a-smartrg-mt-stuart.dtsi:409.4-14: Warning (reg_format): /soc/i2c@11004000/system-leds/system_white:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
../dts/mt7986a-smartrg-bonanza-peak.dtsi:559.14-588.4: Warning (i2c_bus_reg): /soc/i2c@11008000/system-leds: I2C bus unit address format error, expected "30"
../dts/mt7988a-smartrg-mt-stuart.dtsi:388.14-413.4: Warning (i2c_bus_reg): /soc/i2c@11004000/system-leds: I2C bus unit address format error, expected "30"

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
target/linux/mediatek/dts/mt7986a-smartrg-bonanza-peak.dtsi
target/linux/mediatek/dts/mt7988a-smartrg-mt-stuart.dtsi

index e5ae78df4d46ae5cca944cad6f17a193e6e3c6d0..7337f4573a0ae4736a8107f91dd712c35d509bd0 100644 (file)
        pinctrl-0 = <&i2c0_pins>;
        status = "okay";
 
-       system-leds {
+       system-leds@30 {
                compatible = "srg,sysled";
                reg = <0x30>;
+               #address-cells = <1>;
+               #size-cells = <0>;
 
                led_status_red: led@1 {
                        color = <LED_COLOR_ID_RED>;
index a3db288d274d393daa10a84530f91a008e6e587f..cf3f3a0cc527664a63a290b8c08f262f15eafcbe 100644 (file)
        pinctrl-0 = <&i2c1_pins>;
        status = "okay";
 
-       system-leds {
+       system-leds@30 {
                compatible = "srg,sysled";
                reg = <0x30>;
+               #address-cells = <1>;
+               #size-cells = <0>;
 
                led_sys_red: system_red {
                        label = "red";