I use a tca9539 io-expander as regulators and gpios.The driver file is ./drivers/gpio/gpio-pca953x.c. When I coding the devece tree,I don’t know how to name the gpio pins.
There are 16 gpio pins in tca9539.P00,P01,P02 … P07,P10,P11,P12 … P17
For example:
Could you control this group of gpio successfully?
We also went to use such gpio for development, but some gpio seems couldn’t use such like gpio1 ~ gpio3(we modify the device tree to aliases the gpio start from gpio400, so in our system the gpio mapping are gpio400 ~ gpio415)
When I control directly from command line as below, it shows message that “Device or resource busy”
Did it means that TX1 also use some of the gpio?(I just know the HDMI power is control by this group of gpio)
echo 401 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio401/direction
I found the reason why the “Device or resource busy” issue happen.
When I check the device tree file “tegra210-jetson-cv-power-tree-p2597-2180-a00.dtsi”.
Some gpio such as #1/#2/#3/#4/#7/#9/#12/#13 are used as fan or other regulator function.
I didn’t find the circuit design on my carrier board.
What functions are needed from such regulator for TX1 module?
Actually, we need such gpio generating from this gpio expander.
If TX1 module didn’t use such gpio for any function, could I modify the device tree for our design?
Below are some of the coding.