AnsweredAssumed Answered

GPIO is not accssible from sysfs for IMX8

Question asked by viswanath kondapalli on Jun 13, 2019
Latest reply on Jul 16, 2019 by Diego Adrian Cuevas

Hi,

I am working on IMX8dx - Yocto 1.3 or 1.6

I am new to the IMX8dx. We are trying to access the GPIO from userspace/ command line.

1.

export 73 > /sys/class/gpio/export  :
[  115.430117] export_store: invalid GPIO 73
[  184.114083] export_store: invalid GPIO 105
[  342.974089] export_store: invalid GPIO 73
is this error is due to lack of GPIOLIB ???


2. Pinctrl and iomuxc is added in the dts file: correct me if any mistake.

iomuxc: iomuxc {
        compatible = "fsl,imx8qxp-iomuxc, imx8qxp-pinctrl";
    };
3. GPIO Config value for the Register :

for output pin we are givign the value as below , please correct me if i am wrong.
SC_P_ENET0_RGMII_RXD3_LSIO_GPIO5_IO08      0x00000021
SC_P_QSPI0B_SS0_B_LSIO_GPIO3_IO23          0x00000021

 

4. LSIO_GPIO5_IO08  -- 26-25 bit position which is saying as   0x02000021
   is this value is correct ?? as GPIO OUTPUT configuration ?? or 0x00000021 is correct.

 

We enabled the DEBUG_GPIO config like all configs. I am not aware about yocto packages setup -- please help any needed to be enable.

 

No GPIO's we are able access from sysfs. No clue any where... please help in this yocto side or Config side issue.??

 

regards,

Viswa

Outcomes