i.mx qnx gpio muxing

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

i.mx qnx gpio muxing

1,458 Views
sandeshd
Contributor I

Hi,

We are using  QNX on i.mx6 sabrelite board for my application , it is  working fine.

But now we want  WiFi on SDIO and Bluetooth on UART, so we selected WL18XXSDIO board.

Now we are using  SDIO interface and

WiFi enable , WiFi irq,  TX, RX CTS, RTS , BTenable pins from camera connector.

Now we want to mux these camera pins into WiFi enable, BT enable, WiFi irq, RX, TX, CTS, RTS.

We made below changes in the below file   

bsp-freescale-mx6q-sabrelite-SDP6.6/src/hardware/startup/boards/imx6x/sabrelite/mx6q_gpio.c

TO ENABLE BT & WiFi
 pinmux_set_swmux(SWMUX_CSI0_DAT12, MUX_CTL_MUX_MODE_ALT3);  // TX
 pinmux_set_swmux(SWMUX_CSI0_DAT13, MUX_CTL_MUX_MODE_ALT3);  // RX
 pinmux_set_swmux(SWMUX_CSI0_DAT16, MUX_CTL_MUX_MODE_ALT3);  // RTS
 pinmux_set_swmux(SWMUX_CSI0_DAT17, MUX_CTL_MUX_MODE_ALT3);  // CTS

 pinmux_set_swmux(SWMUX_GPIO_16, MUX_CTL_MUX_MODE_ALT5);      // BT_EN

 // WL_EN 
pinmux_set_swmux(SWMUX_GPIO_6, MUX_CTL_MUX_MODE_ALT5);     
pinmux_set_padcfg(SWPAD_GPIO_6, MX6X_PAD_SETTINGS_USDHC_SDIO);
out32(MX6X_GPIO1_BASE + MX6X_GPIO_DR, in32(MX6X_GPIO1_BASE + MX6X_GPIO_DR) | (0x1 << 6));

  
// WL_IRQ  
pinmux_set_swmux(SWMUX_CSI0_DATA_EN, MUX_CTL_MUX_MODE_ALT5 | MUX_CTL_SION);
pinmux_set_padcfg(SWMUX_CSI0_DATA_EN, MX6X_PAD_SETTINGS_USDHC_SDIO); 
out32(MX6X_GPIO5_BASE + MX6X_GPIO_GDIR, in32(MX6X_GPIO5_BASE + MX6X_GPIO_GDIR) & ~(0x1 << 20));

Could you please suggest , Is these changes are enough to work or we need to make any otherchanges

please guide us

Thank you for your support

Labels (1)
0 Kudos
3 Replies

1,009 Views
igorpadykov
NXP Employee
NXP Employee

Hi sandesh

please look on boundary devices wifi implementation examples:

wifi - Boundary Devices 

Differences between the Sabre Lite and Nitrogen6X i.MX6 development boards 


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

0 Kudos

1,009 Views
sandeshd
Contributor I

Hi igorpadykov,

Thank you for your reply.

We need to bring up the WiFi in QNX operating system on i.mx6 sabrelite board.

Thank you for your support

0 Kudos

1,009 Views
igorpadykov
NXP Employee
NXP Employee

Hi sandesh

NXP has special service for such help:

NXP Professional Services|NXP 

Best regards
igor

0 Kudos