]> git.baikalelectronics.ru Git - uboot.git/commitdiff
dt: bcm6858: watchdog should use a 50Mhz clock
authorPhilippe Reynes <philippe.reynes@softathome.com>
Fri, 3 May 2019 17:43:07 +0000 (19:43 +0200)
committerTom Rini <trini@konsulko.com>
Sat, 18 May 2019 16:31:59 +0000 (12:31 -0400)
The watchdog should use a clock at 50 Mhz, so
instead of using the clock osc (200 Mhz), we
define a reference clock at 50Mhz and use it
for both watchdog.

Signed-off-by: Philippe Reynes <philippe.reynes@softathome.com>
Reviewed-by: Stefan Roese <sr@denx.de>
arch/arm/dts/bcm6858.dtsi

index 76ba0ea1675ecc95fd33f5dc40f453ccf2827ae5..91f7787eb9b432f9c2fa9d1cbd448cff765c735d 100644 (file)
                        clock-frequency = <200000000>;
                        u-boot,dm-pre-reloc;
                };
+
+               refclk50mhz: refclk50mhz {
+                       compatible = "fixed-clock";
+                       #clock-cells = <0>;
+                       clock-frequency = <50000000>;
+               };
        };
 
        ubus {
                wdt1: watchdog@ff802780 {
                        compatible = "brcm,bcm6345-wdt";
                        reg = <0x0 0xff802780 0x0 0x14>;
-                       clocks = <&periph_osc>;
+                       clocks = <&refclk50mhz>;
                };
 
                wdt2: watchdog@ff8027c0 {
                        compatible = "brcm,bcm6345-wdt";
                        reg = <0x0 0xff8027c0 0x0 0x14>;
-                       clocks = <&periph_osc>;
+                       clocks = <&refclk50mhz>;
                };
 
                wdt-reboot {