diff mbox series

[1/2] arm64: dts: rockchip: enable work led on rk3568-evb1

Message ID 20220222175004.1308990-1-michael.riesch@wolfvision.net (mailing list archive)
State New, archived
Headers show
Series [1/2] arm64: dts: rockchip: enable work led on rk3568-evb1 | expand

Commit Message

Michael Riesch Feb. 22, 2022, 5:50 p.m. UTC
Enable the blue work LED on the Rockchip RK3568 EVB1.

Signed-off-by: Michael Riesch <michael.riesch@wolfvision.net>
---
 .../boot/dts/rockchip/rk3568-evb1-v10.dts      | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

Comments

Heiko Stuebner Feb. 22, 2022, 11:27 p.m. UTC | #1
On Tue, 22 Feb 2022 18:50:03 +0100, Michael Riesch wrote:
> Enable the blue work LED on the Rockchip RK3568 EVB1.

Applied, thanks!

[1/2] arm64: dts: rockchip: enable work led on rk3568-evb1
      commit: e2bcb9477e48ff7c10d0d3508cd16f0a10e81dd8

- Renamed the node to led-0 (according to binding)
- dropped label (deprecated) and instead moved to
  color and function properties (to try them out)


Best regards,
Heiko Stuebner Feb. 23, 2022, 11:44 p.m. UTC | #2
On Tue, 22 Feb 2022 18:50:03 +0100, Michael Riesch wrote:
> Enable the blue work LED on the Rockchip RK3568 EVB1.

Applied, thanks!

[2/2] arm64: dts: rockchip: enable rk809 audio codec on the rk3568 evb1
      commit: 3e4c629ca680785af2cd6bfd688e958b03db921e

Best regards,
diff mbox series

Patch

diff --git a/arch/arm64/boot/dts/rockchip/rk3568-evb1-v10.dts b/arch/arm64/boot/dts/rockchip/rk3568-evb1-v10.dts
index 39c495ff0157..aaf7b4bed24b 100644
--- a/arch/arm64/boot/dts/rockchip/rk3568-evb1-v10.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3568-evb1-v10.dts
@@ -33,6 +33,18 @@  dc_12v: dc-12v {
 		regulator-max-microvolt = <12000000>;
 	};
 
+	leds {
+		compatible = "gpio-leds";
+
+		led_work: led-work {
+			gpios = <&gpio0 RK_PC0 GPIO_ACTIVE_HIGH>;
+			label = "led_work";
+			linux,default-trigger = "heartbeat";
+			pinctrl-names = "default";
+			pinctrl-0 = <&led_work_en>;
+		};
+	};
+
 	vcc3v3_sys: vcc3v3-sys {
 		compatible = "regulator-fixed";
 		regulator-name = "vcc3v3_sys";
@@ -404,6 +416,12 @@  vcc3v3_lcd1_n_en: vcc3v3_lcd1_n_en {
 		};
 	};
 
+	leds {
+		led_work_en: led_work_en {
+			rockchip,pins = <0 RK_PC0 RK_FUNC_GPIO &pcfg_pull_none>;
+		};
+	};
+
 	pmic {
 		pmic_int: pmic_int {
 			rockchip,pins =