OSDN Git Service

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 26d93f2..240b620 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 d21bcc7..53ac6c2 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 a99604b..34a518b 100644 (file)
@@ -76,7 +76,7 @@
        soc {
                leds {
                        compatible = "gpio-leds";
-                       green {
+                       led-green {
                                gpios = <&pio1 3 GPIO_ACTIVE_HIGH>;
                                default-state = "off";
                        };
index 2aa9460..920a0ba 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";
                };