Forums - Change SPI to UART for VOXL2 board (QRB-5165)

1 post / 0 new
Change SPI to UART for VOXL2 board (QRB-5165)
eduardo.hernandez1
Join Date: 13 May 24
Posts: 1
Posted: Mon, 2024-05-13 00:43

I am currently using a QRB5165 board (withint VOXL 2) with Ubuntu and I need more UART ports for my project.

I would like to convert the SPI ports to UART as I'm currently not using SPI. However, I would like to do this without adding additional hardware such as a micro-controller or bit banging.

Is it possible to reconfigure the SPI ports to UART by only changing the kernel device tree? 

I can see in the embedded linux documentation: 80-27572-2_REV_A_QRB5165_LE_1_0_Linux_Embedded_Platform_Software_Programming_Guide.pdf (qualcomm.com)

that it is possible to configure the QUP s for the board and that they all seem to support the three main communication protocols (UART, SPI, I2C).

As such, my initial idea was to reconfigure the QUP (specifically QUP se11) of the board from SPI to UART.

 

My initial idea was to:

1) Remove the code configuring it to SPI

2) Follow the documentation here: Qualcomm Universal Peripheral (QUP) v3, in particur 3.1 Configure UART in the kernel, 

     to add the UART kernel using the same QUP and pins (QUP se 11, pins 60-63).

Do you believe this would work ? 

If not, would you know of another way ?

  • Up0
  • Down0

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.