Hi
We want to pull high or low the BT_EN pin, but the BT_EN pin connect to an IO Expansion of PCA6416 in I.IMX8MP . So we don't know how to visit the BT_EN and pull high or low
The PCA6416 is controlled by I2C ,and I think may be there are some i2c device match to PCA6415 and can visit . But I can't find how to controlled the BT_EN still now.
We can see a matched I2C device as blow:
evk_8mp:/sys/bus/i2c/devices/2-0020 # ls
modalias name of_node power subsystem uevent waiting_for_supplier
evk_8mp:/sys/bus/i2c/devices/2-0020 # cat name
tca6416
Hi @benne,
Please refer to this link.
And please try with the following commands to access the GPIO.
# echo 505 > /sys/class/gpio/export
// To configure GPIO as input
# echo in > /sys/class/gpio/gpio505/direction
// To configure GPIO as output
# echo out > /sys/class/gpio/gpio505/direction
Thank you.
Best Regards,
Dhruvit.