]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ARM: dts: microchip: Rename LED sub nodes name
authorAndrei Simion <andrei.simion@microchip.com>
Wed, 2 Oct 2024 12:30:11 +0000 (15:30 +0300)
committerClaudiu Beznea <claudiu.beznea@tuxon.dev>
Sun, 13 Oct 2024 15:56:19 +0000 (18:56 +0300)
dtbs_check warnings:
leds: 'd[0-9]', 'ds[0-9]' do not match any of the regexes :
'(^led-[0-9a-f]$|led)', 'pinctrl-[0-9]+'
leds: 'red', 'green', 'blue' do not match any of regexes :
'(^led-[0-9a-f]$|led)', 'pinctrl-[0-9]+'

Rename the led sub nodes according to devicetree specification and
leds-gpio.yaml and for aks-cdu add label property and use the old node
name as value to stay stable and avoid breaking the userspace applications
that depend on those paths.

Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Andrei Simion <andrei.simion@microchip.com>
Link: https://lore.kernel.org/r/20241002123010.111028-4-andrei.simion@microchip.com
Signed-off-by: Claudiu Beznea <claudiu.beznea@tuxon.dev>
arch/arm/boot/dts/microchip/aks-cdu.dts
arch/arm/boot/dts/microchip/animeo_ip.dts
arch/arm/boot/dts/microchip/at91-sam9x60ek.dts
arch/arm/boot/dts/microchip/at91rm9200ek.dts
arch/arm/boot/dts/microchip/at91sam9260ek.dts
arch/arm/boot/dts/microchip/at91sam9261ek.dts
arch/arm/boot/dts/microchip/at91sam9263ek.dts
arch/arm/boot/dts/microchip/at91sam9g20ek.dts

index 742fcf525e1b747d4d7839a646d7f4278393d5d3..b65f80e1ef0552c1fc5a761062f7e628720aa908 100644 (file)
        leds {
                compatible = "gpio-leds";
 
-               red {
+               led-red {
+                       label = "red";
                        gpios = <&pioC 10 GPIO_ACTIVE_HIGH>;
                        linux,default-trigger = "none";
                };
 
-               green {
+               led-green {
+                       label = "green";
                        gpios = <&pioA 5 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "none";
                        default-state = "on";
                };
 
-               yellow {
+               led-yellow {
+                       label = "yellow";
                        gpios = <&pioB 20 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "none";
                };
 
-               blue {
+               led-blue {
+                       label = "blue";
                        gpios = <&pioB 21 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "none";
                };
index 29936bfbeeb7ea5367188613976c02ba4cbe4bb6..7f527622d3f24333912d0957f57d5f87281a8814 100644 (file)
        leds {
                compatible = "gpio-leds";
 
-               power_green {
+               led-power-green {
                        label = "power_green";
                        gpios = <&pioC 17 GPIO_ACTIVE_HIGH>;
                        linux,default-trigger = "heartbeat";
                };
 
-               power_red {
+               led-power-red {
                        label = "power_red";
                        gpios = <&pioA 2 GPIO_ACTIVE_HIGH>;
                };
 
-               tx_green {
+               led-tx-green {
                        label = "tx_green";
                        gpios = <&pioC 19 GPIO_ACTIVE_HIGH>;
                };
 
-               tx_red {
+               led-tx-red {
                        label = "tx_red";
                        gpios = <&pioC 18 GPIO_ACTIVE_HIGH>;
                };
index 6cf699d9b5407f14ca7b10428976976b868155f3..cdc56b53299d1bab88d2a9591a258a44c7d4a427 100644 (file)
                pinctrl-0 = <&pinctrl_gpio_leds>;
                status = "okay"; /* Conflict with pwm0. */
 
-               red {
+               led-red {
                        label = "red";
                        gpios = <&pioB 11 GPIO_ACTIVE_HIGH>;
                };
 
-               green {
+               led-green {
                        label = "green";
                        gpios = <&pioB 12 GPIO_ACTIVE_HIGH>;
                };
 
-               blue {
+               led-blue {
                        label = "blue";
                        gpios = <&pioB 13 GPIO_ACTIVE_HIGH>;
                        linux,default-trigger = "heartbeat";
index 4624a6f076f8155f329bb9eb0e3cbe59ee3e3d6a..0bf472b157a5dfc5ce591e2d947382b7c646319e 100644 (file)
        leds {
                compatible = "gpio-leds";
 
-               ds2 {
+               led-ds2 {
                        label = "green";
                        gpios = <&pioB 0 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "mmc0";
                };
 
-               ds4 {
+               led-ds4 {
                        label = "yellow";
                        gpios = <&pioB 1 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "heartbeat";
                };
 
-               ds6 {
+               led-ds6 {
                        label = "red";
                        gpios = <&pioB 2 GPIO_ACTIVE_LOW>;
                };
index 6bd60dce8378a215ff08cdbd533e86f78ce05dcb..e8e65e60564d9d8f55c87476f20cc4eabc3c7b2c 100644 (file)
        leds {
                compatible = "gpio-leds";
 
-               ds1 {
+               led-ds1 {
                        label = "ds1";
                        gpios = <&pioA 9 GPIO_ACTIVE_HIGH>;
                        linux,default-trigger = "heartbeat";
                };
 
-               ds5 {
+               led-ds5 {
                        label = "ds5";
                        gpios = <&pioA 6 GPIO_ACTIVE_LOW>;
                };
index 045cb253f23a6d07a39724f23be412927975e570..a8f523131cd67a5f19f7ec1ae69aa402083e50a1 100644 (file)
        leds {
                compatible = "gpio-leds";
 
-               ds8 {
+               led-ds8 {
                        label = "ds8";
                        gpios = <&pioA 13 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "none";
                };
 
-               ds7 {
+               led-ds7 {
                        label = "ds7";
                        gpios = <&pioA 14 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "nand-disk";
                };
 
-               ds1 {
+               led-ds1 {
                        label = "ds1";
                        gpios = <&pioA 23 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "heartbeat";
index bad7dbecba3c6c88e5291084bd94fc97b11f051e..f25692543d71f16ba0082540f1230a46566972b7 100644 (file)
        leds {
                compatible = "gpio-leds";
 
-               d3 {
+               led-d3 {
                        label = "d3";
                        gpios = <&pioB 7 GPIO_ACTIVE_HIGH>;
                        linux,default-trigger = "heartbeat";
                };
 
-               d2 {
+               led-d2 {
                        label = "d2";
                        gpios = <&pioC 29 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "nand-disk";
index 6de7a7cd3c078356f842750be75edfd9b807004c..1e62fd371ddb806f7afa3f5a682b21d6ee970149 100644 (file)
        leds {
                compatible = "gpio-leds";
 
-               ds1 {
+               led-ds1 {
                        label = "ds1";
                        gpios = <&pioA 9 GPIO_ACTIVE_HIGH>;
                        linux,default-trigger = "heartbeat";
                };
 
-               ds5 {
+               led-ds5 {
                        label = "ds5";
                        gpios = <&pioA 6 GPIO_ACTIVE_LOW>;
                };