UART5 Configuration - sb-fx6

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

UART5 Configuration - sb-fx6

1,867件の閲覧回数
andrewpalmer
Contributor I


Hi,

I have built a linux yocto image to target a sb-fx6 evaluation kit which works and boots fine. However when linux has booted I only get access to the command console serial port. What I wish to do is configure UART 5 on this board so that linux will recognize it as a serial port.

I realize I need to configure the pins appropriately (because they a multiplexed) but being in fairly unfamiliar territory  I have failed to find a suitable example to follow.

From the reference manual I have identified the pad names (UART5_RX_DATA and UART5_TX_DATA) and the registers (IOMUXC_UART5_UART_RS_DATA_SELECT_INPUT ...) but I don't how to apply this to the linux kernel and do a build.

If any one can help point me in the right direction that would be greatly appreciated.

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

1,719件の閲覧回数
andrewpalmer
Contributor I

Thanks Igor,

I think I have found the relevant file;

/arch/arm/boot/dts/imx6qdl-cm-fx6.dtsi

This file has an entry in it for the command console;

/* pins for console */

  pinctrl_uart4: uart4grp {

  fsl,pins = <

  MX6QDL_PAD_KEY_COL0__UART4_TX_DATA   0x1b0b1

  MX6QDL_PAD_KEY_ROW0__UART4_RX_DATA   0x1b0b1

  >;

  };

...

/* console */

&uart4 {

  pinctrl-names = "default";

  pinctrl-0 = <&pinctrl_uart4>;

  status = "okay";

};

Can I simply add to this file to define uart5? something like;

/* pins for uart5 */

  pinctrl_uart5: uart5grp {

  fsl,pins = <

  MX6QDL_PAD_KEY_COL0__UART5_TX_DATA   0x1b0b1

  MX6QDL_PAD_KEY_ROW0__UART5_RX_DATA   0x1b0b1

  >;

  };

...

/* my uart5 serial */

&uart5 {

  pinctrl-names = "default";

  pinctrl-0 = <&pinctrl_uart5>;

  status = "okay";

};

0 件の賞賛
返信

1,719件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi Andrew

Sabre AI board uses uart4 and one can look at its configuration in

files uboot/include/configs sabre ai board uart4  mx6qsabreauto.h

(used kernel boot parameter console=ttymxc3,115200)

and imx6qdl-sabreauto.dtsi

http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/tree/arch/arm/boot/dts/imx6qdl-sabreauto...

just for reference attached Porting Guide.

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

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

-----------------------------------------------------------------------------------------------------------------------