How to control BT_EN pin in I.MX8MP EVK

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to control BT_EN pin in I.MX8MP EVK

569 次查看
benne
Contributor I

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 # lsimage.png
modalias name of_node power subsystem uevent waiting_for_supplier
evk_8mp:/sys/bus/i2c/devices/2-0020 # cat name
tca6416

0 项奖励
1 回复

522 次查看
Dhruvit
NXP TechSupport
NXP TechSupport

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.

0 项奖励