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.

AM6442: CC1312R1F3RGZT with AM6442

Part Number: AM6442


SW: Linux SDK 08.00.00.004

Hi,

My custom board has a AM6442 CPU and a CC1312R1F3RGZT SUB-G.

CC1312R1F3RGZT <-> AM6442 communication should be over UART.

Used balls: C9 (MCU_UART1_RXD) and D9 (MCU_UART1_TXD).

I added this uart in device tree, but could not find it in /dev directory, how this device should appear in /dev ?

I could not find any example for CC1312R1F3RGZT usage with Linux, maybe you can refer me to one?

 

Here is the device tree part I added in order to use the UART:

mcu_uart1_pins_default: mcu-uart1-pins-default {
	pinctrl-single,pins = <
		AM64X_MCU_IOPAD(0x4038, PIN_INPUT, 0) /* (C9) MCU_UART1_RXD */
		AM64X_MCU_IOPAD(0x403C, PIN_OUTPUT, 0) /* (D9) MCU_UART1_TXD */
	>;
};



&mcu_uart1 {
	pinctrl-names = "default";
	status = "okay";
	pinctrl-0 = <&mcu_uart1_pins_default>;
};

Am I missing something?

Thanks

  • Hi,

    Please check the kernel patches mentioned in the e2e post below for enabling MCU UART1 in Processor SDK v8.0 Linux kernel..

    e2e.ti.com/.../3894837

  • Thanks,

    I applied the patches:

    * 7077.0001-arm64-dts-ti-k3-am64-mcu-Add-support-for-wkup-pinmux.patch

    * 0002-arm64-dts-ti-k3-am642-evm-enable-mcu_uart1-with-pinm.patch (I did it in my devicetree, not in the EVM's)

    * 0003-arm64-dts-ti-k3-am64-mcu-remove-clock-frequency-from.patch

    I also unlocked the MMR region in U-boot.

    I still can see no difference, how this device should appear? should I see it in /dev directory?

    I could not find any example for CC1312R1F3RGZT usage with Linux, maybe you can refer me to one?

    Thanks

  • I am not familiar with CC1312R1F3RGZT, but any serial device connected to AM64x UART port can be communicated with Linux tty program which accesses the corresponding UART port. The AM64x MCU_UART1 port is represented as /dev/ttyS1 device node in Linux.

  • Since /dev/ttyS1 appears even if I don't enable MCU UART, I was sure this is not the relevant device.

    Now I tried to connect to the device using picocom and it fails if MCU UART is not enabled, so you're right, thanks!

    I will ask about the CC1312R1F3RGZT device in the Sub-1 GHz Group forum.

    Thanks!!

  • Glad you made the progress. Thanks for the update.

    There are different places in Linux (dmesg, sysfs, procfs) to check details of each enabled UART port. But the quickest way I use to check which UARTs are enabled is to check dmesg log right after Linux is booted.

    dmesg | grep ttyS