[SRU][I/riscv][PATCH 2/6] riscv: sifive: unmatched: add D2 RGB LED

Dimitri John Ledkov dimitri.ledkov at canonical.com
Tue Sep 7 00:39:28 UTC 2021


From: David Abdurachmanov <david.abdurachmanov at sifive.com>

Signed-off-by: David Abdurachmanov <david.abdurachmanov at sifive.com>
BugLink: https://bugs.launchpad.net/bugs/1942806
Signed-off-by: Dimitri John Ledkov <dimitri.ledkov at canonical.com>
---
 .../boot/dts/sifive/hifive-unmatched-a00.dts  | 26 ++++++++++++++++++-
 1 file changed, 25 insertions(+), 1 deletion(-)

diff --git a/arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts b/arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts
index 8461b33d1f..56e6d8e8fe 100644
--- a/arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts
+++ b/arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts
@@ -33,13 +33,37 @@ soc {
 
 	pwmleds {
 		compatible = "pwm-leds";
-		d12 {
+		green-d12 {
 			label = "green:d12";
 			pwms = <&pwm0 0 7812500 PWM_POLARITY_INVERTED>;
 			active-low = <1>;
 			max-brightness = <255>;
 			linux,default-trigger = "none";
 		};
+
+		green-d2 {
+			label = "green:d2";
+			pwms = <&pwm0 1 7812500 PWM_POLARITY_INVERTED>;
+			active-low = <1>;
+			max-brightness = <255>;
+			linux,default-trigger = "none";
+		};
+
+		red-d2 {
+			label = "red:d2";
+			pwms = <&pwm0 2 7812500 PWM_POLARITY_INVERTED>;
+			active-low = <1>;
+			max-brightness = <255>;
+			linux,default-trigger = "none";
+		};
+
+		blue-d2 {
+			label = "blue:d2";
+			pwms = <&pwm0 3 7812500 PWM_POLARITY_INVERTED>;
+			active-low = <1>;
+			max-brightness = <255>;
+			linux,default-trigger = "none";
+		};
 	};
 
 	hfclk: hfclk {
-- 
2.30.2




More information about the kernel-team mailing list