imx8DXL -GPIO set value error

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

imx8DXL -GPIO set value error

1,965 Views
rizwan_s
Contributor II

Hi

I get "Error reading output register" error when i try to set the gpio value in uboot for imx8dxl custom board. Please help to solve the issue

U-Boot 2020.04 (Jan 21 2022 - 11:23:07 +0530)

CPU: NXP i.MX8DXL RevA1 A35 at 1200 MHz at 40C

Model: NXP i.MX8DXL EVK Board
Board: iMX8DXL EVK
Boot: MMC0
DRAM: 1021.8 MiB
Error reading output register
Error reading output register
Error reading output register
Error reading output register
MMC: FSL_SDHC: 0, FSL_SDHC: 1
Loading Environment from MMC... Select HS400 failed -5
*** Warning - bad CRC, using default environment

 

Please suggest how to solve

0 Kudos
Reply
3 Replies

1,941 Views
rizwan_s
Contributor II

Hi Aldo,

Thanks for the reply.

I am trying the below code in uboot under board/freescale/imx8dxl-evk/imxdxl-evk.c file

imx8_iomux_setup_multiple_pads(enet_reset_pads, ARRAY_SIZE(enet_reset_pads));
gpio_request(GPIO_ENET_NRST, "GPIO_ENET_NRST");
gpio_direction_output(GPIO_ENET_NRST,0);
mdelay(1500);
gpio_set_value(GPIO_ENET_NRST,1);
udelay(500);
gpio_set_value(GPIO_ENET_NRST,0);
udelay(500);
gpio_set_value(GPIO_ENET_NRST,1);
udelay(500);

I get the "Error reading output register" for gpio_direction_output and gpio_set_value.

0 Kudos
Reply

1,935 Views
AldoG
NXP TechSupport
NXP TechSupport

Hi,

Please do remember that the i.MX 8DXL is still in pre-production stage so our support is limited and all information is subjected to changes.

One could check that the GPIO are correctly muxed/configured.

Best regards,
Aldo.

0 Kudos
Reply

1,953 Views
AldoG
NXP TechSupport
NXP TechSupport

Hello,

Could you provide more information regarding your issue like how are you doing this?
Which files have you modified?

Best regards,
Aldo.

0 Kudos
Reply