ARM: dts: meson8b: use stable UART bindings with correct gate clock
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Fri, 17 Nov 2017 22:58:57 +0000 (23:58 +0100)
committerKevin Hilman <khilman@baylibre.com>
Thu, 7 Dec 2017 01:04:04 +0000 (17:04 -0800)
Switch to the stable UART bindings and add the correct gate clocks
to the non-AO UART nodes.
This fixes the non-AO UARTs if the bootloader didn't un-gate the clocks.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Acked-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
arch/arm/boot/dts/meson8b.dtsi

index b6de3edfcb2165ae81a4a6fb171a7991bd4abcfb..7cd03ed3742e71c953ace306316cd36c58cc6529 100644 (file)
 };
 
 &uart_AO {
-       clocks = <&clkc CLKID_CLK81>;
+       compatible = "amlogic,meson8b-uart", "amlogic,meson-uart";
+       clocks = <&clkc CLKID_CLK81>, <&clkc CLKID_XTAL>, <&clkc CLKID_CLK81>;
+       clock-names = "baud", "xtal", "pclk";
 };
 
 &uart_A {
-       clocks = <&clkc CLKID_CLK81>;
+       compatible = "amlogic,meson8b-uart", "amlogic,meson-uart";
+       clocks = <&clkc CLKID_CLK81>, <&clkc CLKID_XTAL>, <&clkc CLKID_UART0>;
+       clock-names = "baud", "xtal", "pclk";
 };
 
 &uart_B {
-       clocks = <&clkc CLKID_CLK81>;
+       compatible = "amlogic,meson8b-uart", "amlogic,meson-uart";
+       clocks = <&clkc CLKID_CLK81>, <&clkc CLKID_XTAL>, <&clkc CLKID_UART1>;
+       clock-names = "baud", "xtal", "pclk";
 };
 
 &uart_C {
-       clocks = <&clkc CLKID_CLK81>;
+       compatible = "amlogic,meson8b-uart", "amlogic,meson-uart";
+       clocks = <&clkc CLKID_CLK81>, <&clkc CLKID_XTAL>, <&clkc CLKID_UART2>;
+       clock-names = "baud", "xtal", "pclk";
 };
 
 &usb0 {