Commit 3a48b303 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski

ARM: dts: at91: align LED node names with dtschema

The node names should be generic and DT schema expects certain pattern:

  at91-sama5d2_ptc_ek.dtb: leds: 'blue', 'green', 'red' do not match any of the regexes: '(^led-[0-9a-f]$|led)', 'pinctrl-[0-9]+'

Link: https://lore.kernel.org/r/20221125144131.477089-1-krzysztof.kozlowski@linaro.orgSigned-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
parent 30a39ce8
...@@ -31,37 +31,37 @@ reset-button { ...@@ -31,37 +31,37 @@ reset-button {
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
ethernet { led-ethernet {
label = "gatwick:yellow:ethernet"; label = "gatwick:yellow:ethernet";
gpios = <&pioA 10 GPIO_ACTIVE_LOW>; gpios = <&pioA 10 GPIO_ACTIVE_LOW>;
default-state = "off"; default-state = "off";
}; };
wifi { led-wifi {
label = "gatwick:green:wifi"; label = "gatwick:green:wifi";
gpios = <&pioA 28 GPIO_ACTIVE_LOW>; gpios = <&pioA 28 GPIO_ACTIVE_LOW>;
default-state = "off"; default-state = "off";
}; };
ble { led-ble {
label = "gatwick:blue:ble"; label = "gatwick:blue:ble";
gpios = <&pioA 22 GPIO_ACTIVE_LOW>; gpios = <&pioA 22 GPIO_ACTIVE_LOW>;
default-state = "off"; default-state = "off";
}; };
lora { led-lora {
label = "gatwick:orange:lora"; label = "gatwick:orange:lora";
gpios = <&pioA 26 GPIO_ACTIVE_LOW>; gpios = <&pioA 26 GPIO_ACTIVE_LOW>;
default-state = "off"; default-state = "off";
}; };
blank { led-blank {
label = "gatwick:green:blank"; label = "gatwick:green:blank";
gpios = <&pioA 24 GPIO_ACTIVE_LOW>; gpios = <&pioA 24 GPIO_ACTIVE_LOW>;
default-state = "off"; default-state = "off";
}; };
user { led-user {
label = "gatwick:yellow:user"; label = "gatwick:yellow:user";
gpios = <&pioA 12 GPIO_ACTIVE_LOW>; gpios = <&pioA 12 GPIO_ACTIVE_LOW>;
default-state = "off"; default-state = "off";
......
...@@ -498,17 +498,17 @@ leds { ...@@ -498,17 +498,17 @@ leds {
pinctrl-0 = <&pinctrl_led_gpio_default>; pinctrl-0 = <&pinctrl_led_gpio_default>;
status = "okay"; /* Conflict with pwm0. */ status = "okay"; /* Conflict with pwm0. */
red { led-red {
label = "red"; label = "red";
gpios = <&pioA PIN_PA10 GPIO_ACTIVE_HIGH>; gpios = <&pioA PIN_PA10 GPIO_ACTIVE_HIGH>;
}; };
green { led-green {
label = "green"; label = "green";
gpios = <&pioA PIN_PB1 GPIO_ACTIVE_HIGH>; gpios = <&pioA PIN_PB1 GPIO_ACTIVE_HIGH>;
}; };
blue { led-blue {
label = "blue"; label = "blue";
gpios = <&pioA PIN_PA31 GPIO_ACTIVE_HIGH>; gpios = <&pioA PIN_PA31 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "heartbeat"; linux,default-trigger = "heartbeat";
......
...@@ -46,17 +46,17 @@ leds { ...@@ -46,17 +46,17 @@ leds {
pinctrl-0 = <&pinctrl_led_gpio_default>; pinctrl-0 = <&pinctrl_led_gpio_default>;
status = "okay"; status = "okay";
red { led-red {
label = "red"; label = "red";
gpios = <&pioA PIN_PA6 GPIO_ACTIVE_HIGH>; gpios = <&pioA PIN_PA6 GPIO_ACTIVE_HIGH>;
}; };
green { led-green {
label = "green"; label = "green";
gpios = <&pioA PIN_PA7 GPIO_ACTIVE_HIGH>; gpios = <&pioA PIN_PA7 GPIO_ACTIVE_HIGH>;
}; };
blue { led-blue {
label = "blue"; label = "blue";
gpios = <&pioA PIN_PA8 GPIO_ACTIVE_HIGH>; gpios = <&pioA PIN_PA8 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "heartbeat"; linux,default-trigger = "heartbeat";
......
...@@ -62,17 +62,17 @@ leds { ...@@ -62,17 +62,17 @@ leds {
pinctrl-0 = <&pinctrl_led_gpio_default>; pinctrl-0 = <&pinctrl_led_gpio_default>;
status = "okay"; /* conflict with pwm0 */ status = "okay"; /* conflict with pwm0 */
red { led-red {
label = "red"; label = "red";
gpios = <&pioA PIN_PB0 GPIO_ACTIVE_HIGH>; gpios = <&pioA PIN_PB0 GPIO_ACTIVE_HIGH>;
}; };
green { led-green {
label = "green"; label = "green";
gpios = <&pioA PIN_PB1 GPIO_ACTIVE_HIGH>; gpios = <&pioA PIN_PB1 GPIO_ACTIVE_HIGH>;
}; };
blue { led-blue {
label = "blue"; label = "blue";
gpios = <&pioA PIN_PA31 GPIO_ACTIVE_HIGH>; gpios = <&pioA PIN_PA31 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "heartbeat"; linux,default-trigger = "heartbeat";
......
...@@ -416,17 +416,17 @@ leds { ...@@ -416,17 +416,17 @@ leds {
pinctrl-0 = <&pinctrl_led_gpio_default>; pinctrl-0 = <&pinctrl_led_gpio_default>;
status = "okay"; status = "okay";
red { led-red {
label = "red"; label = "red";
gpios = <&pioA PIN_PB10 GPIO_ACTIVE_HIGH>; gpios = <&pioA PIN_PB10 GPIO_ACTIVE_HIGH>;
}; };
green { led-green {
label = "green"; label = "green";
gpios = <&pioA PIN_PB8 GPIO_ACTIVE_HIGH>; gpios = <&pioA PIN_PB8 GPIO_ACTIVE_HIGH>;
}; };
blue { led-blue {
label = "blue"; label = "blue";
gpios = <&pioA PIN_PB6 GPIO_ACTIVE_HIGH>; gpios = <&pioA PIN_PB6 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "heartbeat"; linux,default-trigger = "heartbeat";
......
...@@ -725,18 +725,18 @@ leds { ...@@ -725,18 +725,18 @@ leds {
pinctrl-0 = <&pinctrl_led_gpio_default>; pinctrl-0 = <&pinctrl_led_gpio_default>;
status = "okay"; /* conflict with pwm0 */ status = "okay"; /* conflict with pwm0 */
red { led-red {
label = "red"; label = "red";
gpios = <&pioA PIN_PB6 GPIO_ACTIVE_LOW>; gpios = <&pioA PIN_PB6 GPIO_ACTIVE_LOW>;
}; };
green { led-green {
label = "green"; label = "green";
gpios = <&pioA PIN_PB5 GPIO_ACTIVE_LOW>; gpios = <&pioA PIN_PB5 GPIO_ACTIVE_LOW>;
}; };
blue { led-blue {
label = "blue"; label = "blue";
gpios = <&pioA PIN_PB0 GPIO_ACTIVE_LOW>; gpios = <&pioA PIN_PB0 GPIO_ACTIVE_LOW>;
linux,default-trigger = "heartbeat"; linux,default-trigger = "heartbeat";
......
...@@ -392,13 +392,13 @@ leds { ...@@ -392,13 +392,13 @@ leds {
pinctrl-0 = <&pinctrl_gpio_leds>; pinctrl-0 = <&pinctrl_gpio_leds>;
status = "okay"; status = "okay";
d2 { led-d2 {
label = "d2"; label = "d2";
gpios = <&pioE 23 GPIO_ACTIVE_LOW>; /* PE23, conflicts with A23, CTS2 */ gpios = <&pioE 23 GPIO_ACTIVE_LOW>; /* PE23, conflicts with A23, CTS2 */
linux,default-trigger = "heartbeat"; linux,default-trigger = "heartbeat";
}; };
d3 { led-d3 {
label = "d3"; /* Conflict with EBI CS0, USART2 CTS. */ label = "d3"; /* Conflict with EBI CS0, USART2 CTS. */
gpios = <&pioE 24 GPIO_ACTIVE_HIGH>; gpios = <&pioE 24 GPIO_ACTIVE_HIGH>;
}; };
......
...@@ -115,19 +115,19 @@ leds { ...@@ -115,19 +115,19 @@ leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
status = "okay"; status = "okay";
user1 { led-user1 {
label = "user1"; label = "user1";
gpios = <&pioD 28 GPIO_ACTIVE_HIGH>; gpios = <&pioD 28 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "heartbeat"; linux,default-trigger = "heartbeat";
}; };
user2 { led-user2 {
label = "user2"; label = "user2";
gpios = <&pioD 29 GPIO_ACTIVE_HIGH>; gpios = <&pioD 29 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "heartbeat"; linux,default-trigger = "heartbeat";
}; };
user3 { led-user3 {
label = "user3"; label = "user3";
gpios = <&pioD 30 GPIO_ACTIVE_HIGH>; gpios = <&pioD 30 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "heartbeat"; linux,default-trigger = "heartbeat";
......
...@@ -262,13 +262,13 @@ leds { ...@@ -262,13 +262,13 @@ leds {
pinctrl-0 = <&pinctrl_gpio_leds>; pinctrl-0 = <&pinctrl_gpio_leds>;
status = "okay"; status = "okay";
d8 { led-d8 {
label = "d8"; label = "d8";
gpios = <&pioD 30 GPIO_ACTIVE_HIGH>; gpios = <&pioD 30 GPIO_ACTIVE_HIGH>;
default-state = "on"; default-state = "on";
}; };
d10 { led-d10 {
label = "d10"; label = "d10";
gpios = <&pioE 15 GPIO_ACTIVE_LOW>; gpios = <&pioE 15 GPIO_ACTIVE_LOW>;
linux,default-trigger = "heartbeat"; linux,default-trigger = "heartbeat";
......
...@@ -287,18 +287,18 @@ leds { ...@@ -287,18 +287,18 @@ leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
status = "okay"; status = "okay";
d8 { led-d8 {
label = "d8"; label = "d8";
/* PE28, conflicts with usart4 rts pin */ /* PE28, conflicts with usart4 rts pin */
gpios = <&pioE 28 GPIO_ACTIVE_LOW>; gpios = <&pioE 28 GPIO_ACTIVE_LOW>;
}; };
d9 { led-d9 {
label = "d9"; label = "d9";
gpios = <&pioE 9 GPIO_ACTIVE_HIGH>; gpios = <&pioE 9 GPIO_ACTIVE_HIGH>;
}; };
d10 { led-d10 {
label = "d10"; label = "d10";
gpios = <&pioE 8 GPIO_ACTIVE_LOW>; gpios = <&pioE 8 GPIO_ACTIVE_LOW>;
linux,default-trigger = "heartbeat"; linux,default-trigger = "heartbeat";
......
...@@ -106,35 +106,35 @@ envelope-detector-mux { ...@@ -106,35 +106,35 @@ envelope-detector-mux {
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
ch1-red { led-ch1-red {
label = "ch-1:red"; label = "ch-1:red";
gpios = <&pioA 23 GPIO_ACTIVE_LOW>; gpios = <&pioA 23 GPIO_ACTIVE_LOW>;
}; };
ch1-green { led-ch1-green {
label = "ch-1:green"; label = "ch-1:green";
gpios = <&pioA 22 GPIO_ACTIVE_LOW>; gpios = <&pioA 22 GPIO_ACTIVE_LOW>;
}; };
ch2-red { led-ch2-red {
label = "ch-2:red"; label = "ch-2:red";
gpios = <&pioA 21 GPIO_ACTIVE_LOW>; gpios = <&pioA 21 GPIO_ACTIVE_LOW>;
}; };
ch2-green { led-ch2-green {
label = "ch-2:green"; label = "ch-2:green";
gpios = <&pioA 20 GPIO_ACTIVE_LOW>; gpios = <&pioA 20 GPIO_ACTIVE_LOW>;
}; };
data-red { led-data-red {
label = "data:red"; label = "data:red";
gpios = <&pioA 19 GPIO_ACTIVE_LOW>; gpios = <&pioA 19 GPIO_ACTIVE_LOW>;
}; };
data-green { led-data-green {
label = "data:green"; label = "data:green";
gpios = <&pioA 18 GPIO_ACTIVE_LOW>; gpios = <&pioA 18 GPIO_ACTIVE_LOW>;
}; };
alarm-red { led-alarm-red {
label = "alarm:red"; label = "alarm:red";
gpios = <&pioA 17 GPIO_ACTIVE_LOW>; gpios = <&pioA 17 GPIO_ACTIVE_LOW>;
}; };
alarm-green { led-alarm-green {
label = "alarm:green"; label = "alarm:green";
gpios = <&pioA 16 GPIO_ACTIVE_LOW>; gpios = <&pioA 16 GPIO_ACTIVE_LOW>;
}; };
......
...@@ -40,7 +40,7 @@ macb1: ethernet@f802c000 { ...@@ -40,7 +40,7 @@ macb1: ethernet@f802c000 {
}; };
leds { leds {
d3 { led-d3 {
label = "d3"; label = "d3";
gpios = <&pioE 24 GPIO_ACTIVE_HIGH>; gpios = <&pioE 24 GPIO_ACTIVE_HIGH>;
}; };
......
...@@ -50,7 +50,7 @@ macb0: ethernet@f0028000 { ...@@ -50,7 +50,7 @@ macb0: ethernet@f0028000 {
}; };
leds { leds {
d3 { led-d3 {
label = "d3"; label = "d3";
gpios = <&pioE 24 GPIO_ACTIVE_HIGH>; gpios = <&pioE 24 GPIO_ACTIVE_HIGH>;
}; };
......
...@@ -130,7 +130,7 @@ rootfs@800000 { ...@@ -130,7 +130,7 @@ rootfs@800000 {
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
d2 { led-d2 {
label = "d2"; label = "d2";
gpios = <&pioE 25 GPIO_ACTIVE_LOW>; /* PE25, conflicts with A25, RXD2 */ gpios = <&pioE 25 GPIO_ACTIVE_LOW>; /* PE25, conflicts with A25, RXD2 */
linux,default-trigger = "heartbeat"; linux,default-trigger = "heartbeat";
......
...@@ -184,7 +184,7 @@ rootfs@800000 { ...@@ -184,7 +184,7 @@ rootfs@800000 {
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
d2 { led-d2 {
label = "d2"; label = "d2";
gpios = <&pioE 25 GPIO_ACTIVE_LOW>; gpios = <&pioE 25 GPIO_ACTIVE_LOW>;
linux,default-trigger = "heartbeat"; linux,default-trigger = "heartbeat";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment