]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ARM: dts: meson8: use stable UART bindings with correct gate clock
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Fri, 17 Nov 2017 22:58:56 +0000 (23:58 +0100)
committerKevin Hilman <khilman@baylibre.com>
Thu, 7 Dec 2017 01:04:03 +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/meson8.dtsi

index b962e11263e70f8286385ade68f51e163a0c90cf..8b4f5b367590ace87c03c9b22740be03c9dd2781 100644 (file)
 };
 
 &uart_AO {
-       clocks = <&clkc CLKID_CLK81>;
+       compatible = "amlogic,meson8-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,meson8-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,meson8-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,meson8-uart", "amlogic,meson-uart";
+       clocks = <&clkc CLKID_CLK81>, <&clkc CLKID_XTAL>, <&clkc CLKID_UART2>;
+       clock-names = "baud", "xtal", "pclk";
 };
 
 &usb0 {