Now the ttyTHS2 shows up. But after the device tree modification my GPIO pins doesn’t work anymore. Before the modification the GPIO pins on J21 (pin 18,29,31,33,37) worked.
The only modification done to the device tree was
Search for “serial@c280000” where it is a block of code and not just a single line…
Yes, I was able to control them via sys node before the device tree build. After the build, the pins do not display a voltage when high but value in sys node is given as 1.
after flash the new dtb file, I got these info:
[ 0.271204] gpiochip_add_data: registered GPIOs 448 to 511 on device: tegra-gpio-aon
[ 0.316698] gpiochip_add_data: registered GPIOs 256 to 447 on device: tegra-gpio
[ 0.350599] gpiochip_add_data: registered GPIOs 240 to 255 on device: tca9539
[ 0.352499] gpiochip_add_data: registered GPIOs 224 to 239 on device: tca9539
[ 0.373340] gpiochip_add_data: registered GPIOs 216 to 223 on device: max77620-gpio
but before the flashing, the gpio pin number info is :
[ 0.271204] gpiochip_add_data: registered GPIOs 320 to 511 on device: tegra-gpio
[ 0.316698] gpiochip_add_data: registered GPIOs 256 to 319 on device: tegra-gpio-aon
[ 0.350599] gpiochip_add_data: registered GPIOs 240 to 255 on device: tca9539
[ 0.352499] gpiochip_add_data: registered GPIOs 224 to 239 on device: tca9539
[ 0.373340] gpiochip_add_data: registered GPIOs 216 to 223 on device: max77620-gpio