From 13a02c9832f690f9e004e2606b4ef8bd3e9d6bd8 Mon Sep 17 00:00:00 2001 From: Shiji Yang Date: Mon, 19 May 2025 06:53:31 +0800 Subject: [PATCH] mediatek: filogic: fix "srg,sysled" dtc warnings 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 --- target/linux/mediatek/dts/mt7986a-smartrg-bonanza-peak.dtsi | 4 +++- target/linux/mediatek/dts/mt7988a-smartrg-mt-stuart.dtsi | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/target/linux/mediatek/dts/mt7986a-smartrg-bonanza-peak.dtsi b/target/linux/mediatek/dts/mt7986a-smartrg-bonanza-peak.dtsi index e5ae78df4d4..7337f4573a0 100644 --- a/target/linux/mediatek/dts/mt7986a-smartrg-bonanza-peak.dtsi +++ b/target/linux/mediatek/dts/mt7986a-smartrg-bonanza-peak.dtsi @@ -552,9 +552,11 @@ 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 = ; diff --git a/target/linux/mediatek/dts/mt7988a-smartrg-mt-stuart.dtsi b/target/linux/mediatek/dts/mt7988a-smartrg-mt-stuart.dtsi index a3db288d274..cf3f3a0cc52 100644 --- a/target/linux/mediatek/dts/mt7988a-smartrg-mt-stuart.dtsi +++ b/target/linux/mediatek/dts/mt7988a-smartrg-mt-stuart.dtsi @@ -385,9 +385,11 @@ 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"; -- 2.47.2