iMX8QM SCU GPIO Configuration Issue

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

iMX8QM SCU GPIO Configuration Issue

2,689 Views
prashanthkumar
Contributor II

Hi,

We are using 4.14.78 Kernel BSP for iMX8QM Custom Board, in which its unable to configure (read/write) LSIO GPIOs in SCU firmware(imx-scfw-porting-kit-1.1.2) source code board file.

The GPIOs configuration as below,

Inside platform/board/mx8qm_val/board.c file,

uint32_t val;
gpio_pin_config_t config;
config.pinDirection = kGPIO_DigitalOutput;

(void) pad_set_mux(SC_PT, SC_P_M40_I2C0_SCL, 0U, SC_PAD_CONFIG_NORMAL, SC_PAD_ISO_OFF);
(void) pad_set_mux(SC_PT, SC_P_M41_I2C0_SDA,, 0U, SC_PAD_CONFIG_NORMAL, SC_PAD_ISO_OFF);

FGPIO_PinInit(FGPIOA, 6U, &config);
val = FGPIO_ReadPinInput(FGPIOA, 6U);
board_print(1, "\nGPIO Status = %x\n", val);

FGPIO_PinInit(FGPIOA, 11U, &config);
val = FGPIO_ReadPinInput(FGPIOA, 11U);
board_print(1, "\nGPIO Status = %x\n", val);

The out put for GPIO always getting as val = 0 for both LSIO GPIOs instead of 1.

1) Is there any additional SCU APIs need to configure for reading LSIO GPIo status?
2) Is above configuration is proper? If not can you please help how to read/write LSIO GPIO status in SCU.

Thanks in advance.

Best Regards,

Prashanth Kumar K

0 Kudos
4 Replies

1,975 Views
prashanthkumar
Contributor II

Hi Igor,

We are using "imx-scfw-porting-kit-1.1.2" SCFW source code from below link,

L4.14.78_1.0.0_SCFWKIT

In which SCF-250- LSIO GPIO power up issue has fixed. But we are still facing hanging issue while operating LSIO GPIOs in SCFW.

The bugs in updated release note sc_fw_rn.pdf as follows,

pastedImage_4.png     pastedImage_5.png

Its not able to read/write/set the LSIO GPIO using GPIO_SetPinsOutput, GPIO_WritePinOutput and GPIO_ReadPinInput already existing predefined functions.

Can you please suggest how to read, write, toggle, clear, set the LSIO GPIOs in SCFW code.

Best Regards,

Prashanth Kumar K

0 Kudos

1,975 Views
igorpadykov
NXP Employee
NXP Employee

Hi Prashanth

unfortunately this processor is not publicly released yet and not fully supported.

For its support recommended to use NXP Professional Services | NXP 

 

Best regards
igor

0 Kudos

1,975 Views
prashanthkumar
Contributor II

Hi Igor,

I have tried your suggestion,operation GPIO0_06 in SCFW with the I.MX8QM board.

But when I operation LSIO_GPIO0->GDIR,SCFW stopped/hanged. After that it is not at all booting.

Is there any header file needed for LSIO GPIO configuration additionally?

Best Regards,

Prashanth Kumar K

0 Kudos

1,975 Views
igorpadykov
NXP Employee
NXP Employee

Hi Prashanth

one can refer to example below (should also work for i.MX8QM)

https://community.nxp.com/message/1106495 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos