[SRU][I/riscv][PATCH 1/6] riscv: sifive: unmatched: add D12 PWM LED
Dimitri John Ledkov
dimitri.ledkov at canonical.com
Tue Sep 7 00:39:27 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>
---
arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts b/arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts
index e026f60af0..8461b33d1f 100644
--- a/arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts
+++ b/arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts
@@ -3,6 +3,7 @@
#include "fu740-c000.dtsi"
#include <dt-bindings/interrupt-controller/irq.h>
+#include <dt-bindings/pwm/pwm.h>
/* Clock frequency (in Hz) of the PCB crystal for rtcclk */
#define RTCCLK_FREQ 1000000
@@ -30,6 +31,17 @@ memory at 80000000 {
soc {
};
+ pwmleds {
+ compatible = "pwm-leds";
+ d12 {
+ label = "green:d12";
+ pwms = <&pwm0 0 7812500 PWM_POLARITY_INVERTED>;
+ active-low = <1>;
+ max-brightness = <255>;
+ linux,default-trigger = "none";
+ };
+ };
+
hfclk: hfclk {
#clock-cells = <0>;
compatible = "fixed-clock";
--
2.30.2
More information about the kernel-team
mailing list