arm64: dts: bitmain: Source common clock for UART controllers
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Tue, 14 Jan 2020 04:03:11 +0000 (09:33 +0530)
committerOlof Johansson <olof@lixom.net>
Thu, 16 Jan 2020 23:48:11 +0000 (15:48 -0800)
Remove fixed clock and source common clock for UART controllers.

Link: https://lore.kernel.org/r/20200114040311.6599-3-manivannan.sadhasivam@linaro.org
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Olof Johansson <olof@lixom.net>
arch/arm64/boot/dts/bitmain/bm1880-sophon-edge.dts
arch/arm64/boot/dts/bitmain/bm1880.dtsi

index 3e8c707..7a2c7f9 100644 (file)
                reg = <0x1 0x00000000 0x0 0x40000000>; // 1GB
        };
 
-       uart_clk: uart-clk {
-               compatible = "fixed-clock";
-               clock-frequency = <500000000>;
-               #clock-cells = <0>;
-       };
-
        soc {
                gpio0: gpio@50027000 {
                        porta: gpio-controller@0 {
 
 &uart0 {
        status = "okay";
-       clocks = <&uart_clk>;
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_uart0_default>;
 };
 
 &uart1 {
        status = "okay";
-       clocks = <&uart_clk>;
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_uart1_default>;
 };
 
 &uart2 {
        status = "okay";
-       clocks = <&uart_clk>;
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_uart2_default>;
 };
index 8471662..fa6e690 100644 (file)
                uart0: serial@58018000 {
                        compatible = "snps,dw-apb-uart";
                        reg = <0x0 0x58018000 0x0 0x2000>;
+                       clocks = <&clk BM1880_CLK_UART_500M>,
+                                <&clk BM1880_CLK_APB_UART>;
+                       clock-names = "baudclk", "apb_pclk";
                        interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
                        reg-shift = <2>;
                        reg-io-width = <4>;
                uart1: serial@5801A000 {
                        compatible = "snps,dw-apb-uart";
                        reg = <0x0 0x5801a000 0x0 0x2000>;
+                       clocks = <&clk BM1880_CLK_UART_500M>,
+                                <&clk BM1880_CLK_APB_UART>;
+                       clock-names = "baudclk", "apb_pclk";
                        interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
                        reg-shift = <2>;
                        reg-io-width = <4>;
                uart2: serial@5801C000 {
                        compatible = "snps,dw-apb-uart";
                        reg = <0x0 0x5801c000 0x0 0x2000>;
+                       clocks = <&clk BM1880_CLK_UART_500M>,
+                                <&clk BM1880_CLK_APB_UART>;
+                       clock-names = "baudclk", "apb_pclk";
                        interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
                        reg-shift = <2>;
                        reg-io-width = <4>;
                uart3: serial@5801E000 {
                        compatible = "snps,dw-apb-uart";
                        reg = <0x0 0x5801e000 0x0 0x2000>;
+                       clocks = <&clk BM1880_CLK_UART_500M>,
+                                <&clk BM1880_CLK_APB_UART>;
+                       clock-names = "baudclk", "apb_pclk";
                        interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
                        reg-shift = <2>;
                        reg-io-width = <4>;