2,532 bytes added,
30 January <section begin=History/>
{| style="border-collapse:collapse; "
!colspan="4" style="width:100%; text-align:left"; border-bottom:solid 2px #ededed"|History
|-
! style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#ededed; padding:5px; color:#000000" |2024/01/30
! style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#ededed; padding:5px; color:#000000" |DESK-MX9-L-5.0.0 release
|-
|}
<section end=History/>
<section begin=Body/>
==Peripheral UART ==
=== Device tree configuration ===
==== AURA SOM ====
Here below an example of device tree modifications to standard DAVE's kit for the ORCA SOM:
From <code>imx8mp-mito8mplus.dtsi</code>:
<pre>
...
...
&lpuart4 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_uart4>;
status = "okay";
};
...
&iomuxc {
...
pinctrl_uart4: uart4grp{
fsl,pins = <
MX93_PAD_GPIO_IO14__LPUART4_TX 0x31e
MX93_PAD_GPIO_IO15__LPUART4_RX 0x31e
>;
};
...
</pre>
===Accessing the peripheral in AURA SOM===
====Linux messages at boot time====
<pre class="workstation-terminal">
...
[ 0.847346] 44380000.serial: ttyLP0 at MMIO 0x44380010 (irq = 18, base_baud = 1500000) is a FSL_LPUART
[ 0.856702] printk: console [ttyLP0] enabled
[ 0.875438] 44390000.serial: ttyLP1 at MMIO 0x44390010 (irq = 19, base_baud = 1500000) is a FSL_LPUART
[ 0.885307] 42580000.serial: ttyLP3 at MMIO 0x42580010 (irq = 20, base_baud = 1500000) is a FSL_LPUART
[ 0.895137] 42690000.serial: ttyLP2 at MMIO 0x42690010 (irq = 21, base_baud = 1500000) is a FSL_LPUART
...
</pre>
==== Usage with stty ====
'''N.B.''' UART mapping respect to <code>ttyLPX</code> is the following one:
LPUART1 (RS232) <-> ttyLP00
LPUART2 (Multiprotocol) <-> ttyLP1
LPUART3 (UART) <-> ttyLP2
LPUART4 (UART) <-> ttyLP3
...
<pre class="workstation-terminal">
root@desk-mx93:~# stty -F /dev/ttyLP1 115200 -echo -raw
root@desk-mx93:~# cat /dev/ttyLP1 > test_ttyLP1.log &
[1] 716
root@desk-mx93:~# echo "Test loopback" > /dev/ttyLP1
root@desk-mx93:~# cat test_ttyLP1.log
Test loopback
root@desk-mx93:~#
</pre>
=== Additional information ===
Serial ports can be used through the standard serial programming API.
For detailed information, please refer to the Serial Programming HOWTO at [http://tldp.org/HOWTO/Serial-Programming-HOWTO/index.html Serial-Programming-HOWTO]
----
[[Category:AURA]] [[Category:SBCX AURA]]