Toggle the gpio

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Toggle the gpio

1,109件の閲覧回数
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 返信

1,099件の閲覧回数
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 件の賞賛
返信