From patchwork Tue Jun 13 01:14:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Keiji Hayashibara X-Patchwork-Id: 103682 Delivered-To: patch@linaro.org Received: by 10.140.91.77 with SMTP id y71csp179689qgd; Mon, 12 Jun 2017 18:15:33 -0700 (PDT) X-Received: by 10.98.79.25 with SMTP id d25mr45785155pfb.130.1497316532919; Mon, 12 Jun 2017 18:15:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1497316532; cv=none; d=google.com; s=arc-20160816; b=v/zQWYSkT6xJ+tZVHfV4HRTJFxJum+TWa/enSlk7u1lc+DcqsOQGl/vTs4TrFNxB6o lVFAU/JXvX87zXJMtvGQ19jO0304Mq5SML65sCUFmJ2uJPlS455EOQfUfT3UbccIdJDm 3Ywa4sN3DYXm7sOVHQQyNB8rCZUMlSVIVhIPDscxziyWSkbhtwdyo1JYqjO9nAiEY1Vo 3AmV3mMz80/pEE+VGXtXfm4NBX8c5D36Qxuz7o1mqKvTTiLgXAcd00kgH8dyBCZsKOE7 WE/+r75tMg4OnfzMOFgFCtrJkl2MBuv2wUokk13fud/rA0DgFomVGiAVlEn2K0dFUlfO Ulog== 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:arc-authentication-results; bh=tUFZCKcO7xao1nXWhwUUja6WyW6kE1DLNZyM+ek2Xp4=; b=aGyZ0Qb+XBm+lwkMKT7lQB8BqVNzIlMgJ0JAsuaRS02FYFJJGoDp4L9Vvb/heFdpt1 VgpNZFLYMZE8lZ1+x610hkMcTGC3F0TnFIVwMc4LeFSidCa+xI6alZ5Na/xN6DiKShSL PF4AL/i2fhnnjCn94Zi5N0bjw5vtVZJMUCqmmrYdHaENbDXUx6wvTOCorcypMKgxo+/R HSiSB7mzelAxBjTzvoKGW+wVBhKL1tQvWviF07p40h05mSlW4y0hdO848Xrc3RlHglIJ yRE3hEWN0NaIPowinoGM5tuYZBdBcfabYTjLv6HtLUc7Z4nXOYkQTwEZFpAusZJLfKJ9 jJ6Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s129si214861pgc.407.2017.06.12.18.15.32; Mon, 12 Jun 2017 18:15:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753355AbdFMBPO (ORCPT + 25 others); Mon, 12 Jun 2017 21:15:14 -0400 Received: from mx.socionext.com ([202.248.49.38]:7097 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753231AbdFMBPM (ORCPT ); Mon, 12 Jun 2017 21:15:12 -0400 Received: from unknown (HELO kinkan-ex.css.socionext.com) ([172.31.9.52]) by mx.socionext.com with ESMTP; 13 Jun 2017 10:15:06 +0900 Received: from mail.mfilter.local (unknown [10.213.24.62]) by kinkan-ex.css.socionext.com (Postfix) with ESMTP id 19D741810FC; Tue, 13 Jun 2017 10:15:06 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Tue, 13 Jun 2017 10:15:06 +0900 Received: from plum.e01.socionext.com (unknown [10.213.132.32]) by kinkan.css.socionext.com (Postfix) with ESMTP id 552B91A1209; Tue, 13 Jun 2017 10:15:05 +0900 (JST) From: Keiji Hayashibara To: wim@iguana.be, linux@roeck-us.net Cc: linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org, robh+dt@kernel.org, devicetree@vger.kernel.org, masami.hiramatsu@linaro.org, jaswinder.singh@linaro.org, yamada.masahiro@socionext.com, hayashi.kunihiko@socionext.com, owada.kiyoshi@socionext.com, Keiji Hayashibara Subject: [PATCH V3 1/3] dt-bindings: watchdog: add description for UniPhier WDT controller Date: Tue, 13 Jun 2017 10:14:57 +0900 Message-Id: <1497316499-22254-2-git-send-email-hayashibara.keiji@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1497316499-22254-1-git-send-email-hayashibara.keiji@socionext.com> References: <1497316499-22254-1-git-send-email-hayashibara.keiji@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add uniphier-wdt dt-bindings documentation. Signed-off-by: Keiji Hayashibara --- .../devicetree/bindings/watchdog/uniphier-wdt.txt | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Documentation/devicetree/bindings/watchdog/uniphier-wdt.txt -- 2.7.4 diff --git a/Documentation/devicetree/bindings/watchdog/uniphier-wdt.txt b/Documentation/devicetree/bindings/watchdog/uniphier-wdt.txt new file mode 100644 index 0000000..bf63375 --- /dev/null +++ b/Documentation/devicetree/bindings/watchdog/uniphier-wdt.txt @@ -0,0 +1,20 @@ +UniPhier watchdog timer controller + +This UniPhier watchdog timer controller must be under sysctrl node. + +Required properties: +- compatible: should be "socionext,uniphier-wdt" + +Example: + + sysctrl@61840000 { + compatible = "socionext,uniphier-ld11-sysctrl", + "simple-mfd", "syscon"; + reg = <0x61840000 0x4000>; + + watchdog { + compatible = "socionext,uniphier-wdt"; + } + + other nodes ... + }; From patchwork Tue Jun 13 01:14:58 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Keiji Hayashibara X-Patchwork-Id: 103684 Delivered-To: patch@linaro.org Received: by 10.140.91.77 with SMTP id y71csp179772qgd; Mon, 12 Jun 2017 18:15:48 -0700 (PDT) X-Received: by 10.84.228.194 with SMTP id y2mr59544441pli.13.1497316547917; Mon, 12 Jun 2017 18:15:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1497316547; cv=none; d=google.com; s=arc-20160816; b=SLdyHk+iNwlxcdVPNgN+U12MWrxCkKLoY5lDdK7vil+hWWVJ4V0yohmgdmQOvPs6kl iBBJKz+Yvo44iSTagaNSPmY48DPOpvNqF2FSxw1UMUd66n2/e9yibAkU1e+36U5LONRY ECRfo72D1jeEfdxE3Dr2u3FwYqz/AVZj1sOpFZ35/4FNkcKboPJhFJH5BN7q+Jvd+vQJ i1OiKCiyaQEo/b+qPFkFfGiZhFxaRqNa5Liyom6kV/12lmSPo4+/WiddYz/DFvuSsa3d 2k7w2erG0q1u48QcB+MKsq9rjOvJHT7oC9OCo8q/xa1VXJM4RlgKqUr5rw3E7pr4syTo kRDw== 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:arc-authentication-results; bh=Tui3p8d/Vr3AgmXgsCsNtleFfrZFytMN0v1OxPdIxZA=; b=g72HufnbYTswTIGBGabU6jRH6gCgYxu25Bt8+RzqgDMv1cF2oGBITJ5L2qjlc+uCva HGxT4kdZpHyKixCA4GB6uqpa2tqvDrdvky+X5polxhD8kBNjtGtw5FoS9XaCk0lNxLaX c6aRxmY2CWnAn47i+ChOp4BHFM5GopJcl4isLwZdYoS+2Qn5aWW069e1K62a5Lsc351s /+bq+/RHo7/krvRsNT0tMfOXgH/SaZ0jb7Q9WwKqcWDcUKnhbzzBWAX5SwoctqQ48J89 sD6aTUcGUIEo7l91VdoxUppRcETtBEg7jJi43Gw/F7NhVY5lsurf1miT5KToFMspARMn RWfQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p6si207131pgc.377.2017.06.12.18.15.47; Mon, 12 Jun 2017 18:15:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753396AbdFMBPk (ORCPT + 25 others); Mon, 12 Jun 2017 21:15:40 -0400 Received: from mx.socionext.com ([202.248.49.38]:7101 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753334AbdFMBPN (ORCPT ); Mon, 12 Jun 2017 21:15:13 -0400 Received: from unknown (HELO kinkan-ex.css.socionext.com) ([172.31.9.52]) by mx.socionext.com with ESMTP; 13 Jun 2017 10:15:06 +0900 Received: from mail.mfilter.local (unknown [10.213.24.61]) by kinkan-ex.css.socionext.com (Postfix) with ESMTP id BD67A1810FC; Tue, 13 Jun 2017 10:15:06 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Tue, 13 Jun 2017 10:15:06 +0900 Received: from plum.e01.socionext.com (unknown [10.213.132.32]) by kinkan.css.socionext.com (Postfix) with ESMTP id 3E1E01A1209; Tue, 13 Jun 2017 10:15:06 +0900 (JST) From: Keiji Hayashibara To: wim@iguana.be, linux@roeck-us.net Cc: linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org, robh+dt@kernel.org, devicetree@vger.kernel.org, masami.hiramatsu@linaro.org, jaswinder.singh@linaro.org, yamada.masahiro@socionext.com, hayashi.kunihiko@socionext.com, owada.kiyoshi@socionext.com, Keiji Hayashibara Subject: [PATCH V3 2/3] watchdog: uniphier: add UniPhier watchdog driver Date: Tue, 13 Jun 2017 10:14:58 +0900 Message-Id: <1497316499-22254-3-git-send-email-hayashibara.keiji@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1497316499-22254-1-git-send-email-hayashibara.keiji@socionext.com> References: <1497316499-22254-1-git-send-email-hayashibara.keiji@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a watchdog driver for Socionext UniPhier series SoC. Note that the timeout value for this device must be a power of 2 because of the specification. Signed-off-by: Keiji Hayashibara --- Documentation/watchdog/watchdog-parameters.txt | 6 + drivers/watchdog/Kconfig | 11 + drivers/watchdog/Makefile | 1 + drivers/watchdog/uniphier_wdt.c | 268 +++++++++++++++++++++++++ 4 files changed, 286 insertions(+) create mode 100644 drivers/watchdog/uniphier_wdt.c -- 2.7.4 diff --git a/Documentation/watchdog/watchdog-parameters.txt b/Documentation/watchdog/watchdog-parameters.txt index 4f7d86d..6f9d7b4 100644 --- a/Documentation/watchdog/watchdog-parameters.txt +++ b/Documentation/watchdog/watchdog-parameters.txt @@ -369,6 +369,12 @@ timeout: Watchdog timeout in seconds. (0 +#include +#include +#include +#include +#include +#include + +/* WDT timer setting register */ +#define WDTTIMSET 0x3004 +#define WDTTIMSET_PERIOD_MASK (0xf << 0) +#define WDTTIMSET_PERIOD_1_SEC (0x3 << 0) + +/* WDT reset selection register */ +#define WDTRSTSEL 0x3008 +#define WDTRSTSEL_RSTSEL_MASK (0x3 << 0) +#define WDTRSTSEL_RSTSEL_BOTH (0x0 << 0) +#define WDTRSTSEL_RSTSEL_IRQ_ONLY (0x2 << 0) + +/* WDT control register */ +#define WDTCTRL 0x300c +#define WDTCTRL_STATUS BIT(8) +#define WDTCTRL_CLEAR BIT(1) +#define WDTCTRL_ENABLE BIT(0) + +#define SEC_TO_WDTTIMSET_PRD(sec) \ + (ilog2(sec) + WDTTIMSET_PERIOD_1_SEC) + +#define WDTST_TIMEOUT 1000 /* usec */ + +#define WDT_DEFAULT_TIMEOUT 64 /* Default is 64 seconds */ +#define WDT_PERIOD_MIN 1 +#define WDT_PERIOD_MAX 128 + +static unsigned int timeout; +static bool nowayout = WATCHDOG_NOWAYOUT; + +struct uniphier_wdt_dev { + struct watchdog_device wdt_dev; + struct regmap *regmap; +}; + +/* + * UniPhier Watchdog operations + */ +static int uniphier_watchdog_ping(struct watchdog_device *w) +{ + struct uniphier_wdt_dev *wdev = watchdog_get_drvdata(w); + unsigned int val; + int ret; + + /* Clear counter */ + ret = regmap_write_bits(wdev->regmap, WDTCTRL, + WDTCTRL_CLEAR, WDTCTRL_CLEAR); + if (!ret) + /* + * As SoC specification, after clear counter, + * it needs to wait until counter status is 1. + */ + ret = regmap_read_poll_timeout(wdev->regmap, WDTCTRL, val, + (val & WDTCTRL_STATUS), + 0, WDTST_TIMEOUT); + + return ret; +} + +static int __uniphier_watchdog_start(struct regmap *regmap, unsigned int sec) +{ + unsigned int val; + int ret; + + ret = regmap_read_poll_timeout(regmap, WDTCTRL, val, + !(val & WDTCTRL_STATUS), + 0, WDTST_TIMEOUT); + if (ret) + return ret; + + /* Setup period */ + ret = regmap_write(regmap, WDTTIMSET, + SEC_TO_WDTTIMSET_PRD(sec)); + if (ret) + return ret; + + /* Enable and clear watchdog */ + ret = regmap_write(regmap, WDTCTRL, WDTCTRL_ENABLE | WDTCTRL_CLEAR); + if (!ret) + /* + * As SoC specification, after clear counter, + * it needs to wait until counter status is 1. + */ + ret = regmap_read_poll_timeout(regmap, WDTCTRL, val, + (val & WDTCTRL_STATUS), + 0, WDTST_TIMEOUT); + + return ret; +} + +static int __uniphier_watchdog_stop(struct regmap *regmap) +{ + /* Disable and stop watchdog */ + return regmap_write_bits(regmap, WDTCTRL, WDTCTRL_ENABLE, 0); +} + +static int __uniphier_watchdog_restart(struct regmap *regmap, unsigned int sec) +{ + int ret; + + ret = __uniphier_watchdog_stop(regmap); + if (ret) + return ret; + + return __uniphier_watchdog_start(regmap, sec); +} + +static int uniphier_watchdog_start(struct watchdog_device *w) +{ + struct uniphier_wdt_dev *wdev = watchdog_get_drvdata(w); + unsigned int tmp_timeout; + + tmp_timeout = roundup_pow_of_two(w->timeout); + + return __uniphier_watchdog_start(wdev->regmap, tmp_timeout); +} + +static int uniphier_watchdog_stop(struct watchdog_device *w) +{ + struct uniphier_wdt_dev *wdev = watchdog_get_drvdata(w); + + return __uniphier_watchdog_stop(wdev->regmap); +} + +static int uniphier_watchdog_set_timeout(struct watchdog_device *w, + unsigned int t) +{ + struct uniphier_wdt_dev *wdev = watchdog_get_drvdata(w); + unsigned int tmp_timeout; + int ret; + + tmp_timeout = roundup_pow_of_two(t); + if (tmp_timeout == w->timeout) + return 0; + + if (watchdog_active(w)) { + ret = __uniphier_watchdog_restart(wdev->regmap, tmp_timeout); + if (ret) + return ret; + } + + w->timeout = tmp_timeout; + + return 0; +} + +/* + * Kernel Interfaces + */ +static const struct watchdog_info uniphier_wdt_info = { + .identity = "uniphier-wdt", + .options = WDIOF_SETTIMEOUT | + WDIOF_KEEPALIVEPING | + WDIOF_MAGICCLOSE | + WDIOF_OVERHEAT, +}; + +static const struct watchdog_ops uniphier_wdt_ops = { + .owner = THIS_MODULE, + .start = uniphier_watchdog_start, + .stop = uniphier_watchdog_stop, + .ping = uniphier_watchdog_ping, + .set_timeout = uniphier_watchdog_set_timeout, +}; + +static int uniphier_wdt_probe(struct platform_device *pdev) +{ + struct device *dev = &pdev->dev; + struct uniphier_wdt_dev *wdev; + struct regmap *regmap; + struct device_node *parent; + int ret; + + wdev = devm_kzalloc(dev, sizeof(*wdev), GFP_KERNEL); + if (!wdev) + return -ENOMEM; + + platform_set_drvdata(pdev, wdev); + + parent = of_get_parent(dev->of_node); /* parent should be syscon node */ + regmap = syscon_node_to_regmap(parent); + of_node_put(parent); + if (IS_ERR(regmap)) + return PTR_ERR(regmap); + + wdev->regmap = regmap; + wdev->wdt_dev.info = &uniphier_wdt_info; + wdev->wdt_dev.ops = &uniphier_wdt_ops; + wdev->wdt_dev.max_timeout = WDT_PERIOD_MAX; + wdev->wdt_dev.min_timeout = WDT_PERIOD_MIN; + wdev->wdt_dev.parent = dev; + + if (watchdog_init_timeout(&wdev->wdt_dev, timeout, dev) < 0) + wdev->wdt_dev.timeout = WDT_DEFAULT_TIMEOUT; + + watchdog_set_nowayout(&wdev->wdt_dev, nowayout); + watchdog_stop_on_reboot(&wdev->wdt_dev); + + watchdog_set_drvdata(&wdev->wdt_dev, wdev); + + uniphier_watchdog_stop(&wdev->wdt_dev); + ret = regmap_write(wdev->regmap, WDTRSTSEL, WDTRSTSEL_RSTSEL_BOTH); + if (ret) + return ret; + + ret = devm_watchdog_register_device(dev, &wdev->wdt_dev); + if (ret) + return ret; + + dev_info(dev, "watchdog driver (timeout=%d sec, nowayout=%d)\n", + wdev->wdt_dev.timeout, nowayout); + + return 0; +} + +static const struct of_device_id uniphier_wdt_dt_ids[] = { + { .compatible = "socionext,uniphier-wdt" }, + { /* sentinel */ } +}; +MODULE_DEVICE_TABLE(of, uniphier_wdt_dt_ids); + +static struct platform_driver uniphier_wdt_driver = { + .probe = uniphier_wdt_probe, + .driver = { + .name = "uniphier-wdt", + .of_match_table = uniphier_wdt_dt_ids, + }, +}; + +module_platform_driver(uniphier_wdt_driver); + +module_param(timeout, uint, 0000); +MODULE_PARM_DESC(timeout, + "Watchdog timeout seconds in power of 2. (0 < timeout < 128, default=" + __MODULE_STRING(WDT_DEFAULT_TIMEOUT) ")"); + +module_param(nowayout, bool, 0000); +MODULE_PARM_DESC(nowayout, + "Watchdog cannot be stopped once started (default=" + __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + +MODULE_AUTHOR("Keiji Hayashibara "); +MODULE_DESCRIPTION("UniPhier Watchdog Device Driver"); +MODULE_LICENSE("GPL v2"); From patchwork Tue Jun 13 01:14:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Keiji Hayashibara X-Patchwork-Id: 103683 Delivered-To: patch@linaro.org Received: by 10.140.91.77 with SMTP id y71csp179691qgd; Mon, 12 Jun 2017 18:15:33 -0700 (PDT) X-Received: by 10.99.156.18 with SMTP id f18mr56436379pge.25.1497316533344; Mon, 12 Jun 2017 18:15:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1497316533; cv=none; d=google.com; s=arc-20160816; b=ntU9NsjAaXtzF4yvjhgiqxH7JZWaIK1cFAXQGiueVgTGEn0plIVvyQPUCSGvD2ydIM hiHNBqMuoh3xiAt3bE2yUPBh+uZGWxCKDwIgD6T+l/xwwRKOU929a5IZ76orbV/Pl/qu TJbVMVBnv7igvq3PAWKUpqrR5DsFKpnYx2JUHaU8o1rVpV+RhiDqLnfPb6hDNluQrPjC J44whg1w8S3LmfuY4ez9RtoqVICUYmByAtlPx2xWSaUlThIUp+22wNkC3tUas+63cVAR TSA8NkTvJp2zmKudyIDI5svSue3mXKz8Tp63Y0YRBkpswvEPgXKgm7xh7eJUtxIFS8EH 2TOw== 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:arc-authentication-results; bh=GmNAD7rJYOH6ioUmEu2lMuFBhaxfAG0MIjSK7pZvWxY=; b=xdf5Fxqa2xx0Iwlt0P9J2C3aYLvDVDQ2bFE5Mk9XWZJ88o9zLnSahOaEcyVx1pUHKS Z6xBnBBpBb37RLVWV0I+BW5vlmjGKrDy95k9Xunq/pmppCs6MFVC6pRID8YGwNbzcrDc NtvC6s3OxU9NVLYRvUiXtpJd1Vk9llvasKZ7eXqlUrYyIfCYp/9GkUdtYJyBWd0Oo3a/ MAYFyhHdQKjWnIGkPiPvrK3DETWAgRE+X8mbdVMjBzD99Hqe9iaSsmHXSuQeq9AX1yxq szTHZu1gIgrAI3YUwtTLYGIWRgvYDJ9qZFfw0+WnpiFK53YGRx3Y4eiuN7eEOLclerTv h1TQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s129si214861pgc.407.2017.06.12.18.15.33; Mon, 12 Jun 2017 18:15:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753379AbdFMBPU (ORCPT + 25 others); Mon, 12 Jun 2017 21:15:20 -0400 Received: from mx.socionext.com ([202.248.49.38]:7093 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753231AbdFMBPS (ORCPT ); Mon, 12 Jun 2017 21:15:18 -0400 Received: from unknown (HELO kinkan-ex.css.socionext.com) ([172.31.9.52]) by mx.socionext.com with ESMTP; 13 Jun 2017 10:15:08 +0900 Received: from mail.mfilter.local (unknown [10.213.24.62]) by kinkan-ex.css.socionext.com (Postfix) with ESMTP id AA48C1810FC; Tue, 13 Jun 2017 10:15:07 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Tue, 13 Jun 2017 10:15:07 +0900 Received: from plum.e01.socionext.com (unknown [10.213.132.32]) by kinkan.css.socionext.com (Postfix) with ESMTP id 1EC481A1209; Tue, 13 Jun 2017 10:15:07 +0900 (JST) From: Keiji Hayashibara To: wim@iguana.be, linux@roeck-us.net Cc: linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org, robh+dt@kernel.org, devicetree@vger.kernel.org, masami.hiramatsu@linaro.org, jaswinder.singh@linaro.org, yamada.masahiro@socionext.com, hayashi.kunihiko@socionext.com, owada.kiyoshi@socionext.com, Keiji Hayashibara Subject: [PATCH V3 3/3] arm64: dts: uniphier: add watchdog node for LD11 and LD20 Date: Tue, 13 Jun 2017 10:14:59 +0900 Message-Id: <1497316499-22254-4-git-send-email-hayashibara.keiji@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1497316499-22254-1-git-send-email-hayashibara.keiji@socionext.com> References: <1497316499-22254-1-git-send-email-hayashibara.keiji@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add nodes of watchdog timer for UniPhier LD11 and LD20 SoC. The watchdog timer is included in sysctrl. Signed-off-by: Keiji Hayashibara --- arch/arm64/boot/dts/socionext/uniphier-ld11.dtsi | 4 ++++ arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi | 4 ++++ 2 files changed, 8 insertions(+) -- 2.7.4 diff --git a/arch/arm64/boot/dts/socionext/uniphier-ld11.dtsi b/arch/arm64/boot/dts/socionext/uniphier-ld11.dtsi index da881f5..5fee3e3 100644 --- a/arch/arm64/boot/dts/socionext/uniphier-ld11.dtsi +++ b/arch/arm64/boot/dts/socionext/uniphier-ld11.dtsi @@ -393,6 +393,10 @@ compatible = "socionext,uniphier-ld11-reset"; #reset-cells = <1>; }; + + watchdog { + compatible = "socionext,uniphier-wdt"; + }; }; }; }; diff --git a/arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi b/arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi index a6b3a70..d4d82c8 100644 --- a/arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi +++ b/arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi @@ -417,6 +417,10 @@ compatible = "socionext,uniphier-ld20-reset"; #reset-cells = <1>; }; + + watchdog { + compatible = "socionext,uniphier-wdt"; + }; }; }; };