[openwrt/openwrt] bmips: shg2500: add missing led controller cells

LEDE Commits lede-commits at lists.infradead.org
Mon Jan 27 23:36:58 PST 2025


noltari pushed a commit to openwrt/openwrt.git, branch openwrt-23.05:
https://git.openwrt.org/1292a493a68e1ef144429ac33848eabf60a9b59c

commit 1292a493a68e1ef144429ac33848eabf60a9b59c
Author: Álvaro Fernández Rojas <noltari at gmail.com>
AuthorDate: Tue Jan 28 08:28:01 2025 +0100

    bmips: shg2500: add missing led controller cells
    
    Fixes the following DT warnings:
    ../dts/bcm63168-sercomm-shg2500.dts:76.4-14: Warning (reg_format): /ubus/spi at 10001000/led-controller at 1/led at 1:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
    ../dts/bcm63168-sercomm-shg2500.dts:75.9-78.5: Warning (avoid_default_addr_size): /ubus/spi at 10001000/led-controller at 1/led at 1: Relying on default #address-cells value
    ../dts/bcm63168-sercomm-shg2500.dts:75.9-78.5: Warning (avoid_default_addr_size): /ubus/spi at 10001000/led-controller at 1/led at 1: Relying on default #size-cells value
    
    Signed-off-by: Álvaro Fernández Rojas <noltari at gmail.com>
    (cherry picked from commit fbe0bd5f6453a61fab871bee56883afc5c6308cf)
---
 target/linux/bmips/dts/bcm63168-sercomm-shg2500.dts | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/target/linux/bmips/dts/bcm63168-sercomm-shg2500.dts b/target/linux/bmips/dts/bcm63168-sercomm-shg2500.dts
index 7b0ebf2aef..772e1363fc 100644
--- a/target/linux/bmips/dts/bcm63168-sercomm-shg2500.dts
+++ b/target/linux/bmips/dts/bcm63168-sercomm-shg2500.dts
@@ -69,6 +69,8 @@
 	status = "okay";
 
 	led-controller at 1 {
+		#address-cells = <1>;
+		#size-cells = <0>;
 		compatible = "sercomm,msp430-leds";
 		reg = <1>;
 		spi-max-frequency = <500000>;




More information about the lede-commits mailing list