Q1:
1. are propertys assigned-clocks & assigned-clock-parents necessary? What would happen if it's lacking?
A:Yes, necessary. These properties are part of the Common Clock Framework in Linux device trees. They are used to configure the clock source and parent for a peripheral at boot time.
If lacking, Incorrect baud rate if the default clock frequency doesn’t match what the driver expects.Potential instability if the clock source is not optimal for low-power or performance modes.
2. What are the differences between the two hardware flow control methods uart-has-rtscts and uart-has-rtscts &cts-gpios&rts-gpios?
A:uart-has-rtscts 是一个 Device Tree 属性,用于告诉 Linux UART 驱动该串口支持 硬件流控 (RTS/CTS),并且应该启用它。RTS (Request To Send) 和 CTS (Clear To Send) 信号由 UART 控制器硬件自动处理,不需要软件干预
The driver will enable hardware flow control( (RTS/CTS)) function when initializing UART.
cts-gpios 和 rts-gpios 是 Device Tree 属性,用于在硬件没有原生 RTS/CTS 引脚,或者需要通过 GPIO 来模拟流控时使用。驱动会通过 GPIO 来实现流控,而不是使用 UART 控制器的硬件 RTS/CTS.