Skip to content

RK3588 - How to enable another serial port for mcu #92

@soonsolidchentuo

Description

@soonsolidchentuo

Problem Overview

Hello, I'd like to use UART5 to communicate with the peripheral MCU on RK3588.

Step description

  1. The default 3588 U-Boot device tree uses the "snps, dw app start" driver, corresponding to driver/serial/ns16550. c
  2. When I enabled the device tree node and entered U-Boot, I used the command dm tree, but the match was unsuccessful.
    ebd3dff0 serial [ ] ns16550_serial |-- serial@feb50000 *

Question:

  1. I found that the register data structure of ns16550. h is inconsistent with the register of RK3588. Can this driver be used?
  2. How can I use UART5, and can I only write it myself? May I ask if there are any relevant reference documents?
    I don't need complex functions such as FIFO, DMA, virtual memory, etc., I only need simple protocol communication.

Thank you


问题概述

你好,我需要在RK3588上,使用Uart5来和外设MCU通信。

步骤描述

  1. 我发现默认的3588的uboot设备树上,是使用"snps,dw-apb-uart"的驱动,对应的驱动是driver/serial/ns16550.c
  2. 当我使能了设备树节点,进入uboot后使用命令dm tree,匹配不成功。
    ebd3dff0 serial [ ] ns16550_serial |-- serial@feb50000 *

问题

  1. 我发现ns16550.h的寄存器数据结构和RK3588的寄存器不一致,是否无法使用这个驱动?
  2. 我该如何使用Uart5,是否只能自己写?请问有没有相关的参考文档,我不需要fifo、dma、虚拟内存等复杂功能,只需要简单的协议通信。
    谢谢

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions