VIM4 redefind upgrade mode

Which system do you use? Android, Ubuntu, OOWOW or others?

**Delete this line and post your answer here.**

Which version of system do you use? Please provide the version of the system here:

**Delete this line and post your answer here.**

Please describe your issue below:

**Delete this line and post your answer here.**

Post a console log of your issue below:


**Delete this line and post your log here.**

I learned that VIM4 uses three buttons, FUNCTION, RESET, and POWER_OFF, to set different modes. My question now is, how can I redefine the functionality of the buttons based on these three buttons.

Which system you used? Here is the explanation of Ubuntu.

RESET - Hardware reset key, you can’t change it.
FUNC - The ADC keypad, you can change the function here: common_drivers/arch/arm64/boot/dts/amlogic/kvim4n.dts at khadas-vims-5.15.y · khadas/common_drivers · GitHub
POWER - You can change the function here: common_drivers/arch/arm64/boot/dts/amlogic/kvim4n.dts at khadas-vims-5.15.y · khadas/common_drivers · GitHub