Toggle the gpio

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Toggle the gpio

629 Views
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

Labels (1)
0 Kudos
Reply
1 Reply

619 Views
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 Kudos
Reply