Button MCU source code

Hello, we are designing our own Carrier board for Jetson Xavier NX.
NVIDIA EVK includes EFM8SB10F2G for Power Button functionality.
Since EFM8SB10F2G is not available can you provide a source code that can be implemented on another MCU?
Do you have a recommendation for an available replacement of EFM8SB10F2G?
Thanks in advance.