Skip to content

Commit 1ec99df

Browse files
E ShattowConchuOD
authored andcommitted
riscv: dts: starfive: jh7110-common: add status power led node
Add status power led node for StarFive VisionFive2 and variant boards. Signed-off-by: E Shattow <[email protected]> Signed-off-by: Conor Dooley <[email protected]>
1 parent 2a84cb3 commit 1ec99df

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

arch/riscv/boot/dts/starfive/jh7110-common.dtsi

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include "jh7110.dtsi"
99
#include "jh7110-pinfunc.h"
1010
#include <dt-bindings/gpio/gpio.h>
11+
#include <dt-bindings/leds/common.h>
1112
#include <dt-bindings/pinctrl/starfive,jh7110-pinctrl.h>
1213

1314
/ {
@@ -38,6 +39,14 @@
3839
priority = <224>;
3940
};
4041

42+
leds {
43+
compatible = "gpio-leds";
44+
45+
led_status_power: led-0 {
46+
gpios = <&aongpio 3 GPIO_ACTIVE_HIGH>;
47+
};
48+
};
49+
4150
pwmdac_codec: audio-codec {
4251
compatible = "linux,spdif-dit";
4352
#sound-dai-cells = <0>;

0 commit comments

Comments
 (0)