arm64: dts: hisilicon: list all clocks required by pl011.yaml
authorZhen Lei <thunder.leizhen@huawei.com>
Mon, 12 Oct 2020 13:17:38 +0000 (21:17 +0800)
committerWei Xu <xuwei5@hisilicon.com>
Tue, 24 Nov 2020 12:06:18 +0000 (20:06 +0800)
The arm,pl011 binding need to specify two clocks: "uartclk", "apb_pclk".
But only "apb_pclk" is specified now. Because the driver preferentially
matches the first clock. Otherwise, it matches the second clock instead
of both clocks. So both of them use the same clock don't change the
function.

Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Signed-off-by: Wei Xu <xuwei5@hisilicon.com>
arch/arm64/boot/dts/hisilicon/hi3798cv200.dtsi

index 1c7dda972c928561261c91fe154a27190aafb9f1..81d09434c5c610d13867d4271db81fc357010e06 100644 (file)
                        compatible = "arm,pl011", "arm,primecell";
                        reg = <0x8b00000 0x1000>;
                        interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>;
-                       clocks = <&sysctrl HISTB_UART0_CLK>;
-                       clock-names = "apb_pclk";
+                       clocks = <&sysctrl HISTB_UART0_CLK>, <&sysctrl HISTB_UART0_CLK>;
+                       clock-names = "uartclk", "apb_pclk";
                        status = "disabled";
                };
 
                        compatible = "arm,pl011", "arm,primecell";
                        reg = <0x8b02000 0x1000>;
                        interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>;
-                       clocks = <&crg HISTB_UART2_CLK>;
-                       clock-names = "apb_pclk";
+                       clocks = <&crg HISTB_UART2_CLK>, <&crg HISTB_UART2_CLK>;
+                       clock-names = "uartclk", "apb_pclk";
                        status = "disabled";
                };