Controlling power sleep/wake-up over GPIO expansion header (or J508 Automation Header)

Dear @WayneWWW,
thanks for your continuous support.
1.I am new to Jetson Xavier platform but not to the kernel and DTS/DTB architecture nor pinmuxing, I just want to confirm the right process to get the needed GPIOs for the platform to be correctly configured with R32.3.1.
To clarify the files :

  • “/boot/dtb/tegra194-p2888-0001-p2822-0000.dtb” should be replaced by the compiled “tegra194-p2888-0001-p2822-0000.dtsi” to get the kernel using a new DTSI ? right ?

2.Hardware I/O configuration
To clarify the procedures for GPIO configuration (for instance I do need 7 analog inputs GPIOs and 2 PWM outputs GPIOs) :

  • I need to generate a new ‘*.cfg’ based on my configuration?
  • I then need to build the new DTB based on that configuration ?
  • Replace the /boot/dtb/ one ?

I read this thread : Xavier GPIO Output Enable - #4 by jchaves
but I am confused on the right procedure.
All the best, Xavier.