File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
arch/arm64/boot/dts/rockchip Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change 3
3
/dts-v1/;
4
4
5
5
#include <dt-bindings/gpio/gpio.h>
6
+ #include <dt-bindings/leds/common.h>
6
7
#include "rk3588.dtsi"
7
8
8
9
/ {
37
38
pinctrl-0 = <&hp_detect>;
38
39
};
39
40
41
+ leds {
42
+ compatible = "gpio-leds";
43
+ pinctrl-names = "default";
44
+ pinctrl-0 = <&led_rgb_b>;
45
+
46
+ led_rgb_b {
47
+ function = LED_FUNCTION_STATUS;
48
+ color = <LED_COLOR_ID_BLUE>;
49
+ gpios = <&gpio0 RK_PB7 GPIO_ACTIVE_HIGH>;
50
+ linux,default-trigger = "heartbeat";
51
+ };
52
+ };
53
+
40
54
fan: pwm-fan {
41
55
compatible = "pwm-fan";
42
56
cooling-levels = <0 95 145 195 255>;
285
299
};
286
300
};
287
301
302
+ leds {
303
+ led_rgb_b: led-rgb-b {
304
+ rockchip,pins = <0 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>;
305
+ };
306
+ };
307
+
288
308
sound {
289
309
hp_detect: hp-detect {
290
310
rockchip,pins = <1 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>;
You can’t perform that action at this time.
0 commit comments