Commit dee0be5c authored by Manivannan Sadhasivam's avatar Manivannan Sadhasivam Committed by Olof Johansson

arm64: dts: bitmain: Source common clock for UART controllers

Remove fixed clock and source common clock for UART controllers.

Link: https://lore.kernel.org/r/20200114040311.6599-3-manivannan.sadhasivam@linaro.orgSigned-off-by: default avatarManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
parent e1cd7b80
...@@ -49,12 +49,6 @@ memory@0 { ...@@ -49,12 +49,6 @@ memory@0 {
reg = <0x1 0x00000000 0x0 0x40000000>; // 1GB reg = <0x1 0x00000000 0x0 0x40000000>; // 1GB
}; };
uart_clk: uart-clk {
compatible = "fixed-clock";
clock-frequency = <500000000>;
#clock-cells = <0>;
};
soc { soc {
gpio0: gpio@50027000 { gpio0: gpio@50027000 {
porta: gpio-controller@0 { porta: gpio-controller@0 {
...@@ -173,21 +167,18 @@ pinmux { ...@@ -173,21 +167,18 @@ pinmux {
&uart0 { &uart0 {
status = "okay"; status = "okay";
clocks = <&uart_clk>;
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&pinctrl_uart0_default>; pinctrl-0 = <&pinctrl_uart0_default>;
}; };
&uart1 { &uart1 {
status = "okay"; status = "okay";
clocks = <&uart_clk>;
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&pinctrl_uart1_default>; pinctrl-0 = <&pinctrl_uart1_default>;
}; };
&uart2 { &uart2 {
status = "okay"; status = "okay";
clocks = <&uart_clk>;
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&pinctrl_uart2_default>; pinctrl-0 = <&pinctrl_uart2_default>;
}; };
...@@ -174,6 +174,9 @@ portc: gpio-controller@0 { ...@@ -174,6 +174,9 @@ portc: gpio-controller@0 {
uart0: serial@58018000 { uart0: serial@58018000 {
compatible = "snps,dw-apb-uart"; compatible = "snps,dw-apb-uart";
reg = <0x0 0x58018000 0x0 0x2000>; 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>; interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
reg-shift = <2>; reg-shift = <2>;
reg-io-width = <4>; reg-io-width = <4>;
...@@ -184,6 +187,9 @@ uart0: serial@58018000 { ...@@ -184,6 +187,9 @@ uart0: serial@58018000 {
uart1: serial@5801A000 { uart1: serial@5801A000 {
compatible = "snps,dw-apb-uart"; compatible = "snps,dw-apb-uart";
reg = <0x0 0x5801a000 0x0 0x2000>; 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>; interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
reg-shift = <2>; reg-shift = <2>;
reg-io-width = <4>; reg-io-width = <4>;
...@@ -194,6 +200,9 @@ uart1: serial@5801A000 { ...@@ -194,6 +200,9 @@ uart1: serial@5801A000 {
uart2: serial@5801C000 { uart2: serial@5801C000 {
compatible = "snps,dw-apb-uart"; compatible = "snps,dw-apb-uart";
reg = <0x0 0x5801c000 0x0 0x2000>; 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>; interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
reg-shift = <2>; reg-shift = <2>;
reg-io-width = <4>; reg-io-width = <4>;
...@@ -204,6 +213,9 @@ uart2: serial@5801C000 { ...@@ -204,6 +213,9 @@ uart2: serial@5801C000 {
uart3: serial@5801E000 { uart3: serial@5801E000 {
compatible = "snps,dw-apb-uart"; compatible = "snps,dw-apb-uart";
reg = <0x0 0x5801e000 0x0 0x2000>; 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>; interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
reg-shift = <2>; reg-shift = <2>;
reg-io-width = <4>; reg-io-width = <4>;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment