On the TX2 dev kit, the I/Os on gpio_i2c_0_74 (I2C_GP1 addr:0x74) were used for external device control like M.2, LCD.
By Default,
TX2 has two TCA on i2c0 at address 0x74 and 0x77.
you would need to make sure that the new TCA they added is having a new address or on a different i2c bus,
for example,
Thank you JerryChang,
In my case I use i2c0 and tca9539 i2caddr is 0x74. When system startup I can control all the tca9539 pins in shell:
i2cset -f -y 0 0x74 0x6 0xXX
tca9539 is successfully probed:
[ 0.519084] gpiochip_setup_dev: registered GPIOs 240 to 255 on device: gpiochip2 (tca9539)
The problem that bothers me is How to control tca9539 pins(like P04 P14…) in kernel driver code.
I want to use some of those pins as reset and standy signal.
bellow is some of my modify but failed to get vaild gpio of tca9539: