This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM5718: RS485 for UART2

Part Number: AM5718


software:ti-processor-sdk-linux-rt-am57xx-evm-06.03.00.106

In my own board, we use RS485 for UART2.I modify some files according to https://e2e.ti.com/support/processors-group/processors/f/processors-forum/801483/am5728-u-boot-uart-setting.

1./board/ti/am57xx/mux_data.h

const struct pad_conf_entry early_padconf[] = {
{I2C1_SDA, (PIN_INPUT_PULLUP | M0)}, /* I2C1_SDA */
{I2C1_SCL, (PIN_INPUT_PULLUP | M0)}, /* I2C1_SCL */
{UART2_RXD, (M4 | PIN_INPUT)}, /* uart2_rxd.uart2_rxd */
{UART2_TXD, (M4 | PIN_OUTPUT)}, /* uart2_txd.uart2_txd */
};

2./arch/arm/dts/am57xx-beagle-x15-common.dtsi

chosen {
stdout-path = &uart2;
};

&uart2 {
 status = "okay";
};

3./arch/arm/dts/omap5-u-boot.dtsi

&uart2 {
u-boot,dm-spl;
reg-shift = <2>;
};

4./arch/arm/dts/am57xx-idk-common.dtsi

chosen {
stdout-path = &uart2;
};

&uart2 {
 status = "okay";
};

5.#define CONSOLEDEV "ttyS1"

I use ns16550 driver, and add CONS_INDEX = 2 in /board/ti/Kconfig

When I start my board, I can't see any output in my Serial terminal. I don't know why and I want to know how to modify it correctly?