watchdog: meson: add watchdog support for tl1
authorBo Yang <bo.yang@amlogic.com>
Mon, 24 Sep 2018 03:11:39 +0000 (11:11 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Sat, 29 Sep 2018 13:04:42 +0000 (06:04 -0700)
PD#172587: watchdog: meson: add watchdog support for tl1

TL1's watchdog is same with G12A.

Change-Id: Iaa8c502e6a8889a33ed2875e7a16cca07873738a
Signed-off-by: Bo Yang <bo.yang@amlogic.com>
Documentation/devicetree/bindings/amlogic/meson-wdt.txt
drivers/amlogic/watchdog/meson_wdt_v3.c

index bc5a2ef..1345262 100644 (file)
@@ -9,6 +9,7 @@ Required properties:
                "amlogic,meson-txl-wdt"
                "amlogic,meson-txlx-wdt"
                "amlogic,meson-g12a-wdt"
+               "amlogic,meson-tl1-wdt"
 - reg : Specifies base physical address and size of the registers.
 - clocks : Should be a phandle to the Watchdog clock source, for GXBB the xtal
           is the default clock source.
@@ -20,3 +21,19 @@ wdt: watchdog@98d0 {
        reg = <0 0x98d0 0x0 0x10>;
        clocks = <&xtal>;
 };
+
+wdt: watchdog@0xffd0f0d0 {
+       compatible = "amlogic,meson-g12a-wdt";
+       status = "okay";
+       reg = <0x0 0xffd0f0d0 0x0 0x10>;
+       clock-names = "xtal";
+       clocks = <&xtal>;
+};
+
+wdt: watchdog@0xffd0f0d0 {
+       compatible = "amlogic,meson-tl1-wdt";
+       status = "okay";
+       reg = <0xffd0f0d0 0x10>;
+       clock-names = "xtal";
+       clocks = <&xtal>;
+};
index 08faabe..0fa6800 100644 (file)
@@ -185,6 +185,7 @@ static const struct of_device_id meson_wdt_dt_ids[] = {
         { .compatible = "amlogic,meson-txl-wdt", },
         { .compatible = "amlogic,meson-txlx-wdt", },
         { .compatible = "amlogic,meson-g12a-wdt", },
+        { .compatible = "amlogic,meson-tl1-wdt", },
         { /* sentinel */ },
 };
 MODULE_DEVICE_TABLE(of, meson_wdt_dt_ids);