ARM: dts: sti: align LED node names with dtschema
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Fri, 25 Nov 2022 14:41:16 +0000 (15:41 +0100)
committerKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Thu, 1 Dec 2022 17:04:47 +0000 (18:04 +0100)
The node names should be generic and DT schema expects certain pattern:

  stih407-b2120.dtb: leds: 'green', 'red' do not match any of the regexes: '(^led-[0-9a-f]$|led)', 'pinctrl-[0-9]+'

Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Link: https://lore.kernel.org/r/20221125144116.476877-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
arch/arm/boot/dts/stih410-b2260.dts
arch/arm/boot/dts/stih418-b2199.dts
arch/arm/boot/dts/stih418-b2264.dts
arch/arm/boot/dts/stihxxx-b2120.dtsi

index 26d93f26f6d0754eac0d8a2344403f8472d0f8a2..240b62040000b8c0357d39504d3475186958bf31 100644 (file)
 
        leds {
                compatible = "gpio-leds";
-               user_green_1 {
+               led-user-green-1 {
                        label = "User_green_1";
                        gpios = <&pio1 3 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "heartbeat";
                        default-state = "off";
                };
 
-               user_green_2 {
+               led-user-green-2 {
                        label = "User_green_2";
                        gpios = <&pio4 1 GPIO_ACTIVE_LOW>;
                        default-state = "off";
                };
 
-               user_green_3 {
+               led-user-green-3 {
                        label = "User_green_3";
                        gpios = <&pio2 1 GPIO_ACTIVE_LOW>;
                        default-state = "off";
                };
 
-               user_green_4 {
+               led-user-green-4 {
                        label = "User_green_4";
                        gpios = <&pio2 5 GPIO_ACTIVE_LOW>;
                        default-state = "off";
index d21bcc7c12716b7bce93b4682ba2ca9682852af0..53ac6c2b7b7d5431c7f78c047dbf93a15f20db94 100644 (file)
 
        leds {
                compatible = "gpio-leds";
-               red {
+               led-red {
                        label = "Front Panel LED";
                        gpios = <&pio4 1 GPIO_ACTIVE_HIGH>;
                        linux,default-trigger = "heartbeat";
                };
-               green {
+               led-green {
                        gpios = <&pio1 3 GPIO_ACTIVE_HIGH>;
                        default-state = "off";
                };
index a99604bebf8cd4327d906cc91e3c1126506a94a9..34a518b037ab2e3f272436443b5070d4587a9fb6 100644 (file)
@@ -76,7 +76,7 @@
        soc {
                leds {
                        compatible = "gpio-leds";
-                       green {
+                       led-green {
                                gpios = <&pio1 3 GPIO_ACTIVE_HIGH>;
                                default-state = "off";
                        };
index 2aa94605d3d47e4b0d811f75ed9e6cd90fb6460a..920a0bad74945e57acfd61c04aeb775ef3bd96f3 100644 (file)
@@ -9,12 +9,12 @@
 / {
        leds {
                compatible = "gpio-leds";
-               red {
+               led-red {
                        label = "Front Panel LED";
                        gpios = <&pio4 1 GPIO_ACTIVE_HIGH>;
                        linux,default-trigger = "heartbeat";
                };
-               green {
+               led-green {
                        gpios = <&pio1 3 GPIO_ACTIVE_HIGH>;
                        default-state = "off";
                };