Skip to contentSkip to conversation

arm64: dts: allwinner: beelink-gs1: Update LED power node

PATCH Superseded Clément Péron 1 participant 2 messages Oct 11, 2020

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: dts: allwinner: beelink-gs1: Update LED power node

Beelink GS1 LED trigger a warning when running dtbs_check.

Update the node with a valid pattern property.

Also add the function and the color of the LED and drop the label which is deprecated.

---
 arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts +4 -2
index 3f7ceeb1a767..f506d6fa8017 100644
@@ -7,6 +7,7 @@
 #include "sun50i-h6-cpu-opp.dtsi"
 
 #include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/leds/common.h>
 
 / {
 	model = "Beelink GS1";
@@ -43,8 +44,9 @@ ext_osc32k: ext_osc32k_clk {
 	leds {
 		compatible = "gpio-leds";
 
-		power {
-			label = "beelink:white:power";
+		led-0 {
+			function = LED_FUNCTION_POWER;
+			color = LED_COLOR_ID_WHITE;
 			gpios = <&r_pio 0 4 GPIO_ACTIVE_HIGH>; /* PL4 */
 			default-state = "on";
 		};
Signature · 1 line
2.25.1
#1 lore raw

Hi,

Quoted 26 lines · Clément Péron

Beelink GS1 LED trigger a warning when running dtbs_check.

Update the node with a valid pattern property.

Also add the function and the color of the LED and drop the label which is deprecated.

---
 arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts +1 -0
index 3f7ceeb1a767..f506d6fa8017 100644
@@ -7,6 +7,7 @@
 #include "sun50i-h6-cpu-opp.dtsi"
 
 #include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        model = "Beelink GS1";

arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts ext_osc32k: ext_osc32k_clk { · line 49

Quoted 8 lines
arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts +3 -2
@@ -43,8 +44,9 @@ ext_osc32k: ext_osc32k_clk {
        leds {
                compatible = "gpio-leds";
 
-               power {
-                       label = "beelink:white:power";
+               led-0 {
+                       function = LED_FUNCTION_POWER;
+                       color = LED_COLOR_ID_WHITE;

color = <LED_COLOR_ID_WHITE>;

Sorry, I will send a v2.

Clement

Quoted 6 lines
arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts +0 -1
                        gpios = <&r_pio 0 4 GPIO_ACTIVE_HIGH>; /* PL4 */
                        default-state = "on";
                };
--

2.25.1