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: How to enable UserExpension Uart

Part Number: SK-AM62

Tool/software:

Hi TI.

SDK: ti-processor-sdk-linux-am62xx-evm-09.02.01.09

I am using SK-AM62 Starter kit Which having 40 pin User Expansion Connector.
I want to enable UART5 (EXP_UART5_TXD, EXP_UART5_RXD) which is the part of User Expansion Connector.

Can you please guide me how to enable uart.

Thanks.

  • Hi TI,

    I have added k3-am62x-sk-uart5.dtso file with following content

    /dts-v1/;
    /plugin/;
    
    #include <dt-bindings/gpio/gpio.h>
    #include "k3-pinctrl.h"
    
    &main_pmx0 {
    	user_exp_uart5_pins_default: user-exp-uart5-pins-default {
    		pinctrl-single,pins = <
    			AM62X_IOPAD(0x01dc, PIN_OUTPUT, 0) /* (E15) EXP_UART5_TXD  */
    			AM62X_IOPAD(0x01d8, PIN_INPUT, 0) /* (C15) EXP_UART5_RXD  */
    		>;
    	};
    };
    
    &main_i2c1 {
            gpio@22 {
                    p05-hog {
                            /* P05 - EXP_PS_3V3_EN */
                            gpio-hog;
                            gpios = <5 GPIO_ACTIVE_HIGH>;
                            output-high;
                            line-name = "EXP_PS_3V3_EN";
                    };
    
    		        p23-hog {
    			            /* P23 - IO_EXP_TEST_LED */
    			            gpio-hog;
    			            gpios = <23 GPIO_ACTIVE_HIGH>;
    			            output-high;
    			            line-name = "IO_EXP_TEST_LED";
    		        };
            };
    };
    
    &main_uart5 {
            pinctrl-names = "default";
            pinctrl-0 = <&user_exp_uart5_pins_default>;
            status = "okay";
    };
    

    and added k3-am62x-sk-uart5.dtbo in uEnv.txt. 
    Still uart5 is not up, can you please help me what missing here.

    Thanks.

  • Hi Swapnil,

    Your kernel device tree seems missing 2 things for enabling UART5.

    - pinmux: you should use pin E15/C15 mode 1, not mode 0;

    - you need to add main_uart5 to the aliases section in the kernel device tree.

  • Hi Bin Liu,

    Thanks, now its working fine.