diff mbox series

[v1,1/2] MIPS: ath79: ar9331_dpt_module: update led nodes

Message ID 20200510060324.25134-1-o.rempel@pengutronix.de (mailing list archive)
State Mainlined
Commit 24ce659dcc02c21f8d6c0a7589c3320a4dfa8152
Headers show
Series [v1,1/2] MIPS: ath79: ar9331_dpt_module: update led nodes | expand

Commit Message

Oleksij Rempel May 10, 2020, 6:03 a.m. UTC
Fit led nodes to the latest naming schema.

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
---
 arch/mips/boot/dts/qca/ar9331_dpt_module.dts | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

Comments

Thomas Bogendoerfer May 15, 2020, 8:10 a.m. UTC | #1
On Sun, May 10, 2020 at 08:03:23AM +0200, Oleksij Rempel wrote:
> Fit led nodes to the latest naming schema.
> 
> Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
> ---
>  arch/mips/boot/dts/qca/ar9331_dpt_module.dts | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)

both patches applied to mips-next.

Thomas.
diff mbox series

Patch

diff --git a/arch/mips/boot/dts/qca/ar9331_dpt_module.dts b/arch/mips/boot/dts/qca/ar9331_dpt_module.dts
index 969d3384b0dd0..8be54465207a7 100644
--- a/arch/mips/boot/dts/qca/ar9331_dpt_module.dts
+++ b/arch/mips/boot/dts/qca/ar9331_dpt_module.dts
@@ -3,6 +3,7 @@ 
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 #include "ar9331.dtsi"
 
@@ -22,8 +23,9 @@  memory@0 {
 	leds {
 		compatible = "gpio-leds";
 
-		system {
-			label = "dpt-module:green:system";
+		led-0 {
+			function = LED_FUNCTION_STATUS;
+			color = <LED_COLOR_ID_GREEN>;
 			gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
 			default-state = "off";
 		};