From: Stefan Roese Date: Mon, 6 May 2019 09:44:00 +0200 Subject: [U-Boot] [PATCH 2/3] dt: bcm6858: watchdog should use a 50Mhz clock In-Reply-To: <1556905388-19249-3-git-send-email-philippe.reynes@softathome.com> References: <1556905388-19249-1-git-send-email-philippe.reynes@softathome.com> <1556905388-19249-3-git-send-email-philippe.reynes@softathome.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: u-boot@lists.denx.de On 03.05.19 19:43, Philippe Reynes wrote: > 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. Just curious: Why is this the case? Is this also what's done in the Linux DT version? Other than that: Reviewed-by: Stefan Roese Thanks, Stefan > Signed-off-by: Philippe Reynes > --- > arch/arm/dts/bcm6858.dtsi | 10 ++++++++-- > 1 file changed, 8 insertions(+), 2 deletions(-) > > diff --git a/arch/arm/dts/bcm6858.dtsi b/arch/arm/dts/bcm6858.dtsi > index 76ba0ea..91f7787 100644 > --- a/arch/arm/dts/bcm6858.dtsi > +++ b/arch/arm/dts/bcm6858.dtsi > @@ -66,6 +66,12 @@ > clock-frequency = <200000000>; > u-boot,dm-pre-reloc; > }; > + > + refclk50mhz: refclk50mhz { > + compatible = "fixed-clock"; > + #clock-cells = <0>; > + clock-frequency = <50000000>; > + }; > }; > > ubus { > @@ -92,13 +98,13 @@ > wdt1: watchdog at ff802780 { > compatible = "brcm,bcm6345-wdt"; > reg = <0x0 0xff802780 0x0 0x14>; > - clocks = <&periph_osc>; > + clocks = <&refclk50mhz>; > }; > > wdt2: watchdog at ff8027c0 { > compatible = "brcm,bcm6345-wdt"; > reg = <0x0 0xff8027c0 0x0 0x14>; > - clocks = <&periph_osc>; > + clocks = <&refclk50mhz>; > }; > > wdt-reboot { > Viele Grüße, Stefan -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr at denx.de