Skip to content

Commit da57203

Browse files
tmn505gclement
authored andcommitted
arm64: dts: mcbin-singleshot: add heartbeat LED
With board revision 1.3, SolidRun moved the power LED to the middle of the board. In old place of power LED a GPIO controllable heartbeat LED was added. This commit only touches Single Shot variant, since only this variant is all revision 1.3. Reported-by: Alexandra Alth <alexandra@alth.de> Signed-off-by: Tomasz Maciej Nowak <tmn505@gmail.com> Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
1 parent 83afd0b commit da57203

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

‎arch/arm64/boot/dts/marvell/armada-8040-mcbin-singleshot.dts‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,28 @@
55
* Device Tree file for MACCHIATOBin Armada 8040 community board platform
66
*/
77

8+
#include <dt-bindings/leds/common.h>
9+
810
#include "armada-8040-mcbin.dtsi"
911

1012
/ {
1113
model = "Marvell 8040 MACCHIATOBin Single-shot";
1214
compatible = "marvell,armada8040-mcbin-singleshot",
1315
"marvell,armada8040-mcbin", "marvell,armada8040",
1416
"marvell,armada-ap806-quad", "marvell,armada-ap806";
17+
18+
leds {
19+
compatible = "gpio-leds";
20+
pinctrl-0 = <&cp0_led18_pins>;
21+
pinctrl-names = "default";
22+
23+
led18 {
24+
gpios = <&cp0_gpio2 1 GPIO_ACTIVE_LOW>;
25+
function = LED_FUNCTION_HEARTBEAT;
26+
color = <LED_COLOR_ID_GREEN>;
27+
linux,default-trigger = "heartbeat";
28+
};
29+
};
1530
};
1631

1732
&cp0_eth0 {
@@ -27,3 +42,10 @@
2742
managed = "in-band-status";
2843
sfp = <&sfp_eth1>;
2944
};
45+
46+
&cp0_pinctrl {
47+
cp0_led18_pins: led18-pins {
48+
marvell,pins = "mpp33";
49+
marvell,function = "gpio";
50+
};
51+
};

0 commit comments

Comments
 (0)