ARM: dts: Cygnus: Fix SP805 clocks
authorAndre Przywara <andre.przywara@arm.com>
Fri, 28 Aug 2020 13:06:00 +0000 (14:06 +0100)
committerFlorian Fainelli <f.fainelli@gmail.com>
Thu, 10 Sep 2020 20:35:19 +0000 (13:35 -0700)
The SP805 DT binding requires two clocks to be specified, but the
Broadcom Cygnus DT currently only specifies 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>
Reviewed-by: Ray Jui <ray.jui@broadcom.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
arch/arm/boot/dts/bcm-cygnus.dtsi

index 35bdd0969f0aba743aa7f7af5016cdaecfecd094..dacaef2c14caa5197c6ca12b7c2a3e66e559fcb2 100644 (file)
                        compatible = "arm,sp805" , "arm,primecell";
                        reg = <0x18009000 0x1000>;
                        interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>;
-                       clocks = <&axi81_clk>;
-                       clock-names = "apb_pclk";
+                       clocks = <&axi81_clk>, <&axi81_clk>;
+                       clock-names = "wdog_clk", "apb_pclk";
                };
 
                gpio_ccm: gpio@1800a000 {