Commit 997ebd64 authored by Alexander Dahl's avatar Alexander Dahl Committed by Alexandre Belloni
Browse files

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: default avatarAlexander Dahl <post@lespocky.de>
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20201005203451.9985-6-post@lespocky.de
parent 02e46262
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -48,31 +48,31 @@
		};
	};

	pwm_leds {
	led-controller {
		compatible = "pwm-leds";

		network_green {
		led-1 {
			label = "pwm:green:network";
			pwms = <&tcb_pwm 2 10000000 PWM_POLARITY_INVERTED>;
			max-brightness = <255>;
			linux,default-trigger = "default-on";
		};

		network_red {
		led-2 {
			label = "pwm:red:network";
			pwms = <&tcb_pwm 4 10000000 PWM_POLARITY_INVERTED>;
			max-brightness = <255>;
			linux,default-trigger = "default-on";
		};

		user_green {
		led-3 {
			label = "pwm:green:user";
			pwms = <&tcb_pwm 0 10000000 PWM_POLARITY_INVERTED>;
			max-brightness = <255>;
			linux,default-trigger = "default-on";
		};

		user_red {
		led-4 {
			label = "pwm:red:user";
			pwms = <&tcb_pwm 1 10000000 PWM_POLARITY_INVERTED>;
			max-brightness = <255>;
+4 −4
Original line number Diff line number Diff line
@@ -58,24 +58,24 @@
		};
	};

	pwm_leds {
	led-controller {
		compatible = "pwm-leds";

		blue {
		led-1 {
			label = "pwm:blue:user";
			pwms = <&pwm0 2 10000000 0>;
			max-brightness = <255>;
			linux,default-trigger = "none";
		};

		green {
		led-2 {
			label = "pwm:green:user";
			pwms = <&pwm0 1 10000000 0>;
			max-brightness = <255>;
			linux,default-trigger = "default-on";
		};

		red {
		led-3 {
			label = "pwm:red:user";
			pwms = <&pwm0 0 10000000 0>;
			max-brightness = <255>;
+8 −8
Original line number Diff line number Diff line
@@ -15,40 +15,40 @@
	model = "Overkiz KIZBOX3-HS";
	compatible = "overkiz,kizbox3-hs", "atmel,sama5d2", "atmel,sama5";

	pwm_leds {
	led-controller-1 {
		status = "okay";

		red {
		led-1 {
			status = "okay";
		};

		green {
		led-2 {
			status = "okay";
		};

		blue {
		led-3 {
			status = "okay";
		};

		white {
		led-4 {
			status = "okay";
		};
	};

	leds  {
	led-controller-2  {
		compatible = "gpio-leds";
		pinctrl-names = "default";
		pinctrl-0 = <&pinctrl_led_red
			     &pinctrl_led_white>;
		status = "okay";

		red {
		led-5 {
			label = "pio:red:user";
			gpios = <&pioA PIN_PB1 GPIO_ACTIVE_HIGH>;
			default-state = "off";
		};

		white {
		led-6 {
			label = "pio:white:user";
			gpios = <&pioA PIN_PB8 GPIO_ACTIVE_HIGH>;
			default-state = "off";
+5 −5
Original line number Diff line number Diff line
@@ -62,7 +62,7 @@
		regulator-always-on;
	};

	pwm_leds {
	led-controller-1 {
		compatible = "pwm-leds";
		pinctrl-names = "default";
		pinctrl-0 = <&pinctrl_pwm0_pwm_h0
@@ -71,7 +71,7 @@
			     &pinctrl_pwm0_pwm_h3>;
		status = "disabled";

		red {
		led-1 {
			label = "pwm:red:user";
			pwms = <&pwm0 0 10000000 0>;
			max-brightness = <255>;
@@ -79,7 +79,7 @@
			status = "disabled";
		};

		green {
		led-2 {
			label = "pwm:green:user";
			pwms = <&pwm0 1 10000000 0>;
			max-brightness = <255>;
@@ -87,14 +87,14 @@
			status = "disabled";
		};

		blue {
		led-3 {
			label = "pwm:blue:user";
			pwms = <&pwm0 2 10000000 0>;
			max-brightness = <255>;
			status = "disabled";
		};

		white {
		led-4 {
			label = "pwm:white:user";
			pwms = <&pwm0 3 10000000 0>;
			max-brightness = <255>;
+4 −4
Original line number Diff line number Diff line
@@ -54,10 +54,10 @@
		};
	};

	leds: pwm_leds {
	leds: led-controller-1 {
		compatible = "pwm-leds";

		led_blue: pwm_blue {
		led_blue: led-1 {
			label = "pwm:blue:user";
			pwms = <&pwm0 2 10000000 0>;
			max-brightness = <255>;
@@ -65,14 +65,14 @@
			status = "disabled";
		};

		led_green: pwm_green {
		led_green: led-2 {
			label = "pwm:green:user";
			pwms = <&pwm0 0 10000000 0>;
			max-brightness = <255>;
			linux,default-trigger = "default-on";
		};

		led_red: pwm_red {
		led_red: led-3 {
			label = "pwm:red:user";
			pwms = <&pwm0 1 10000000 0>;
			max-brightness = <255>;
Loading