Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: imx: Fix schema warnings for pwm-leds

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>

authored by

Alexander Dahl and committed by
Shawn Guo
97f1dd5b a486d18c

+14 -13
+8 -7
arch/arm/boot/dts/imx53-ppd.dts
··· 176 176 power-supply = <&reg_3v3_lcd>; 177 177 }; 178 178 179 - leds-brightness { 179 + led-controller-1 { 180 180 compatible = "pwm-leds"; 181 181 182 - alarm-brightness { 182 + led-1 { 183 + label = "alarm-brightness"; 183 184 pwms = <&pwm1 0 100000>; 184 185 max-brightness = <255>; 185 186 }; 186 187 }; 187 188 188 - leds { 189 + led-controller-2 { 189 190 compatible = "gpio-leds"; 190 191 pinctrl-names = "default"; 191 192 pinctrl-0 = <&pinctrl_alarmled_pins>; 192 193 193 - alarm1 { 194 + led-2 { 194 195 label = "alarm:red"; 195 196 gpios = <&gpio7 3 GPIO_ACTIVE_HIGH>; 196 197 }; 197 198 198 - alarm2 { 199 + led-3 { 199 200 label = "alarm:yellow"; 200 201 gpios = <&gpio7 7 GPIO_ACTIVE_HIGH>; 201 202 }; 202 203 203 - alarm3 { 204 + led-4 { 204 205 label = "alarm:blue"; 205 206 gpios = <&gpio7 8 GPIO_ACTIVE_HIGH>; 206 207 }; 207 208 208 - alarm4 { 209 + led-5 { 209 210 label = "alarm:silenced"; 210 211 gpios = <&gpio7 13 GPIO_ACTIVE_HIGH>; 211 212 };
+2 -2
arch/arm/boot/dts/imx6qdl-cubox-i.dtsi
··· 55 55 pinctrl-0 = <&pinctrl_cubox_i_ir>; 56 56 }; 57 57 58 - pwmleds { 58 + led-controller { 59 59 compatible = "pwm-leds"; 60 60 pinctrl-names = "default"; 61 61 pinctrl-0 = <&pinctrl_cubox_i_pwm1>; 62 62 63 - front { 63 + led-1 { 64 64 active-low; 65 65 label = "imx6:red:front"; 66 66 max-brightness = <248>;
+4 -4
arch/arm/boot/dts/imx6sx-softing-vining-2000.dts
··· 40 40 regulator-max-microvolt = <3300000>; 41 41 }; 42 42 43 - pwmleds { 43 + led-controller { 44 44 compatible = "pwm-leds"; 45 45 46 - red { 46 + led-1 { 47 47 label = "red"; 48 48 max-brightness = <255>; 49 49 pwms = <&pwm6 0 50000>; 50 50 }; 51 51 52 - green { 52 + led-2 { 53 53 label = "green"; 54 54 max-brightness = <255>; 55 55 pwms = <&pwm2 0 50000>; 56 56 }; 57 57 58 - blue { 58 + led-3 { 59 59 label = "blue"; 60 60 max-brightness = <255>; 61 61 pwms = <&pwm1 0 50000>;