2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-27 22:53:55 +08:00

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>
This commit is contained in:
Alexander Dahl 2020-10-05 22:34:46 +02:00 committed by Krzysztof Kozlowski
parent 3650b228f8
commit 4a6dbc65f6
3 changed files with 10 additions and 9 deletions

View File

@ -15,10 +15,10 @@
compatible = "hardkernel,odroid-hc1", "samsung,exynos5800", \
"samsung,exynos5";
pwmleds {
led-controller {
compatible = "pwm-leds";
blueled {
led-1 {
label = "blue:heartbeat";
pwms = <&pwm 2 2000000 0>;
pwm-names = "pwm2";

View File

@ -17,10 +17,10 @@
compatible = "hardkernel,odroid-xu4", "samsung,exynos5800", \
"samsung,exynos5";
pwmleds {
led-controller {
compatible = "pwm-leds";
blueled {
led-1 {
label = "blue:heartbeat";
pwms = <&pwm 2 2000000 0>;
pwm-names = "pwm2";

View File

@ -11,10 +11,10 @@
#include <dt-bindings/gpio/gpio.h>
/ {
pwmleds {
led-controller-1 {
compatible = "pwm-leds";
greenled {
led-1 {
label = "green:mmc0";
pwms = <&pwm 1 2000000 0>;
pwm-names = "pwm1";
@ -26,7 +26,7 @@
linux,default-trigger = "mmc0";
};
blueled {
led-2 {
label = "blue:heartbeat";
pwms = <&pwm 2 2000000 0>;
pwm-names = "pwm2";
@ -35,9 +35,10 @@
};
};
gpioleds {
led-controller-2 {
compatible = "gpio-leds";
redled {
led-3 {
label = "red:microSD";
gpios = <&gpx2 3 GPIO_ACTIVE_HIGH>;
default-state = "off";