apm821xx: set uart compatible to ns16750

The APM821XX/PPC460EX datasheet mentions:
"Register compatibility with 16750 register set"

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
This commit is contained in:
Christian Lamparter 2018-10-15 20:00:06 +02:00 committed by Hauke Mehrtens
parent 92bcd08989
commit 68bb91018d

View File

@ -306,24 +306,29 @@
}; };
UART0: serial@ef600300 { UART0: serial@ef600300 {
device_type = "serial"; /*
compatible = "ns16550"; * AMCC's BSP u-boot scans for the "ns16550"
* compatible, without it, u-boot wouldn't
* set the "clock-frequency" which is required.
*
* However, the hardware documentation lists:
* "Register compatibility with 16750 register set"
*/
compatible = "ns16750", "ns16550";
reg = <0xef600300 0x00000008>; reg = <0xef600300 0x00000008>;
virtual-reg = <0xef600300>; virtual-reg = <0xef600300>;
clock-frequency = <0>; /* Filled in by U-Boot */ clock-frequency = <0>; /* Filled in by U-Boot */
current-speed = <0>; /* Filled in by U-Boot */
interrupt-parent = <&UIC1>; interrupt-parent = <&UIC1>;
interrupts = <0x01 IRQ_TYPE_LEVEL_HIGH>; interrupts = <0x01 IRQ_TYPE_LEVEL_HIGH>;
status = "disabled"; status = "disabled";
}; };
UART1: serial@ef600400 { UART1: serial@ef600400 {
device_type = "serial"; /* same "ns16750" as with UART0 */
compatible = "ns16550"; compatible = "ns16750", "ns16550";
reg = <0xef600400 0x00000008>; reg = <0xef600400 0x00000008>;
virtual-reg = <0xef600400>; virtual-reg = <0xef600400>;
clock-frequency = <0>; /* Filled in by U-Boot */ clock-frequency = <0>; /* Filled in by U-Boot */
current-speed = <0>; /* Filled in by U-Boot */
interrupt-parent = <&UIC0>; interrupt-parent = <&UIC0>;
interrupts = <0x01 IRQ_TYPE_LEVEL_HIGH>; interrupts = <0x01 IRQ_TYPE_LEVEL_HIGH>;
status = "disabled"; status = "disabled";