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

ARM: dts: exynos: 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.

arch/arm/boot/dts/exynos5410-odroidxu.dt.yaml: pwmleds:
'blueled', 'greenled' do not match any of the regexes: '^led(-[0-9a-f]+)?$', 'pinctrl-[0-9]+'
arch/arm/boot/dts/exynos5422-odroidhc1.dt.yaml: pwmleds:
'blueled' does 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>
Link: https://lore.kernel.org/r/20201005203451.9985-8-post@lespocky.de
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>

authored by

Alexander Dahl and committed by
Krzysztof Kozlowski
4a6dbc65 3650b228

+10 -9
+2 -2
arch/arm/boot/dts/exynos5422-odroidhc1.dts
··· 15 15 compatible = "hardkernel,odroid-hc1", "samsung,exynos5800", \ 16 16 "samsung,exynos5"; 17 17 18 - pwmleds { 18 + led-controller { 19 19 compatible = "pwm-leds"; 20 20 21 - blueled { 21 + led-1 { 22 22 label = "blue:heartbeat"; 23 23 pwms = <&pwm 2 2000000 0>; 24 24 pwm-names = "pwm2";
+2 -2
arch/arm/boot/dts/exynos5422-odroidxu4.dts
··· 17 17 compatible = "hardkernel,odroid-xu4", "samsung,exynos5800", \ 18 18 "samsung,exynos5"; 19 19 20 - pwmleds { 20 + led-controller { 21 21 compatible = "pwm-leds"; 22 22 23 - blueled { 23 + led-1 { 24 24 label = "blue:heartbeat"; 25 25 pwms = <&pwm 2 2000000 0>; 26 26 pwm-names = "pwm2";
+6 -5
arch/arm/boot/dts/exynos54xx-odroidxu-leds.dtsi
··· 11 11 #include <dt-bindings/gpio/gpio.h> 12 12 13 13 / { 14 - pwmleds { 14 + led-controller-1 { 15 15 compatible = "pwm-leds"; 16 16 17 - greenled { 17 + led-1 { 18 18 label = "green:mmc0"; 19 19 pwms = <&pwm 1 2000000 0>; 20 20 pwm-names = "pwm1"; ··· 26 26 linux,default-trigger = "mmc0"; 27 27 }; 28 28 29 - blueled { 29 + led-2 { 30 30 label = "blue:heartbeat"; 31 31 pwms = <&pwm 2 2000000 0>; 32 32 pwm-names = "pwm2"; ··· 35 35 }; 36 36 }; 37 37 38 - gpioleds { 38 + led-controller-2 { 39 39 compatible = "gpio-leds"; 40 - redled { 40 + 41 + led-3 { 41 42 label = "red:microSD"; 42 43 gpios = <&gpx2 3 GPIO_ACTIVE_HIGH>; 43 44 default-state = "off";