Skip to content

mb/protectli/vault_ehl: Enable RST1 button signal GPIO input#894

Open
philipanda wants to merge 1 commit into
dasharofrom
vp2420-reset-btn
Open

mb/protectli/vault_ehl: Enable RST1 button signal GPIO input#894
philipanda wants to merge 1 commit into
dasharofrom
vp2420-reset-btn

Conversation

@philipanda
Copy link
Copy Markdown
Contributor

The button sits on a multi-function pin of the IT8613E. Enabled the chip's GPIO block in devicetree.cb, muxed the pin to GP12 (away from PCIRST1#), and turned on its internal pull-up to make the signal go back to 1 after the button is released.

Upstream-Status: Inappropriate [Dasharo downstream]

The button sits on a multi-function pin of the IT8613E.
Enabled the chip's GPIO block in devicetree.cb, muxed
the pin to GP12 (away from PCIRST1#), and turned on
its internal pull-up to make the signal go back to 1
after the button is released.

Upstream-Status: Inappropriate [Dasharo downstream]
Signed-off-by: Filip Gołaś <filip.golas@3mdeb.com>
@philipanda philipanda requested review from filipleple and mkopec May 19, 2026 15:19
@philipanda
Copy link
Copy Markdown
Contributor Author

philipanda commented May 19, 2026

Test: Release, Press, Release, Press:

root@DasharoToolsSuite:~# dd if=/dev/port bs=1 skip=$((0xa00)) count=1 2>/dev/null | hexdump
0000000 0004                                   
0000001
root@DasharoToolsSuite:~# dd if=/dev/port bs=1 skip=$((0xa00)) count=1 2>/dev/null | hexdump
0000000 0000                                   
0000001
root@DasharoToolsSuite:~# dd if=/dev/port bs=1 skip=$((0xa00)) count=1 2>/dev/null | hexdump
0000000 0004                                   
0000001
root@DasharoToolsSuite:~# dd if=/dev/port bs=1 skip=$((0xa00)) count=1 2>/dev/null | hexdump
0000000 0000                                   
0000001
root@DasharoToolsSuite:~# 

Also works on zarhus-openwrt with https://github.com/zarhus/protectli-openwrt-factory-reset-service. The service requires a change to disable the path where it returns 1 for VP2420 as unsupported. Holding down the RST1 button for ~10s causes a reboot.

@philipanda philipanda closed this May 20, 2026
@philipanda philipanda deleted the vp2420-reset-btn branch May 20, 2026 06:28
@philipanda philipanda restored the vp2420-reset-btn branch May 20, 2026 11:24
@philipanda philipanda reopened this May 20, 2026
@philipanda
Copy link
Copy Markdown
Contributor Author

@mkopec restored

Copy link
Copy Markdown
Member

@mkopec mkopec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants