ARM: dts: at91: 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/at91-kizbox2-2.dt.yaml
  CHECK   arch/arm/boot/dts/at91-kizbox2-2.dt.yaml
/home/alex/build/linux/arch/arm/boot/dts/at91-kizbox2-2.dt.yaml: pwm_leds: 'blue', 'green', 'red' do not match any of the regexes: '^led(-[0-9a-f]+)?$', 'pinctrl-[0-9]+'
        From schema: /home/alex/src/linux/leds/Documentation/devicetree/bindings/leds/leds-pwm.yaml
  DTC     arch/arm/boot/dts/at91-kizbox3-hs.dt.yaml
  CHECK   arch/arm/boot/dts/at91-kizbox3-hs.dt.yaml
/home/alex/build/linux/arch/arm/boot/dts/at91-kizbox3-hs.dt.yaml: pwm_leds: 'blue', 'green', 'red', 'white' do not match any of the regexes: '^led(-[0-9a-f]+)?$', 'pinctrl-[0-9]+'
        From schema: /home/alex/src/linux/leds/Documentation/devicetree/bindings/leds/leds-pwm.yaml

(Warnings above are for armv7 only, armv5 would produce similar warnings.)

Signed-off-by: Alexander Dahl <post@lespocky.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20201005203451.9985-6-post@lespocky.de
This commit is contained in:
Alexander Dahl
2020-10-05 22:34:44 +02:00
committed by Alexandre Belloni
parent 02e46262af
commit 997ebd64df
7 changed files with 36 additions and 36 deletions

View File

@@ -48,31 +48,31 @@
}; };
}; };
pwm_leds { led-controller {
compatible = "pwm-leds"; compatible = "pwm-leds";
network_green { led-1 {
label = "pwm:green:network"; label = "pwm:green:network";
pwms = <&tcb_pwm 2 10000000 PWM_POLARITY_INVERTED>; pwms = <&tcb_pwm 2 10000000 PWM_POLARITY_INVERTED>;
max-brightness = <255>; max-brightness = <255>;
linux,default-trigger = "default-on"; linux,default-trigger = "default-on";
}; };
network_red { led-2 {
label = "pwm:red:network"; label = "pwm:red:network";
pwms = <&tcb_pwm 4 10000000 PWM_POLARITY_INVERTED>; pwms = <&tcb_pwm 4 10000000 PWM_POLARITY_INVERTED>;
max-brightness = <255>; max-brightness = <255>;
linux,default-trigger = "default-on"; linux,default-trigger = "default-on";
}; };
user_green { led-3 {
label = "pwm:green:user"; label = "pwm:green:user";
pwms = <&tcb_pwm 0 10000000 PWM_POLARITY_INVERTED>; pwms = <&tcb_pwm 0 10000000 PWM_POLARITY_INVERTED>;
max-brightness = <255>; max-brightness = <255>;
linux,default-trigger = "default-on"; linux,default-trigger = "default-on";
}; };
user_red { led-4 {
label = "pwm:red:user"; label = "pwm:red:user";
pwms = <&tcb_pwm 1 10000000 PWM_POLARITY_INVERTED>; pwms = <&tcb_pwm 1 10000000 PWM_POLARITY_INVERTED>;
max-brightness = <255>; max-brightness = <255>;

View File

@@ -58,24 +58,24 @@
}; };
}; };
pwm_leds { led-controller {
compatible = "pwm-leds"; compatible = "pwm-leds";
blue { led-1 {
label = "pwm:blue:user"; label = "pwm:blue:user";
pwms = <&pwm0 2 10000000 0>; pwms = <&pwm0 2 10000000 0>;
max-brightness = <255>; max-brightness = <255>;
linux,default-trigger = "none"; linux,default-trigger = "none";
}; };
green { led-2 {
label = "pwm:green:user"; label = "pwm:green:user";
pwms = <&pwm0 1 10000000 0>; pwms = <&pwm0 1 10000000 0>;
max-brightness = <255>; max-brightness = <255>;
linux,default-trigger = "default-on"; linux,default-trigger = "default-on";
}; };
red { led-3 {
label = "pwm:red:user"; label = "pwm:red:user";
pwms = <&pwm0 0 10000000 0>; pwms = <&pwm0 0 10000000 0>;
max-brightness = <255>; max-brightness = <255>;

View File

@@ -15,40 +15,40 @@
model = "Overkiz KIZBOX3-HS"; model = "Overkiz KIZBOX3-HS";
compatible = "overkiz,kizbox3-hs", "atmel,sama5d2", "atmel,sama5"; compatible = "overkiz,kizbox3-hs", "atmel,sama5d2", "atmel,sama5";
pwm_leds { led-controller-1 {
status = "okay"; status = "okay";
red { led-1 {
status = "okay"; status = "okay";
}; };
green { led-2 {
status = "okay"; status = "okay";
}; };
blue { led-3 {
status = "okay"; status = "okay";
}; };
white { led-4 {
status = "okay"; status = "okay";
}; };
}; };
leds { led-controller-2 {
compatible = "gpio-leds"; compatible = "gpio-leds";
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&pinctrl_led_red pinctrl-0 = <&pinctrl_led_red
&pinctrl_led_white>; &pinctrl_led_white>;
status = "okay"; status = "okay";
red { led-5 {
label = "pio:red:user"; label = "pio:red:user";
gpios = <&pioA PIN_PB1 GPIO_ACTIVE_HIGH>; gpios = <&pioA PIN_PB1 GPIO_ACTIVE_HIGH>;
default-state = "off"; default-state = "off";
}; };
white { led-6 {
label = "pio:white:user"; label = "pio:white:user";
gpios = <&pioA PIN_PB8 GPIO_ACTIVE_HIGH>; gpios = <&pioA PIN_PB8 GPIO_ACTIVE_HIGH>;
default-state = "off"; default-state = "off";

View File

@@ -62,7 +62,7 @@
regulator-always-on; regulator-always-on;
}; };
pwm_leds { led-controller-1 {
compatible = "pwm-leds"; compatible = "pwm-leds";
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&pinctrl_pwm0_pwm_h0 pinctrl-0 = <&pinctrl_pwm0_pwm_h0
@@ -71,7 +71,7 @@
&pinctrl_pwm0_pwm_h3>; &pinctrl_pwm0_pwm_h3>;
status = "disabled"; status = "disabled";
red { led-1 {
label = "pwm:red:user"; label = "pwm:red:user";
pwms = <&pwm0 0 10000000 0>; pwms = <&pwm0 0 10000000 0>;
max-brightness = <255>; max-brightness = <255>;
@@ -79,7 +79,7 @@
status = "disabled"; status = "disabled";
}; };
green { led-2 {
label = "pwm:green:user"; label = "pwm:green:user";
pwms = <&pwm0 1 10000000 0>; pwms = <&pwm0 1 10000000 0>;
max-brightness = <255>; max-brightness = <255>;
@@ -87,14 +87,14 @@
status = "disabled"; status = "disabled";
}; };
blue { led-3 {
label = "pwm:blue:user"; label = "pwm:blue:user";
pwms = <&pwm0 2 10000000 0>; pwms = <&pwm0 2 10000000 0>;
max-brightness = <255>; max-brightness = <255>;
status = "disabled"; status = "disabled";
}; };
white { led-4 {
label = "pwm:white:user"; label = "pwm:white:user";
pwms = <&pwm0 3 10000000 0>; pwms = <&pwm0 3 10000000 0>;
max-brightness = <255>; max-brightness = <255>;

View File

@@ -54,10 +54,10 @@
}; };
}; };
leds: pwm_leds { leds: led-controller-1 {
compatible = "pwm-leds"; compatible = "pwm-leds";
led_blue: pwm_blue { led_blue: led-1 {
label = "pwm:blue:user"; label = "pwm:blue:user";
pwms = <&pwm0 2 10000000 0>; pwms = <&pwm0 2 10000000 0>;
max-brightness = <255>; max-brightness = <255>;
@@ -65,14 +65,14 @@
status = "disabled"; status = "disabled";
}; };
led_green: pwm_green { led_green: led-2 {
label = "pwm:green:user"; label = "pwm:green:user";
pwms = <&pwm0 0 10000000 0>; pwms = <&pwm0 0 10000000 0>;
max-brightness = <255>; max-brightness = <255>;
linux,default-trigger = "default-on"; linux,default-trigger = "default-on";
}; };
led_red: pwm_red { led_red: led-3 {
label = "pwm:red:user"; label = "pwm:red:user";
pwms = <&pwm0 1 10000000 0>; pwms = <&pwm0 1 10000000 0>;
max-brightness = <255>; max-brightness = <255>;

View File

@@ -315,27 +315,27 @@
}; };
}; };
leds { led-controller-1 {
compatible = "gpio-leds"; compatible = "gpio-leds";
d8 { led-1 {
label = "d8"; label = "d8";
gpios = <&pioD 30 GPIO_ACTIVE_HIGH>; gpios = <&pioD 30 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "heartbeat"; linux,default-trigger = "heartbeat";
}; };
}; };
pwmleds { led-controller-2 {
compatible = "pwm-leds"; compatible = "pwm-leds";
d6 { led-2 {
label = "d6"; label = "d6";
pwms = <&pwm0 3 5000 PWM_POLARITY_INVERTED>; pwms = <&pwm0 3 5000 PWM_POLARITY_INVERTED>;
max-brightness = <255>; max-brightness = <255>;
linux,default-trigger = "nand-disk"; linux,default-trigger = "nand-disk";
}; };
d7 { led-3 {
label = "d7"; label = "d7";
pwms = <&pwm0 1 5000 PWM_POLARITY_INVERTED>; pwms = <&pwm0 1 5000 PWM_POLARITY_INVERTED>;
max-brightness = <255>; max-brightness = <255>;

View File

@@ -218,26 +218,26 @@
}; };
}; };
pwmleds { led-controller-1 {
compatible = "pwm-leds"; compatible = "pwm-leds";
ds1 { led-1 {
label = "ds1"; label = "ds1";
pwms = <&pwm0 1 5000 PWM_POLARITY_INVERTED>; pwms = <&pwm0 1 5000 PWM_POLARITY_INVERTED>;
max-brightness = <255>; max-brightness = <255>;
}; };
ds2 { led-2 {
label = "ds2"; label = "ds2";
pwms = <&pwm0 2 5000 PWM_POLARITY_INVERTED>; pwms = <&pwm0 2 5000 PWM_POLARITY_INVERTED>;
max-brightness = <255>; max-brightness = <255>;
}; };
}; };
leds { led-controller-2 {
compatible = "gpio-leds"; compatible = "gpio-leds";
ds3 { led-3 {
label = "ds3"; label = "ds3";
gpios = <&pioD 14 GPIO_ACTIVE_HIGH>; gpios = <&pioD 14 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "heartbeat"; linux,default-trigger = "heartbeat";