[3/3] arm64: dts: allwinner: sun60i-a733-cubie-a7z: add the user LED

Message ID 20261111134919.90264-4-vinicius.eduardo.pedrosa@gmail.com (mailing list archive)
State New
Headers
Series arm64: dts: allwinner: add Radxa Cubie A7Z support |

Commit Message

Vinicius Pedrosa Nov. 11, 2026, 1:49 p.m. UTC
Describe the green user LED on the Radxa Cubie A7Z. It is driven high
by PM2 and uses the heartbeat trigger by default.

Signed-off-by: Vinicius Pedrosa <vinicius.eduardo.pedrosa@gmail.com>
---
 .../boot/dts/allwinner/sun60i-a733-cubie-a7z.dts     | 12 ++++++++++++
 1 file changed, 12 insertions(+)
  

Comments

Krzysztof Kozlowski Nov. 13, 2026, 11:12 a.m. UTC | #1
On Wed, Nov 11, 2026 at 10:49:17AM -0300, Vinicius Pedrosa wrote:
> Describe the green user LED on the Radxa Cubie A7Z. It is driven high
> by PM2 and uses the heartbeat trigger by default.
> 
> Signed-off-by: Vinicius Pedrosa <vinicius.eduardo.pedrosa@gmail.com>
> ---
>  .../boot/dts/allwinner/sun60i-a733-cubie-a7z.dts     | 12 ++++++++++++
>  1 file changed, 12 insertions(+)
>

This should be squashed, you just added the file in previous patch.

Best regards,
Krzysztof
  

Patch

diff --git a/arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7z.dts b/arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7z.dts
index ab3d3d70f9ff..5dee2084906c 100644
--- a/arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7z.dts
+++ b/arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7z.dts
@@ -4,6 +4,7 @@ 
 #include "sun60i-a733.dtsi"
 
 #include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/leds/common.h>
 
 / {
 	model = "Radxa Cubie A7Z";
@@ -18,6 +19,17 @@  chosen {
 		stdout-path = "serial0:115200n8";
 	};
 
+	leds {
+		compatible = "gpio-leds";
+
+		led-0 {
+			function = LED_FUNCTION_HEARTBEAT;
+			color = <LED_COLOR_ID_GREEN>;
+			gpios = <&r_pio 1 2 GPIO_ACTIVE_HIGH>; /* PM2 */
+			linux,default-trigger = "heartbeat";
+		};
+	};
+
 	reg_ps: regulator-system-power {
 		compatible = "regulator-fixed";
 		regulator-name = "ps";