[PATCH v3 10/13] arm64: dts: mediatek: mt7988a-bpi-r4: add gpio leds
AngeloGioacchino Del Regno
angelogioacchino.delregno at collabora.com
Wed Jun 11 02:33:40 PDT 2025
Il 08/06/25 23:14, Frank Wunderlich ha scritto:
> From: Frank Wunderlich <frank-w at public-files.de>
>
> Bananapi R4 has a green and a blue led which can be switched by gpio.
> Green led is for running state so default on.
>
> Green led also shares pin with eeprom writeprotect where led off allows
> writing to eeprom.
This is extremely ugly from a hardware perspective and I'm sad to see such
a thing here.
Though, I don't see any other solution, so I can only give you an advice:
don't ever write to the eeprom from the kernel. Things will eventually go
south otherwise.
I would also advise to add a read-only property to the eeprom node.
Regardless (and sadly),
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno at collabora.com>
More information about the linux-arm-kernel
mailing list