Re: [PATCH v3 10/13] arm64: dts: mediatek: mt7988a-bpi-r4: add gpio leds
From: AngeloGioacchino Del Regno
Date: Wed Jun 11 2025 - 05:38:11 EST
Il 08/06/25 23:14, Frank Wunderlich ha scritto:
From: Frank Wunderlich <frank-w@xxxxxxxxxxxxxxx>
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@xxxxxxxxxxxxx>