How to config gpio07 as gpio


dear sir,
I using Xaiver NX mudule on customer board,which is working fine ont NANO,but when i config gpio07,i got the follow error
root@zalend-desktop:/sys/class/gpio# echo 136 > export
bash: echo: write error: Invalid argument

i have property the gpios property on the rt5659
i2c@31e0000 {
rt5659.1-001a@1a {
/delete-property/ gpios;

	i2c@3 {
		rt5659.12-001a@1a {
			/delete-property/ gpios;


my jetpack version is JetPack_4.4_DP_Linux_DP_JETSON_XAVIER_NX

hello dgw_1985,

you should access Jetson Xavier NX Pinmux Table via download center, checking the custom usage and pin numbers.
you may also check from kernel init messages, there’s offset for the GPIOs.
for example,

[    0.767975] gpiochip_setup_dev: registered GPIOs 288 to 511 on device: gpiochip0 (tegra-gpio)
[    0.777154] gpiochip_setup_dev: registered GPIOs 248 to 287 on device: gpiochip1 (tegra-gpio-aon)
[    0.918116] gpiochip_setup_dev: registered GPIOs 240 to 247 on device: gpiochip2 (max77620-gpio)

here’s documentation GPIO Changes, for an example of gpio number calculation.