From patchwork Sat Nov 17 08:28:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Loic Poulain X-Patchwork-Id: 151411 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp305188ljp; Sat, 17 Nov 2018 00:28:46 -0800 (PST) X-Google-Smtp-Source: AJdET5fTkZIbZxOnxVZMe58QF6Qd2XAJKsOaVzNFf+7zQiHwjVzQhbUrvYyvLatSEYR9fvHZrGsK X-Received: by 2002:a17:902:9a81:: with SMTP id w1-v6mr5560359plp.121.1542443326068; Sat, 17 Nov 2018 00:28:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542443326; cv=none; d=google.com; s=arc-20160816; b=CjddMBUWhqTtE04PTEfhv5iIijQYwRDDVDle0p9XH+q4JQ2qlzLmfvF7SHK3bisfd9 YxIzKnQmV2pJHGHWOrae1fkb2zZhtSrbK+3SNP0tdsSa8qr9so012CbhjzXAwLqk8ORp YcEE+qGF6WL/bWjTFUqammMhVZMWJHwvD4O9YOwZfDA4iaWMClg3llRINNoXs04LixXh +5PSybeLHYgixuIu81OvSMcV50YTddfVrQrDXnszUbYqrItfIHGXw/d76Pmnhb/OaSs0 3vlFQBZ7CPtsA29NjUFK7zA3H1YfyP2i0uc059VQrSqWutuorHr0yYdMXNXFTDaJvMc3 TZXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=hdvhycw/E8VUK1/RPRf5NQ1Luu4gEET2rjEYwB0CbiI=; b=PoCAaSXHFGb2s35vBc0XmkqzaLcLaoxg1QPwyf1HIA87kqxCgbz3zxEWRtvhZxswk8 KUPrzp79Jo1VWfJFY/N+YgANAomz/WWdM8jKsgZib4FxknKDkRDwI5PWkAdqKqSMm0iq 6VpNbkOJDYyHHICKIhtIw5mK95OLorC2PC1uUAAbnTQSFNe89r0kk0VZVa7fDE5qA/8c XWVmVQ70NSHe0KIN1CaaxAwTQK2dvnWUhSoYwT7VFLXrcLwQQHMLLVSKf7btOQ59utNU LulkEGMdwIOswpKBlA849j00NvoD6kG/tDzvU0Zzl9i1f7XqK86XaYMBcS/jVv65lbl9 S2eA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fCHDptd0; spf=pass (google.com: best guess record for domain of linux-watchdog-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-watchdog-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j10si15602591pll.179.2018.11.17.00.28.45 for ; Sat, 17 Nov 2018 00:28:46 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-watchdog-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fCHDptd0; spf=pass (google.com: best guess record for domain of linux-watchdog-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-watchdog-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725980AbeKQSok (ORCPT ); Sat, 17 Nov 2018 13:44:40 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:53584 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725875AbeKQSok (ORCPT ); Sat, 17 Nov 2018 13:44:40 -0500 Received: by mail-wm1-f65.google.com with SMTP id g131so314639wmg.3 for ; Sat, 17 Nov 2018 00:28:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=hdvhycw/E8VUK1/RPRf5NQ1Luu4gEET2rjEYwB0CbiI=; b=fCHDptd0QuLg8rL/8U9+KHlgqggj/FqjbfTIEO6t2a8RS3sC1j+YtkELVI2lnkIjVH 82L7yAfNYK4wdjTtXKDBcPC9vC8sf9ScJye9XVxigVwKfOmnlRhOBiBNcc8clGB5qf9N VznsbpVCJeGOIzBeF3851lMgg+uN6Dpc9NerE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=hdvhycw/E8VUK1/RPRf5NQ1Luu4gEET2rjEYwB0CbiI=; b=nGY+/Lwd1PbJbqMHKszKHB+YTrWgvJc7q6UqIcPYDrPPjuMugkfYWm5oTpQbFekbZb DyfdZkFidjKucxXJxltL7RiegFC+OnaE8Wd3DjyccBGgrPXBymKmL9odthQOeQKCQ+hm 8B0jXx3jN/7u7+plU/7yptOkcElb+hkEjSFWryyP0Oys2UedNg6fLD48P5vEa3I+4Y9I K3yMreUX79gZA63jGu/XP26ywE23q1utB2z1ZB4kmXzERAkxuXTrIrnKvbX9QswB0q7X j38wVgxRUbx+wQsnTptWC/PbULJdyVmkL1Ck/exwYxPMZ1vbFdY4O+eG0fLlnkygO2fj jvmQ== X-Gm-Message-State: AGRZ1gKQwSbv12Qhl8ZHWeATVridj+J5RqCckLwsqHdBcrEJVHJLNFlP oAZgkZMuRti0rY2qrjB1aJ2ZGDT/x5M= X-Received: by 2002:a1c:7601:: with SMTP id r1mr960134wmc.98.1542443322525; Sat, 17 Nov 2018 00:28:42 -0800 (PST) Received: from lpoulain-ThinkPad-T470p.home (atoulouse-654-1-394-222.w90-55.abo.wanadoo.fr. [90.55.193.222]) by smtp.gmail.com with ESMTPSA id e10-v6sm31993276wmg.23.2018.11.17.00.28.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 17 Nov 2018 00:28:41 -0800 (PST) From: Loic Poulain To: wim@linux-watchdog.org, linux@roeck-us.net, robh+dt@kernel.org Cc: linux-arm-msm@vger.kernel.org, linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, andy.gross@linaro.org, Loic Poulain Subject: [PATCH 1/3] watchdog: Add pm8916 watchdog driver Date: Sat, 17 Nov 2018 09:28:37 +0100 Message-Id: <1542443319-23369-1-git-send-email-loic.poulain@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-watchdog-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-watchdog@vger.kernel.org The PM816 module is a versatile PMIC with many diverse functions integrated, including, a watchdog. This watchdog is subcomponent of the PON (Power On) peripheral, in the same way as pwrkey/resin buttons. It works with two timers (2-stages), the first one generates an IRQ to the main SoC (APQ8016/MSM8916), the second one performs the reset. This driver expects the following device hierachy: [pm8916]->[pm8916-pon]->[pm8916-wdt] It uses the pm8916 regmap to access PM8916 registers. Signed-off-by: Loic Poulain --- drivers/watchdog/Kconfig | 8 ++ drivers/watchdog/Makefile | 1 + drivers/watchdog/pm8916_wdt.c | 177 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 186 insertions(+) create mode 100644 drivers/watchdog/pm8916_wdt.c -- 2.7.4 diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig index 2d64333..66bab61 100644 --- a/drivers/watchdog/Kconfig +++ b/drivers/watchdog/Kconfig @@ -847,6 +847,14 @@ config SPRD_WATCHDOG Say Y here to include watchdog timer supported by Spreadtrum system. +config PM8916_WATCHDOG + tristate "QCOM pm8916 pmic watchdog" + depends on OF && MFD_SPMI_PMIC + select WATCHDOG_CORE + help + Say Y here to include support watchdog timer embedded into the + pm8916 module. + # X86 (i386 + ia64 + x86_64) Architecture config ACQUIRE_WDT diff --git a/drivers/watchdog/Makefile b/drivers/watchdog/Makefile index f69cdff..cc90e72 100644 --- a/drivers/watchdog/Makefile +++ b/drivers/watchdog/Makefile @@ -92,6 +92,7 @@ obj-$(CONFIG_STM32_WATCHDOG) += stm32_iwdg.o obj-$(CONFIG_UNIPHIER_WATCHDOG) += uniphier_wdt.o obj-$(CONFIG_RTD119X_WATCHDOG) += rtd119x_wdt.o obj-$(CONFIG_SPRD_WATCHDOG) += sprd_wdt.o +obj-$(CONFIG_PM8916_WATCHDOG) += pm8916_wdt.o # X86 (i386 + ia64 + x86_64) Architecture obj-$(CONFIG_ACQUIRE_WDT) += acquirewdt.o diff --git a/drivers/watchdog/pm8916_wdt.c b/drivers/watchdog/pm8916_wdt.c new file mode 100644 index 0000000..36f9763 --- /dev/null +++ b/drivers/watchdog/pm8916_wdt.c @@ -0,0 +1,177 @@ +/* + * Watchdog driver for QCOM PM8916 + * + * Copyright (C) 2018 Loic Poulain, Linaro + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#include +#include +#include +#include +#include +#include +#include +#include + +#define PM8916_WDT_DEFAULT_TIMEOUT 32 + +#define PON_PMIC_WD_RESET_S1_TIMER 0x54 +#define PON_PMIC_WD_RESET_S2_TIMER 0x55 +#define PON_PMIC_WD_RESET_S2_CTL 0x56 +#define PON_PMIC_WD_RESET_S2_CTL2 0x57 +#define PON_PMIC_WD_RESET_PET 0x58 + +#define S2_RESET_EN_MASK BIT(7) +#define S2_RESET_EN (1 << 7) + +#define WATCHDOG_PET_MASK BIT(0) + +struct pm8916_wdt { + struct device *dev; + struct regmap *regmap; + struct watchdog_device wdev; + u32 baseaddr; +}; + +static int pm8916_wdt_start(struct watchdog_device *wdev) +{ + struct pm8916_wdt *wdt = watchdog_get_drvdata(wdev); + + return regmap_update_bits(wdt->regmap, + wdt->baseaddr + PON_PMIC_WD_RESET_S2_CTL2, + S2_RESET_EN_MASK, S2_RESET_EN); +} + +static int pm8916_wdt_stop(struct watchdog_device *wdev) +{ + struct pm8916_wdt *wdt = watchdog_get_drvdata(wdev); + + return regmap_update_bits(wdt->regmap, + wdt->baseaddr + PON_PMIC_WD_RESET_S2_CTL2, + S2_RESET_EN_MASK, 0); +} + +static int pm8916_wdt_ping(struct watchdog_device *wdev) +{ + struct pm8916_wdt *wdt = watchdog_get_drvdata(wdev); + + return regmap_update_bits(wdt->regmap, + wdt->baseaddr + PON_PMIC_WD_RESET_PET, + WATCHDOG_PET_MASK, 1); +} + +static int pm8916_wdt_set_timeout(struct watchdog_device *wdev, + unsigned int timeout) +{ + struct pm8916_wdt *wdt = watchdog_get_drvdata(wdev); + int err; + + wdev->timeout = timeout; + + /* This is a two stages watchdog, set stage-1 timer generate an irq and + * stage-2 trigger the reset. In order to respect expected timeout, set + * stage-1 timer to timeout and stage-2 to 0. + */ + err = regmap_write(wdt->regmap, + wdt->baseaddr + PON_PMIC_WD_RESET_S1_TIMER, + timeout); + if (err) + return err; + + return regmap_write(wdt->regmap, + wdt->baseaddr + PON_PMIC_WD_RESET_S2_TIMER, + 0); +} + +static const struct watchdog_info pm8916_wdt_ident = { + .options = WDIOF_SETTIMEOUT | WDIOF_KEEPALIVEPING, + .identity = "QCOM PM8916 PON WDT", +}; + +static const struct watchdog_ops pm8916_wdt_ops = { + .owner = THIS_MODULE, + .start = pm8916_wdt_start, + .stop = pm8916_wdt_stop, + .ping = pm8916_wdt_ping, + .set_timeout = pm8916_wdt_set_timeout, +}; + +static int pm8916_wdt_probe(struct platform_device *pdev) +{ + struct pm8916_wdt *wdt; + struct device *parent; + int err; + + wdt = devm_kzalloc(&pdev->dev, sizeof(*wdt), GFP_KERNEL); + if (!wdt) + return -ENOMEM; + + wdt->dev = &pdev->dev; + parent = pdev->dev.parent; + + /* + * The pm8916-pon-wdt is a child of the pon device, which is a child + * of the pm8916 mfd device. We want access to the pm8916 registers. + * Retrieve regmap from pm8916 (parent->parent) and base address + * from pm8916-pon (pon). + */ + wdt->regmap = dev_get_regmap(parent->parent, NULL); + if (!wdt->regmap) { + dev_err(&pdev->dev, "failed to locate regmap\n"); + return -ENODEV; + } + + err = device_property_read_u32(parent, "reg", &wdt->baseaddr); + if (err) { + dev_err(&pdev->dev, "failed to get address\n"); + return err; + } + + /* Configure watchdog to hard-reset mode */ + err = regmap_write(wdt->regmap, + wdt->baseaddr + PON_PMIC_WD_RESET_S2_CTL, 0x07); + if (err) { + dev_err(&pdev->dev, "failed configure watchdog\n"); + return err; + } + + wdt->wdev.info = &pm8916_wdt_ident, + wdt->wdev.ops = &pm8916_wdt_ops, + wdt->wdev.parent = &pdev->dev; + wdt->wdev.min_timeout = 1; + wdt->wdev.max_timeout = 127; + wdt->wdev.timeout = PM8916_WDT_DEFAULT_TIMEOUT; + watchdog_set_drvdata(&wdt->wdev, wdt); + + pm8916_wdt_set_timeout(&wdt->wdev, wdt->wdev.timeout); + + return watchdog_register_device(&wdt->wdev); +} + +static const struct of_device_id pm8916_wdt_id_table[] = { + { .compatible = "qcom,pm8916-wdt" }, + { } +}; +MODULE_DEVICE_TABLE(of, pm8916_wdt_id_table); + +static struct platform_driver pm8916_wdt_driver = { + .probe = pm8916_wdt_probe, + .driver = { + .name = "pm8916-wdt", + .of_match_table = of_match_ptr(pm8916_wdt_id_table), + }, +}; +module_platform_driver(pm8916_wdt_driver); + +MODULE_AUTHOR("Loic Poulain "); +MODULE_DESCRIPTION("Qualcomm pm8916 watchdog driver"); +MODULE_LICENSE("GPL v2"); From patchwork Sat Nov 17 08:28:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Loic Poulain X-Patchwork-Id: 151413 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp305232ljp; Sat, 17 Nov 2018 00:28:49 -0800 (PST) X-Google-Smtp-Source: AJdET5dXdMBEYX+JjdzCVeEMQhlqJVVrzmggPDLNyIQDiLQxmH4r2xw/GGH37N5MXVmfCMHTDhB1 X-Received: by 2002:a65:520a:: with SMTP id o10mr13382240pgp.276.1542443329037; Sat, 17 Nov 2018 00:28:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542443329; cv=none; d=google.com; s=arc-20160816; b=Ph+8gARHWWIksEgWzg6udMvBIsB+/DV8mt0PLQUglcYtQrmzbjSIF7+syw0l8SfQ+6 k+IlBrxxY+j/4JcwkajAzKNXAi8d0GSbs594a2cBGASJa/i83Gem797k8fyW0c2IkJ8d z1utNy0tSYMQ5massNEeRK++p08l5e5KEQMzjX7DATb1Ah0116Q5a/Sc+8MTtQciMtzO J7cZUwshSg92ad3u38Tq7rrtsIWhi+mqxXZfLTFcfr8d6Ymglupcnn4aaqKsCzX/kLgD lGLKQAd3RWNUzCEw0sFOSrk0VQ6dzz+sBrYZogWRz56GFbKSQ9/iWs+DlkT5D4Dgi0k1 zTLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=1hs/OB5BktNlnMUn3wlExXszb1XNQxBjbDleqCdo3Wg=; b=NXIMwpzeU9PLyLnjeHAsePJ8NvYgNXTkZCwBJCgwd9CUepjFxJRk7uTs4H+oXL+D+I +7s77OhOUWICQZnGCsyjZhIl8io2eBFaWzWgleuh10jJxKGSkhnmRl6//KsZoADSq9JX Hh/GMcNupX4CwnPpR7J6gly1kmQQyjAVdDP2kVo6eeFyE8w5wq8iZEUBBtZJPdBulDlI +iiSXIsoumQOd9mWzhn3cI3nYuIJb9SYISJEgzWCO6KLBGOIf8HOZn4M6I7kP2nEzbhC A4OGJ3/AeAORRVWWaQjNKUvUW18DM3zZ/6Nycg59EYnhL/L9rJnke9+pF+aS2Ehr9yZV iATg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZohK2IFT; spf=pass (google.com: best guess record for domain of linux-watchdog-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-watchdog-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j10si15602591pll.179.2018.11.17.00.28.48 for ; Sat, 17 Nov 2018 00:28:49 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-watchdog-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZohK2IFT; spf=pass (google.com: best guess record for domain of linux-watchdog-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-watchdog-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725929AbeKQSon (ORCPT ); Sat, 17 Nov 2018 13:44:43 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:36334 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725981AbeKQSon (ORCPT ); Sat, 17 Nov 2018 13:44:43 -0500 Received: by mail-wm1-f68.google.com with SMTP id s11so714659wmh.1 for ; Sat, 17 Nov 2018 00:28:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=1hs/OB5BktNlnMUn3wlExXszb1XNQxBjbDleqCdo3Wg=; b=ZohK2IFTDNK5s2NPRo8NbgA8s59FXWq4cpirJZGlfPSk4i8YcKGKI+FmwrJEV9Ss8i M1TEfCnmIkPeIsHOgPXT9KcgrDM8Px6kRUtVScGBqJsdV/YZm740wEdQ/zctClbJcDx2 B8nKsawwTbcKatLhI7P9J3a1iR1B+Os9HDAwY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=1hs/OB5BktNlnMUn3wlExXszb1XNQxBjbDleqCdo3Wg=; b=BLeuabvvR+iL885L379Y/7y/uFs08JScALcn9/XnrZ5yTyixdrSGF5Y6ZnPu1CtT/r zevK2drt5f/4NlB00xQpHKRk1ah5X8/0l0xsQEwAHPb4nOzHNIQqWVeoIKo/h16qpPcw FZImcBYVmV/1kHdGXU9XaDzJcS+9EISjk3+VSdOXsXiEj86xOOjBauWiodebQEWA8xCY oWIvKRK44g9HhJjfehrNqqmntmD3FYH1wF2hWPgHxCdVeEOAIDKshMxZVQ31IziyCsHZ VtElMPKoV6xDH5J78xmG4cZmHsr0+f+NC2gMUfg5QciZlRh1eUgGhqxzvc3kzKYuVpB7 J+DQ== X-Gm-Message-State: AGRZ1gKYQLO/RlDW0kCVa4W8ts9QQejXuMpOiH2/2DitlYixUkPKvLwn MbMUEXfuSozaydpipcWTpup9jg== X-Received: by 2002:a7b:c110:: with SMTP id w16mr946890wmi.71.1542443325814; Sat, 17 Nov 2018 00:28:45 -0800 (PST) Received: from lpoulain-ThinkPad-T470p.home (atoulouse-654-1-394-222.w90-55.abo.wanadoo.fr. [90.55.193.222]) by smtp.gmail.com with ESMTPSA id e10-v6sm31993276wmg.23.2018.11.17.00.28.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 17 Nov 2018 00:28:45 -0800 (PST) From: Loic Poulain To: wim@linux-watchdog.org, linux@roeck-us.net, robh+dt@kernel.org Cc: linux-arm-msm@vger.kernel.org, linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, andy.gross@linaro.org, Loic Poulain Subject: [PATCH 3/3] arm64: dts: qcom: pm8916: Add PON watchdog node Date: Sat, 17 Nov 2018 09:28:39 +0100 Message-Id: <1542443319-23369-3-git-send-email-loic.poulain@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1542443319-23369-1-git-send-email-loic.poulain@linaro.org> References: <1542443319-23369-1-git-send-email-loic.poulain@linaro.org> Sender: linux-watchdog-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-watchdog@vger.kernel.org Add watchdog child node to the PM8916 PON device. Signed-off-by: Loic Poulain --- arch/arm64/boot/dts/qcom/pm8916.dtsi | 4 ++++ 1 file changed, 4 insertions(+) -- 2.7.4 diff --git a/arch/arm64/boot/dts/qcom/pm8916.dtsi b/arch/arm64/boot/dts/qcom/pm8916.dtsi index a05ebaf..4dfaf9b 100644 --- a/arch/arm64/boot/dts/qcom/pm8916.dtsi +++ b/arch/arm64/boot/dts/qcom/pm8916.dtsi @@ -25,6 +25,10 @@ mode-bootloader = <0x2>; mode-recovery = <0x1>; + watchdog { + compatible = "qcom,pm8916-wdt"; + }; + pwrkey { compatible = "qcom,pm8941-pwrkey"; interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>;