Toggle the gpio

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

Toggle the gpio

602 次查看
Chethan
Contributor III

Hi, 

I am using LS1046a board for my application. 

Now i need to enable the GPIO4_10 in dtsi file and i need to check in the sys entries like below.

echo xxx > /sys/class/gpio/export
echo in > /sys/class/gpio/gpioxxx/direction
cat /sys/class/gpio/gpioxxx/value

so please provide the device tree of GPIO4_10 of dtsi file and to verify using sys entries

Thanks & Regards
Chethan GR

标签 (1)
0 项奖励
回复
1 回复

592 次查看
ufedor
NXP Employee
NXP Employee

GPIOs are already configured in the "fsl-ls1046a.dtsi" which could be used as a reference:

https://source.codeaurora.org/external/qoriq/qoriq-components/linux/tree/arch/arm64/boot/dts/freesca...

To make it possible to use GPIO4_10 it is required to set SCFG_RCWPMUXCR0[IIC3_SCL]=001.

For further testing (gpio toggling) refer to the Layerscape Software Development Kit User Guide:

https://docs.nxp.com/bundle/GUID-3FFCCD77-5220-414D-8664-09E6FB1B02C6/page/GUID-1ABF245E-9E9B-4BEB-B...

 

0 项奖励
回复