Skip to content

Commit

Permalink
ARM: dts: armada388-helios4: assign pinctrl to LEDs
Browse files Browse the repository at this point in the history
[ Upstream commit e011c90 ]

Split up the pins to match earlier definitions. Allows LEDs to flash
properly.

Fixes: ced8025 ("ARM: dts: armada388-helios4")

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
neheb authored and gregkh committed Mar 4, 2021
1 parent 6b86cbc commit 3d3098c
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions arch/arm/boot/dts/armada-388-helios4.dts
Expand Up @@ -70,6 +70,9 @@

system-leds {
compatible = "gpio-leds";
pinctrl-names = "default";
pinctrl-0 = <&helios_system_led_pins>;

status-led {
label = "helios4:green:status";
gpios = <&gpio0 24 GPIO_ACTIVE_LOW>;
Expand All @@ -86,6 +89,9 @@

io-leds {
compatible = "gpio-leds";
pinctrl-names = "default";
pinctrl-0 = <&helios_io_led_pins>;

sata1-led {
label = "helios4:green:ata1";
gpios = <&gpio1 17 GPIO_ACTIVE_LOW>;
Expand Down Expand Up @@ -291,9 +297,12 @@
"mpp39", "mpp40";
marvell,function = "sd0";
};
helios_led_pins: helios-led-pins {
marvell,pins = "mpp24", "mpp25",
"mpp49", "mpp50",
helios_system_led_pins: helios-system-led-pins {
marvell,pins = "mpp24", "mpp25";
marvell,function = "gpio";
};
helios_io_led_pins: helios-io-led-pins {
marvell,pins = "mpp49", "mpp50",
"mpp52", "mpp53",
"mpp54";
marvell,function = "gpio";
Expand Down

0 comments on commit 3d3098c

Please sign in to comment.