From patchwork Tue Jun 6 09:11:31 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Keiji Hayashibara X-Patchwork-Id: 103138 Delivered-To: patch@linaro.org Received: by 10.182.29.35 with SMTP id g3csp1169378obh; Tue, 6 Jun 2017 02:11:44 -0700 (PDT) X-Received: by 10.84.135.129 with SMTP id 1mr19703202plj.57.1496740304340; Tue, 06 Jun 2017 02:11:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496740304; cv=none; d=google.com; s=arc-20160816; b=MyRqkUbA7NDLtdkc7PGQ90oiyVGnt3fwGDM1tcjhirp6zsZrxwr3fSrDTtcvl1teZM JtZwIoAleayLCnBvWm589DFGas/V5lmRE5u737Jp5dvv0T+Hs52brsKcap8Vnly+UJ1R g99CqDkbLzWQOR+yvhI5OvNamesWS5pPyJuEIAYN3Q7LN7YlleZVtfp8zZJ+X4oO0FXO CXvxn5IRX7dGwcWmmF1H7SnHuXRVojQFUUqHyOayAZz5X5OW//uJVhM7J2uBLsv/MMgu iCFV3TQUXTt54iJS+LT7lk+ROFhyfENf4cYnWOi8Y/ENKOyWRwuqHpKwvGirFPf2A6F/ iM4g== 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 :arc-authentication-results; bh=K4JmoMXDWyHv3qJcxH5NmIKF5rpa6+WUl6i7uAhB+0I=; b=j7q5kD+rqLG4RAeY9Yo4tss96MtjrmTbz0+cV3P9wEebyjjuS6YyKsSsyP6ZuQU1Z1 lZkRWHsXRUyGKYWZt8sGmzcjmzdo16HXAbLHSIJ3cjijv4UnJZ1V0FjkeOHOs/kyIFWy lMfzFmKVuHV2EuDeVNB7Mbvh6Imx1PcQ1uzW7I89opRS8Hg41F7AipI3VqolGjeHx4fX zTulvoBZL8BV/v57/cC9XhLAL7IqE8rktLO+53eYQtW9lnB7+5ruxVteMo1wQcAYjmeZ BwQzY7XBZqjxyqlEyuuWS+hTPJ14qy1KEgI2tjcRUxfQNgqwTfPQYNz/MjGkyCNXH2zp wEaQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b35si8431546plh.317.2017.06.06.02.11.44 for ; Tue, 06 Jun 2017 02:11:44 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751274AbdFFJLn (ORCPT ); Tue, 6 Jun 2017 05:11:43 -0400 Received: from mx.socionext.com ([202.248.49.38]:20155 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751243AbdFFJLn (ORCPT ); Tue, 6 Jun 2017 05:11:43 -0400 Received: from unknown (HELO kinkan-ex.css.socionext.com) ([172.31.9.52]) by mx.socionext.com with ESMTP; 06 Jun 2017 18:11:42 +0900 Received: from mail.mfilter.local (unknown [10.213.24.62]) by kinkan-ex.css.socionext.com (Postfix) with ESMTP id D53CC180B9F; Tue, 6 Jun 2017 18:11:41 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Tue, 6 Jun 2017 18:11:41 +0900 Received: from plum.e01.socionext.com (unknown [10.213.132.32]) by kinkan.css.socionext.com (Postfix) with ESMTP id 77B8E1A1208; Tue, 6 Jun 2017 18:11:41 +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 V2 0/3] add UniPhier watchdog support Date: Tue, 6 Jun 2017 18:11:31 +0900 Message-Id: <1496740294-12653-1-git-send-email-hayashibara.keiji@socionext.com> 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 This series adds support for watchdog timer implemented on UniPhier LD11 and LD20 SoCs. This driver supports watchdog and system reset for SoCs. patch V1 http://www.spinics.net/lists/linux-watchdog/msg11782.html Changes between V2 and V1 ========================= 1. Add barrier code in uniphier_watchdog_ping() and __uniphier_watchdog_start(). When writing WDTCTRL_CLEAR to WDTCTRL register, WDTCTRL_STATUS is updated about 62.5usec(2cycle of 32kHz) later. However, if WDTCTRL_CLEAR is written before WDTCTRL_STATUS is updated, it can't reboot as SoC specification. Therefore, I added barrier code, it waits until WDTCTRL_STATUS is updated. 2. Fix issues according to review comments. * Use WDOG_STOP_ON_REBOOT instead of shutdown method of struct platform_driver. * Separate uniphier-wdt bindings documentation as a patch. * Remove delay.h and add bitops.h header file. * Use devm_watchdog_register_device(). * Remove unnecessary code. Keiji Hayashibara (3): devicetree: add UniPhier WDT devicetree bindings documentation watchdog: uniphier: add UniPhier watchdog driver arm64: dts: uniphier: add watchdog node for LD11 and LD20 .../devicetree/bindings/watchdog/uniphier-wdt.txt | 20 ++ Documentation/watchdog/watchdog-parameters.txt | 6 + arch/arm64/boot/dts/socionext/uniphier-ld11.dtsi | 4 + arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi | 4 + drivers/watchdog/Kconfig | 11 + drivers/watchdog/Makefile | 1 + drivers/watchdog/uniphier_wdt.c | 275 +++++++++++++++++++++ 7 files changed, 321 insertions(+) create mode 100644 Documentation/devicetree/bindings/watchdog/uniphier-wdt.txt create mode 100644 drivers/watchdog/uniphier_wdt.c -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-watchdog" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html