ARM Sunxi Platform Development
 help / color / mirror / Atom feed
* [PATCH v2 0/3] sunxi: add "fake" FEL button feature
@ 2025-04-17  0:05 Andre Przywara
  2025-04-17  0:05 ` [PATCH v2 1/3] sunxi: fix return_to_fel() prototype Andre Przywara
                   ` (3 more replies)
  0 siblings, 4 replies; 16+ messages in thread
From: Andre Przywara @ 2025-04-17  0:05 UTC (permalink / raw)
  To: Jagan Teki, u-boot
  Cc: Yixun Lan, Tom Rini, Jernej Skrabec, Samuel Holland, linux-sunxi

Some boards with Allwinner SoCs feature a "FEL" key, sometimes also
labelled "uboot", which allows to easily enter the BootROM FEL mode, when
pressed upon power-on or reset. This allows to access the USB-OTG boot
protocol, for convenient access to memory and uploading code.

Add a software emulation of this functionality for boards without a button
connected to this special SoC pin, to give easy FEL access to more
boards. Any GPIO can be used, as long as the button uses active-low
logic.

This is used on the X96 Mate TV box, where the hidden "update" button is
actually just some GPIO, checked by the vendor firmware.

Please have a look!

Cheers,
Andre

Changelog v1 .. v2:
- add patch to fix return_to_fel() prototype
- document signal needs to be active-low
- activate internal pull-up resistors
- add patch to activate button on the X96 Mate TV box

Andre Przywara (3):
  sunxi: fix return_to_fel() prototype
  sunxi: add "fake" FEL pin support
  sunxi: x96_mate: Add "fake" FEL key definition

 arch/arm/include/asm/arch-sunxi/sys_proto.h |  4 +--
 arch/arm/mach-sunxi/Kconfig                 | 10 +++++++
 arch/arm/mach-sunxi/board.c                 | 31 +++++++++++++++++++++
 configs/x96_mate_defconfig                  |  1 +
 4 files changed, 44 insertions(+), 2 deletions(-)

-- 
2.46.3


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2025-05-15 15:13 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-17  0:05 [PATCH v2 0/3] sunxi: add "fake" FEL button feature Andre Przywara
2025-04-17  0:05 ` [PATCH v2 1/3] sunxi: fix return_to_fel() prototype Andre Przywara
2025-04-17  0:05 ` [PATCH v2 2/3] sunxi: add "fake" FEL pin support Andre Przywara
2025-04-17  3:39   ` Yixun Lan
2025-04-17  4:08     ` Yixun Lan
2025-04-21 21:42     ` Andre Przywara
2025-04-18 11:28   ` Quentin Schulz
2025-04-18 22:51     ` Yixun Lan
2025-04-21 21:29     ` Andre Przywara
2025-04-22 10:49       ` Quentin Schulz
2025-04-22 12:11         ` Andre Przywara
2025-04-22 14:30           ` Quentin Schulz
2025-05-12 12:39             ` Andre Przywara
2025-05-15 15:13               ` Quentin Schulz
2025-04-17  0:05 ` [PATCH v2 3/3] sunxi: x96_mate: Add "fake" FEL key definition Andre Przywara
2025-04-17  4:10 ` [PATCH v2 0/3] sunxi: add "fake" FEL button feature Yixun Lan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox