ARM: dts: mstar: Add watchdog device node
authorRomain Perier <romain.perier@gmail.com>
Fri, 11 Jun 2021 20:08:01 +0000 (22:08 +0200)
committerDaniel Palmer <daniel@0x0f.com>
Tue, 15 Jun 2021 16:22:52 +0000 (01:22 +0900)
This adds the definition of both an oscillator at 12Mhz required by the
the watchdog and the watchdog device node.

Signed-off-by: Romain Perier <romain.perier@gmail.com>
Signed-off-by: Daniel Palmer <daniel@0x0f.com>
arch/arm/boot/dts/mstar-v7.dtsi

index 075d583..2273295 100644 (file)
                        clock-frequency = <32768>;
                        status = "disabled";
                };
+
+               xtal_div2: xtal_div2 {
+                       #clock-cells = <0>;
+                       compatible = "fixed-factor-clock";
+                       clocks = <&xtal>;
+                       clock-div = <2>;
+                       clock-mult = <1>;
+               };
        };
 
        soc: soc {
                                mask = <0x79>;
                        };
 
+                       watchdog@6000 {
+                               compatible = "mstar,msc313e-wdt";
+                               reg = <0x6000 0x1f>;
+                               clocks = <&xtal_div2>;
+                       };
+
                        intc_fiq: interrupt-controller@201310 {
                                compatible = "mstar,mst-intc";
                                reg = <0x201310 0x40>;