Hello,
I am using IDKAM4376 board.
i am able to boot the board.
1) How to check uart from console?
2) what are important command that i can use?
3) How would i add UART1 driver to dts file?and how to test that?
Regards,
Vrund
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.
Hello,
I am using IDKAM4376 board.
i am able to boot the board.
1) How to check uart from console?
2) what are important command that i can use?
3) How would i add UART1 driver to dts file?and how to test that?
Regards,
Vrund
Hi,
The following documents mention AM64x, but they are applicable to AM437x as well.
https://dev.ti.com/tirex/content/linux-academy-AM64X-8.1.0.0.v1/ch-eval/eval-tour-uart.html
https://dev.ti.com/tirex/content/linux-academy-AM64X-8.1.0.0.v1/ch-develop/dev-use-uart.html
https://dev.ti.com/tirex/content/linux-academy-AM64X-8.1.0.0.v1/ch-porting/port-kernel-uart.html
Ok. I am going through the details.
meanwhile i have gone through the
am437x-idk-evm.dts and am43xx-clocks.dtsi
this clock "dpll_per_m2_div4_wkupdm_ck is used for UART0.
which clock i need to use for UART1?
Regards,
Vrund
Hi,
The UART clocks are specified in am437x-l4.dtsi. You don't need to modify them.
Here is how to figure it out:
am437x-l4.dtsi defines the UART1 clock as following:
689 clocks = <&l4ls_clkctrl AM4_L4LS_UART2_CLKCTRL 0>;
Then search for AM4_L4LS_UART2_CLKCTRL in kernel source code, you would get:
drivers/clk/ti/clk-43xx.c:202: { AM4_L4LS_UART2_CLKCTRL, NULL, CLKF_SW_SUP, "dpll_per_m2_div4_ck" },
so the UART1 clock is "dpll_per_m2_div4_ck".