ARM: dts: hisilicon: Fix SP805 clocks

The SP805 DT binding requires two clocks to be specified, but
Hisilicon platform DTs currently only specify one clock.

In practice, Linux would pick a clock named "apb_pclk" for the bus
clock, and the Linux and U-Boot SP805 driver would use the first clock
to derive the actual watchdog counter frequency.

Since currently both are the very same clock, we can just double the
clock reference, and add the correct clock-names, to match the binding.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Wei Xu <xuwei5@hisilicon.com>
This commit is contained in:
Andre Przywara 2020-09-07 13:18:31 +01:00 committed by Wei Xu
parent c26979a7ac
commit 3328c65666
1 changed files with 3 additions and 2 deletions

View File

@ -370,8 +370,9 @@
arm,primecell-periphid = <0x00141805>;
reg = <0xa2c000 0x1000>;
interrupts = <0 29 4>;
clocks = <&clock HIX5HD2_WDG0_RST>;
clock-names = "apb_pclk";
clocks = <&clock HIX5HD2_WDG0_RST>,
<&clock HIX5HD2_WDG0_RST>;
clock-names = "wdog_clk", "apb_pclk";
};
};