summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShiji Yang2025-05-18 22:53:31 +0000
committerShiji Yang2025-05-19 12:00:59 +0000
commit13a02c9832f690f9e004e2606b4ef8bd3e9d6bd8 (patch)
tree75496d31b5771ce37030f46be39f47ab526c67d0
parent12c93f2295216c276f5e7fa47ea79ac1510cd60e (diff)
downloadopenwrt-13a02c9832f690f9e004e2606b4ef8bd3e9d6bd8.tar.gz
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 <yangshiji66@outlook.com>
-rw-r--r--target/linux/mediatek/dts/mt7986a-smartrg-bonanza-peak.dtsi4
-rw-r--r--target/linux/mediatek/dts/mt7988a-smartrg-mt-stuart.dtsi4
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 e5ae78df4d..7337f4573a 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 = <LED_COLOR_ID_RED>;
diff --git a/target/linux/mediatek/dts/mt7988a-smartrg-mt-stuart.dtsi b/target/linux/mediatek/dts/mt7988a-smartrg-mt-stuart.dtsi
index a3db288d27..cf3f3a0cc5 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";