Hello,
I have the following configuration:
Colibri IMX8DX 1GB WB v1.0D
Viola Plus v1.2B
Torizon Core BSP 5
I’m already using UARTs A, B and C, and now I need to use UART 1 to connect a new sensor.
I created a device tree overlay to enable UART 1 (X1 pins 30, 28, 67, 61) on Viola CB (pins 42, 43, 44, 22 of X9 extension connector).
In my device tree overlay I disable the PWMs that use the same pins as UART 1 and enable the lpuart1, as shown below:
/* Colibri PWM_B */
&pwm0 {
status= “disabled”;
};
/* Colibri PWM_C */
&pwm1 {
status= “disabled”;
};
/* Colibri PWM_D */
&pwm2 {
status= “disabled”;
};
&lpuart1 {
status= “okay”;
};
In the imx8x-colibri.dtsi file, I added the following lines along with the other settings for UARTs A, B and C:
pinctrl_lpuart1: lpuart1grp {
fsl,pins = <
IMX8QXP_UART1_TX_LSIO_PWM0_OUT 0x06000020 // SODIMM 28
IMX8QXP_UART1_RX_LSIO_PWM1_OUT 0x06000020 // SODIMM 30
IMX8QXP_UART1_RTS_B_LSIO_PWM2_OUT 0x06000020 // SODIMM 67
IMX8QXP_UART1_CTS_B_ADMA_LCDIF_D17 0x06000020 // SODIMM 61
>;
};
…
&lpuart1 {
pinctrl-names = “default”;
pinctrl-0 = <&pinctrl_lpuart1>;
};
I’m using TorizonCore Builder to build and to update the device tree overlay using the command torizoncore-builder dto deploy …
But when I do a loopback test on pins 42 and 43 of Viola Carrier’s X9, using picocom terminal and I don’t get any data in the serial.
Can anybody help me?
Thank you in advance.