File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed
arch/riscv/boot/dts/sifive Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change 4
4
#include "fu740-c000.dtsi"
5
5
#include <dt-bindings/gpio/gpio.h>
6
6
#include <dt-bindings/interrupt-controller/irq.h>
7
+ #include <dt-bindings/leds/common.h>
8
+ #include <dt-bindings/pwm/pwm.h>
7
9
8
10
/* Clock frequency (in Hz) of the PCB crystal for rtcclk */
9
11
#define RTCCLK_FREQ 1000000
44
46
compatible = "gpio-poweroff";
45
47
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
46
48
};
49
+
50
+ led-controller-1 {
51
+ compatible = "pwm-leds";
52
+
53
+ led-d12 {
54
+ pwms = <&pwm0 0 7812500 PWM_POLARITY_INVERTED>;
55
+ active-low;
56
+ color = <LED_COLOR_ID_GREEN>;
57
+ max-brightness = <255>;
58
+ label = "d12";
59
+ };
60
+ };
61
+
62
+ led-controller-2 {
63
+ compatible = "pwm-leds-multicolor";
64
+
65
+ multi-led {
66
+ color = <LED_COLOR_ID_RGB>;
67
+ max-brightness = <255>;
68
+ label = "d2";
69
+
70
+ led-red {
71
+ pwms = <&pwm0 2 7812500 PWM_POLARITY_INVERTED>;
72
+ active-low;
73
+ color = <LED_COLOR_ID_RED>;
74
+ };
75
+
76
+ led-green {
77
+ pwms = <&pwm0 1 7812500 PWM_POLARITY_INVERTED>;
78
+ active-low;
79
+ color = <LED_COLOR_ID_GREEN>;
80
+ };
81
+
82
+ led-blue {
83
+ pwms = <&pwm0 3 7812500 PWM_POLARITY_INVERTED>;
84
+ active-low;
85
+ color = <LED_COLOR_ID_BLUE>;
86
+ };
87
+ };
88
+ };
47
89
};
48
90
49
91
&uart0 {
You can’t perform that action at this time.
0 commit comments