Conversation
… DT node, clean up kernel config Co-authored-by: edtubbs <84785904+edtubbs@users.noreply.github.com>
Co-authored-by: edtubbs <84785904+edtubbs@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix reset button functionality in current branch
Fix reset button: configure logind to reboot on power key, remove vendor-only DT node
Feb 11, 2026
…3 buttons correctly Co-authored-by: edtubbs <84785904+edtubbs@users.noreply.github.com>
Copilot
AI
changed the title
Fix reset button: configure logind to reboot on power key, remove vendor-only DT node
Fix reset button: add rockchip,reset-mode to RK806 PMIC, correct 3-button hardware model
Feb 11, 2026
…l PMU restart) Co-authored-by: edtubbs <84785904+edtubbs@users.noreply.github.com>
Copilot
AI
changed the title
Fix reset button: add rockchip,reset-mode to RK806 PMIC, correct 3-button hardware model
fix: rockchip,reset-mode=0 for actual PMU restart on reset button press
Feb 12, 2026
…nanopc-t6.dtsi.patch Co-authored-by: edtubbs <84785904+edtubbs@users.noreply.github.com>
Copilot
AI
changed the title
fix: rockchip,reset-mode=0 for actual PMU restart on reset button press
Fix malformed patch hunk header in rk3588-nanopc-t6.dtsi.patch
Feb 12, 2026
Copilot
AI
changed the title
Fix malformed patch hunk header in rk3588-nanopc-t6.dtsi.patch
Fix NanoPC-T6 reset button: add MFD_RK8XX_SPI + PMIC reset-mode config
Feb 12, 2026
…king PMIC config Co-authored-by: edtubbs <84785904+edtubbs@users.noreply.github.com>
Copilot
AI
changed the title
Fix NanoPC-T6 reset button: add MFD_RK8XX_SPI + PMIC reset-mode config
Fix reset button: stop overriding U-Boot's working PMIC reset config
Feb 12, 2026
…eset-mode 2 Co-authored-by: edtubbs <84785904+edtubbs@users.noreply.github.com>
Copilot
AI
changed the title
Fix reset button: stop overriding U-Boot's working PMIC reset config
Fix NanoPC-T6 reset button: disable SLAVE_RESTART_FUN + use reset-mode 2
Feb 13, 2026
…ches directly in kernel override Co-authored-by: edtubbs <84785904+edtubbs@users.noreply.github.com>
Copilot
AI
changed the title
Fix NanoPC-T6 reset button: disable SLAVE_RESTART_FUN + use reset-mode 2
Fix NanoPC-T6 reset button: merge kernel config and apply patches directly in kernel override
Feb 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reset button works in U-Boot but stops working once the Linux kernel starts. After extensive iteration (7+ attempts), two Nix-level issues were identified that prevented kernel patches from taking effect reliably.
NanoPC-T6 button hardware (from schematic)
KEY_POWERviark805-pwrkeydriveradc-keysdriverChanges
structuredExtraConfigwas replaced, not merged — set-formoverride { structuredExtraConfig = ... }silently dropped nabam's base rockchip config (REGULATOR_RK808,GPIO_ROCKCHIP,SPI_ROCKCHIP, etc.). Switched to function-form override:Patches moved from
boot.kernelPatchesinto kernel override —boot.kernelPatchesrelies on the NixOS moduleapplyfunction to propagate via.extend. Including patches directly inkernelPatchesarg is more direct and surviveslib.mkForceonboot.kernelPackages.DTS patch adds
rockchip,reset-mode = <2>to configure PMIC reset behavior when RESETB is asserted.Kernel driver patch disables
SLAVE_RESTART_FUNinrk8xx-core.cpre-init — this multi-PMIC feature repurposes RESETB input on the single-PMIC NanoPC-T6.✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.