“don’t need to” seems to be a “must not” in our case. When the pinmux dtsi is added the kernel won’t boot with the default setting of the Excel sheet.
Does that mean I only need to add the xxx_gpio.dtsi file to the main dts file?
I have tried including either xxx-gpio.dtsi in main dts, or not including it, and then make the new kernel image and kernel dtb.
Ether way, the system can boot up normally now.
I have set some GPIO to output 1/output 0 in the pinmux excelsheet.
After boot up, I cat /sys/kernel/debug/gpio, but I do not see any change of the GPIO state in these files.
in which file should I verify that the GPIO state has changed(and my new pinmux and gpio settings has taken effect)?
You could refer to this website and use the pin name to search in the spreadsheet.
The spreadsheet will point out the GPIO pins. For example, your screenshot showed GPIO01 is GPIO pin Q,05.