[openwrt/openwrt] mediatek: filogic: fix "srg,sysled" dtc warnings
LEDE Commits
lede-commits at lists.infradead.org
Mon May 19 07:11:40 PDT 2025
dangole pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/13a02c9832f690f9e004e2606b4ef8bd3e9d6bd8
commit 13a02c9832f690f9e004e2606b4ef8bd3e9d6bd8
Author: Shiji Yang <yangshiji66 at outlook.com>
AuthorDate: Mon May 19 06:53:31 2025 +0800
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 at 11008000/system-leds/led at 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 at 11008000/system-leds/led at 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 at 11008000/system-leds/led at 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 at 11008000/system-leds/led at 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 at 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 at 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 at 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 at 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 at 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 at 11004000/system-leds: I2C bus unit address format error, expected "30"
Signed-off-by: Shiji Yang <yangshiji66 at outlook.com>
---
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 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 at 30 {
compatible = "srg,sysled";
reg = <0x30>;
+ #address-cells = <1>;
+ #size-cells = <0>;
led_status_red: led at 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 at 30 {
compatible = "srg,sysled";
reg = <0x30>;
+ #address-cells = <1>;
+ #size-cells = <0>;
led_sys_red: system_red {
label = "red";
More information about the lede-commits
mailing list