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.

SK-AM62: enable UART port

Part Number: SK-AM62

Tool/software:

Hi,

I want to evaluate UART port for custom serial driver on SK-AM62 eval board. as I can see in device tree SOC or main_uart1 Main UART1 is used by TIFS firmware and marked "reserved". Is there any limitation utilizing it?. Can I simply change status to "okay" and evaluate custom driver?

Thanks,

Chetana

  • Hi Chetana,

    Can I simply change status to "okay" and evaluate custom driver?

    Though I didn't test this, yes you should be able to enable it in kernel device tree and use it in Linux.

    AM62x MAIN UART1 is reserved for TIFS logging, but TIFS logging to UART is by default disabled in boardcfg in U-Boot, so Linux should be able to just enable and use MAIN UART1.

  • I have enabled it by including following in DTS that didnt. it doesnt boot up or I cant see any uboot logs on Uart0 with these changes


    main_uart1_pins_default: main-uart1-pins-default {
    pinctrl-single,pins = <
    AM62PX_IOPAD(0x01ac, PIN_INPUT, 2) /* (G23) MCASP0_AFSR.UART1_RXD */
    AM62PX_IOPAD(0x01b0, PIN_OUTPUT, 2) /* (G20) MCASP0_ACLKR.UART1_TXD */
    >;
    };

    &main_uart1 {
    status = "okay";
    pinctrl-names = "default";
    pinctrl-0 = <&main_uart1_pins_default>;
    interrupts-extended = <&gic500 GIC_SPI 179 IRQ_TYPE_LEVEL_HIGH>,
    <&main_pmx0 0x01ac>; /* (D14) UART1_RXD PADCONFIG114 */
    interrupt-names = "irq", "wakeup";
    };

  • I thought you were trying to use main uart1 in Linux applications, but now it appears you want to use it as the U-Boot/Linux console. I am routing your query to our U-Boot expert for comments.

  • yes I was trying to use main_uart1 for Linux application itself. what mistake have I made? that it now configures to U-Boot cosole

  • I think I am kind of confused.

    If you want to use main_uart1 in Linux application, you only need to modify the kernel DTS to enable this uart. This change should not have anything to do with U-Boot. I don't understand why your U-Boot console doesn't print any message now?