]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ARM: dts: imx28-sps1: Fix GPIO LEDs description
authorFabio Estevam <festevam@denx.de>
Mon, 3 Feb 2025 17:30:20 +0000 (14:30 -0300)
committerShawn Guo <shawnguo@kernel.org>
Sun, 23 Feb 2025 06:49:17 +0000 (14:49 +0800)
According to leds-gpio.yaml, the LED nodes should not contain
unit addresses. Remove them.

Also, 'default-trigger' is not a valid property. Change it to
'linux,default-trigger'.

These changes fix the following dt-schema warnings:

led@1: Unevaluated properties are not allowed ('reg' was unexpected)
led@2: Unevaluated properties are not allowed ('reg' was unexpected)
led@3: Unevaluated properties are not allowed ('default-trigger', 'reg' were unexpected)
leds: '#address-cells', '#size-cells' do not match any of the regexes: '(^led-[0-9a-f]$|led)', 'pinctrl-[0-9]+'

Signed-off-by: Fabio Estevam <festevam@denx.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/nxp/mxs/imx28-sps1.dts

index 0f01dded4e3d9c591aeccf6edccbe709359695c9..ca62e7933116b0573ad459a9e55828c7051fda4d 100644 (file)
        };
 
        leds {
-               #address-cells = <1>;
-               #size-cells = <0>;
                compatible = "gpio-leds";
                status = "okay";
 
-               led@1 {
+               led-1 {
                        label = "sps1-1:yellow:user";
                        gpios = <&gpio0 6 0>;
                        linux,default-trigger = "heartbeat";
-                       reg = <0>;
                };
 
-               led@2 {
+               led-2 {
                        label = "sps1-2:red:user";
                        gpios = <&gpio0 3 0>;
                        linux,default-trigger = "heartbeat";
-                       reg = <1>;
                };
 
-               led@3 {
+               led-3 {
                        label = "sps1-3:red:user";
                        gpios = <&gpio0 0 0>;
-                       default-trigger = "heartbeat";
-                       reg = <2>;
+                       linux,default-trigger = "heartbeat";
                };
 
        };