So we need an overlay…
The correct port thou is:
&main_uart1 {
symlink = "ttyAMA0";
//pinctrl-names = "default";
//pinctrl-0 = <&main_uart1_pins_default>;
status = "okay";
bootph-all;
};
by using the symlink = "ttyAMA0";
this would allow to use /dev/ttyAMA0
in your software:
voodoo@BeagleY-AI:~$ ls -lha /dev/ttyAMA0
lrwxrwxrwx 1 root root 5 Jul 3 10:22 /dev/ttyAMA0 -> ttyS3
Okay, let’s enable the overlay…
Added: beagley-ai: add k3-am67a-beagley-ai-uart-ttyama0 overlay (ff4a9085) · Commits · BeagleBoard.org / BeagleBoard-DeviceTrees · GitLab
To test, on the BeagleY-AI:
cd /opt/source/dtb-6.1-Beagle/
git pull
./build_n_install.sh
k3-am67a-beagley-ai-uart-ttyama0.dtbo
Open: /boot/firmware/extlinux/extlinux.conf
Change the last option, from:
fdt /ti/k3-am67a-beagley-ai.dtb
#fdtoverlays /overlays/<file>.dtbo
#initrd /initrd.img
to:
fdt /ti/k3-am67a-beagley-ai.dtb
fdtoverlays /overlays/k3-am67a-beagley-ai-uart-ttyama0.dtbo
#initrd /initrd.img
(commenting out # initrd is recent change, the fdtoverlays address in u-boot is corrupting initrd placement on bootup…)
and reboot
Over the RPI debug port:
Retrieving file: /ti/k3-am67a-beagley-ai.dtb
Retrieving file: /overlays/k3-am67a-beagley-ai-uart-ttyama0.dtbo
## Flattened Device Tree blob at 88000000
Booting using the fdt blob at 0x88000000
Working FDT set to 88000000
Loading Device Tree to 000000008ffe0000, end 000000008fffffff ... OK
Working FDT set to 8ffe0000
Starting kernel ...
Once booted, you can check with:
voodoo@BeagleY-AI:~$ sudo beagle-version | grep UBOOT
UBOOT: Booted Device-Tree:[k3-am67a-beagley-ai.dts]
UBOOT: Loaded Overlay:[k3-am67a-beagley-ai-uart-ttyama0.kernel]
and i don’t have a second usb-uart adapter at work…, but tio /dev/ttyAMA0
should work…
Regards,