From: Bo Yang Date: Mon, 24 Sep 2018 03:11:39 +0000 (+0800) Subject: watchdog: meson: add watchdog support for tl1 X-Git-Tag: khadas-vims-v0.9.6-release~1326 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=91b9f08333949c932fad0f61b522b4f143853b99;p=platform%2Fkernel%2Flinux-amlogic.git watchdog: meson: add watchdog support for tl1 PD#172587: watchdog: meson: add watchdog support for tl1 TL1's watchdog is same with G12A. Change-Id: Iaa8c502e6a8889a33ed2875e7a16cca07873738a Signed-off-by: Bo Yang --- diff --git a/Documentation/devicetree/bindings/amlogic/meson-wdt.txt b/Documentation/devicetree/bindings/amlogic/meson-wdt.txt index bc5a2ef..1345262 100644 --- a/Documentation/devicetree/bindings/amlogic/meson-wdt.txt +++ b/Documentation/devicetree/bindings/amlogic/meson-wdt.txt @@ -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>; +}; diff --git a/drivers/amlogic/watchdog/meson_wdt_v3.c b/drivers/amlogic/watchdog/meson_wdt_v3.c index 08faabe..0fa6800 100644 --- a/drivers/amlogic/watchdog/meson_wdt_v3.c +++ b/drivers/amlogic/watchdog/meson_wdt_v3.c @@ -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);