ARM: dts: imx: Fix schema warnings for pwm-leds
authorAlexander Dahl <post@lespocky.de>
Mon, 5 Oct 2020 20:34:47 +0000 (22:34 +0200)
committerShawn Guo <shawnguo@kernel.org>
Fri, 30 Oct 2020 07:44:27 +0000 (15:44 +0800)
The node names for devices using the pwm-leds driver follow a certain
naming scheme (now).  Parent node name is not enforced, but recommended
by DT project.

  DTC     arch/arm/boot/dts/imx53-ppd.dt.yaml
  CHECK   arch/arm/boot/dts/imx53-ppd.dt.yaml
arch/arm/boot/dts/imx53-ppd.dt.yaml: leds-brightness: 'alarm-brightness' does not match any of the regexes: '^led(-[0-9a-f]+)?$', 'pinctrl-[0-9]+'
        From schema: Documentation/devicetree/bindings/leds/leds-pwm.yaml
  DTC     arch/arm/boot/dts/imx6dl-cubox-i.dt.yaml
  CHECK   arch/arm/boot/dts/imx6dl-cubox-i.dt.yaml
arch/arm/boot/dts/imx6dl-cubox-i.dt.yaml: pwmleds: 'front' does not match any of the regexes: '^led(-[0-9a-f]+)?$', 'pinctrl-[0-9]+'
        From schema: Documentation/devicetree/bindings/leds/leds-pwm.yaml
  DTC     arch/arm/boot/dts/imx6dl-cubox-i-emmc-som-v15.dt.yaml
  CHECK   arch/arm/boot/dts/imx6dl-cubox-i-emmc-som-v15.dt.yaml
arch/arm/boot/dts/imx6dl-cubox-i-emmc-som-v15.dt.yaml: pwmleds: 'front' does not match any of the regexes: '^led(-[0-9a-f]+)?$', 'pinctrl-[0-9]+'
        From schema: Documentation/devicetree/bindings/leds/leds-pwm.yaml
  DTC     arch/arm/boot/dts/imx6dl-cubox-i-som-v15.dt.yaml
  CHECK   arch/arm/boot/dts/imx6dl-cubox-i-som-v15.dt.yaml
arch/arm/boot/dts/imx6dl-cubox-i-som-v15.dt.yaml: pwmleds: 'front' does not match any of the regexes: '^led(-[0-9a-f]+)?$', 'pinctrl-[0-9]+'
        From schema: Documentation/devicetree/bindings/leds/leds-pwm.yaml
  DTC     arch/arm/boot/dts/imx6sx-softing-vining-2000.dt.yaml
  CHECK   arch/arm/boot/dts/imx6sx-softing-vining-2000.dt.yaml
arch/arm/boot/dts/imx6sx-softing-vining-2000.dt.yaml: pwmleds: 'blue', 'green', 'red' do not match any of the regexes: '^led(-[0-9a-f]+)?$', 'pinctrl-[0-9]+'
        From schema: Documentation/devicetree/bindings/leds/leds-pwm.yaml

Signed-off-by: Alexander Dahl <post@lespocky.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx53-ppd.dts
arch/arm/boot/dts/imx6qdl-cubox-i.dtsi
arch/arm/boot/dts/imx6sx-softing-vining-2000.dts

index f7dcdf96e5c00918fea0ec54149f28977d83c9c1..b480614efb30ea1da308573f18d7977d4d66789b 100644 (file)
                power-supply = <&reg_3v3_lcd>;
        };
 
-       leds-brightness {
+       led-controller-1 {
                compatible = "pwm-leds";
 
-               alarm-brightness {
+               led-1 {
+                       label = "alarm-brightness";
                        pwms = <&pwm1 0 100000>;
                        max-brightness = <255>;
                };
        };
 
-       leds {
+       led-controller-2 {
                compatible = "gpio-leds";
                pinctrl-names = "default";
                pinctrl-0 = <&pinctrl_alarmled_pins>;
 
-               alarm1 {
+               led-2 {
                        label = "alarm:red";
                        gpios = <&gpio7 3 GPIO_ACTIVE_HIGH>;
                };
 
-               alarm2 {
+               led-3 {
                        label = "alarm:yellow";
                        gpios = <&gpio7 7 GPIO_ACTIVE_HIGH>;
                };
 
-               alarm3 {
+               led-4 {
                        label = "alarm:blue";
                        gpios = <&gpio7 8 GPIO_ACTIVE_HIGH>;
                };
 
-               alarm4 {
+               led-5 {
                        label = "alarm:silenced";
                        gpios = <&gpio7 13 GPIO_ACTIVE_HIGH>;
                };
index 67042793b0cae6513768d339bfb7160584b97cee..1e530d892b768dda9146c30df8a48e4cca9e065f 100644 (file)
                pinctrl-0 = <&pinctrl_cubox_i_ir>;
        };
 
-       pwmleds {
+       led-controller {
                compatible = "pwm-leds";
                pinctrl-names = "default";
                pinctrl-0 = <&pinctrl_cubox_i_pwm1>;
 
-               front {
+               led-1 {
                        active-low;
                        label = "imx6:red:front";
                        max-brightness = <248>;
index 5547916870c7c52fadf395c4a9bed284ed3dd602..b9a1401e6c6d2d0e8ffe2b019476ace076294925 100644 (file)
                regulator-max-microvolt = <3300000>;
        };
 
-       pwmleds {
+       led-controller {
                compatible = "pwm-leds";
 
-               red {
+               led-1 {
                        label = "red";
                        max-brightness = <255>;
                        pwms = <&pwm6 0 50000>;
                };
 
-               green {
+               led-2 {
                        label = "green";
                        max-brightness = <255>;
                        pwms = <&pwm2 0 50000>;
                };
 
-               blue {
+               led-3 {
                        label = "blue";
                        max-brightness = <255>;
                        pwms = <&pwm1 0 50000>;