From c6f2253cee421eeee8b8a39c51e2bd110b4685f4 Mon Sep 17 00:00:00 2001 From: Bo Yang Date: Thu, 28 Jun 2018 14:39:55 +0800 Subject: [PATCH] watchdog: meson: add watchdog support for txl PD#168480: add watchdog support for txl Change-Id: I53ac23d1fedec155871ecec3229dedeb13ca7076 Signed-off-by: Bo Yang --- .../devicetree/bindings/amlogic/meson-wdt.txt | 22 +++++++++++++++++++ MAINTAINERS | 1 + drivers/amlogic/watchdog/meson_wdt_v3.c | 1 + 3 files changed, 24 insertions(+) create mode 100644 Documentation/devicetree/bindings/amlogic/meson-wdt.txt diff --git a/Documentation/devicetree/bindings/amlogic/meson-wdt.txt b/Documentation/devicetree/bindings/amlogic/meson-wdt.txt new file mode 100644 index 000000000000..bc5a2efb5a10 --- /dev/null +++ b/Documentation/devicetree/bindings/amlogic/meson-wdt.txt @@ -0,0 +1,22 @@ +Meson SoCs Watchdog timer + +Required properties: + +- compatible : should be one of + "amlogic,meson-gxbb-wdt" + "amlogic,meson-gxl-wdt" + "amlogic,meson-axg-wdt" + "amlogic,meson-txl-wdt" + "amlogic,meson-txlx-wdt" + "amlogic,meson-g12a-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. + +Example: + +wdt: watchdog@98d0 { + compatible = "amlogic,meson-gxbb-wdt"; + reg = <0 0x98d0 0x0 0x10>; + clocks = <&xtal>; +}; diff --git a/MAINTAINERS b/MAINTAINERS index ed8865715618..53931e8569f8 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -13815,6 +13815,7 @@ F: drivers/amlogic/pm/* AMLOGIC WATCHDOG DRIVER SUPPORT M: Bo Yang +F: Documentation/devicetree/bindings/amlogic/meson-wdt.txt F: drivers/amlogic/watchdog/* AMLOGIC LED DRIVER SUPPORT diff --git a/drivers/amlogic/watchdog/meson_wdt_v3.c b/drivers/amlogic/watchdog/meson_wdt_v3.c index 61b602316e26..08faabefe83c 100644 --- a/drivers/amlogic/watchdog/meson_wdt_v3.c +++ b/drivers/amlogic/watchdog/meson_wdt_v3.c @@ -182,6 +182,7 @@ static const struct of_device_id meson_wdt_dt_ids[] = { { .compatible = "amlogic,meson-gxbb-wdt", }, { .compatible = "amlogic,meson-gxl-wdt", }, { .compatible = "amlogic,meson-axg-wdt", }, + { .compatible = "amlogic,meson-txl-wdt", }, { .compatible = "amlogic,meson-txlx-wdt", }, { .compatible = "amlogic,meson-g12a-wdt", }, { /* sentinel */ },