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.

Linux/TCI6630K2L: uart1 is not working

Part Number: TCI6630K2L

Tool/software: Linux

We have custom board with k2l and uarts 0 and 1 rx/tx wired. I try to write something to /dev/ttyS1. Baudrate and other settings are the same as for /dev/ttyS0, but nothing at output. Both uart0 and 1 are configured in device tree. What should I also check?

  • Which Linux SDK is this? In latest TI Linux sdks pinmux is configured at u-boot. Verify that the pinmux is correct.

    Best Regards,
    Yordan
  • mcsdk_3_01_04_07

    kernel 3.10.72

    uart1 is not pinmuxed with any peripherals on k2l

  • Can you share your device tree settings? Also the pinmux settings for uarts?

    Best Regards,
    Yordan
  • keystone.dtsi:

    uart0: serial@02530c00 {
    compatible = "ns16550a";
    current-speed = <115200>;
    reg-shift = <2>;
    reg-io-width = <4>;
    reg = <0x02530c00 0x100>;
    clocks = <&clkuart0>;
    interrupts = <0 277 0xf01>;
    };

    uart1: serial@02531000 {
    compatible = "ns16550a";
    current-speed = <115200>;
    reg-shift = <2>;
    reg-io-width = <4>;
    reg = <0x02531000 0x100>;
    clocks = <&clkuart0>;
    interrupts = <0 280 0xf01>;
    };

    pinmux settings:
    [   45.001568] muxctl0 set to 0x00000004 (was 0x00000000)
    [   45.001580] muxctl1 set to 0x00000000 (was 0x00000000)
    [   45.001591] muxctl2 set to 0xc0220000 (was 0x00000000)

    This sets UART01_SPI2_SEL @ muxctl0:
    0 - Select UART0 and UART1 flow control signals (UART0CTS, UART0RTS, UART1CTS and UART1RTS) (Default)
    1 - Select SPI2 with CS0 (SPI2CLK, SPI2CS0, SPI2SOMI, SPI2SIMO)

    I think uart1 rxd/txd is not involved in this settings