imx8DXL -GPIO set value error

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

imx8DXL -GPIO set value error

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

ラベル(1)
0 件の賞賛
返信
3 返答(返信)

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

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

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