From patchwork Wed Jan 25 02:44:47 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 92400 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp2013888qgi; Tue, 24 Jan 2017 18:45:21 -0800 (PST) X-Received: by 10.99.114.19 with SMTP id n19mr44222679pgc.143.1485312321386; Tue, 24 Jan 2017 18:45:21 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d198si7368839pga.192.2017.01.24.18.45.21 for ; Tue, 24 Jan 2017 18:45:21 -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=neutral (body hash did not verify) header.i=@linaro.org; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751137AbdAYCpU (ORCPT ); Tue, 24 Jan 2017 21:45:20 -0500 Received: from mail-pf0-f178.google.com ([209.85.192.178]:33777 "EHLO mail-pf0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751189AbdAYCpU (ORCPT ); Tue, 24 Jan 2017 21:45:20 -0500 Received: by mail-pf0-f178.google.com with SMTP id y143so54476553pfb.0 for ; Tue, 24 Jan 2017 18:45:17 -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=0e1p1mEZ5zYfO7vbfIUnuMg8bSQScjXXxX4vmrQCQ5k=; b=F3mVrK1Y/07c4rzvzbPFwmmyoPtqFXFfVZgWnBt/oUCg+24r+1lF19sk6WX8S10Ft4 TU6u7ZPKocio4YhyUr6dDUciiD0JSAGEhcv/jdUi8Gzcapnpc7Zrk/2jh08zD9riu4Qd CGA02sTfYnQ+R1xRudMlAW5mq+sE+OVbj1K2g= 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=0e1p1mEZ5zYfO7vbfIUnuMg8bSQScjXXxX4vmrQCQ5k=; b=VwBvhdnvJ+OFUr3OLFZW6SIvOp6uVzymtyNLqFxoisvyqkfgb33S1D+x45EZUkzw/m obJy5lJfDLjZxjY2sb91Tz+oZTLkByApqSgu+OlG3JdiILJKrXzG6RCF/1V6kEgfMBov zKn7nGwYKiWjp+vWzrTosqdH1+ffhZSpVVF3fdqJndfywe8y4OfgchImnUi8aNz64gNP KDmYT+clgsl3TCM4+QWbvpx7/+WrI6LWmkCpAsc0jwZQpLUzwRXF5qq8A6AQ/5H4mg/1 hDvmLlTacD+Pv/ncLfIxV7NgjQWgAQyh4ayxZ1QOU12iL/vuvoq1NFnz93Pwz5sifHHy xepQ== X-Gm-Message-State: AIkVDXICvRbmLY+QfE9xZAD6G+DPOvh7d4VkLjX0YhsUxkqzHPw90IoqJmVKfYjrPZaGQvTo X-Received: by 10.98.41.5 with SMTP id p5mr40742353pfp.183.1485312316984; Tue, 24 Jan 2017 18:45:16 -0800 (PST) Received: from localhost.localdomain ([104.237.91.240]) by smtp.gmail.com with ESMTPSA id e127sm47475124pfh.89.2017.01.24.18.45.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 24 Jan 2017 18:45:16 -0800 (PST) From: Baoyou Xie To: jun.nie@linaro.org, wim@iguana.be, linux@roeck-us.net, robh+dt@kernel.org, mark.rutland@arm.com, mathieu.poirier@linaro.org Cc: linux-arm-kernel@lists.infradead.org, linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, shawnguo@kernel.org, baoyou.xie@linaro.org, xie.baoyou@zte.com.cn, chen.chaokai@zte.com.cn, wang.qiang01@zte.com.cn Subject: [PATCH v6 1/3] dt: bindings: add documentation for zx2967 family watchdog controller Date: Wed, 25 Jan 2017 10:44:47 +0800 Message-Id: <1485312289-18354-1-git-send-email-baoyou.xie@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 This patch adds dt-binding documentation for zx2967 family watchdog controller. Signed-off-by: Baoyou Xie Acked-by: Rob Herring --- .../bindings/watchdog/zte,zx2967-wdt.txt | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Documentation/devicetree/bindings/watchdog/zte,zx2967-wdt.txt -- 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 diff --git a/Documentation/devicetree/bindings/watchdog/zte,zx2967-wdt.txt b/Documentation/devicetree/bindings/watchdog/zte,zx2967-wdt.txt new file mode 100644 index 0000000..06ce677 --- /dev/null +++ b/Documentation/devicetree/bindings/watchdog/zte,zx2967-wdt.txt @@ -0,0 +1,32 @@ +ZTE zx2967 Watchdog timer + +Required properties: + +- compatible : should be one of the following. + * zte,zx296718-wdt +- reg : Specifies base physical address and size of the registers. +- clocks : Pairs of phandle and specifier referencing the controller's clocks. +- resets : Reference to the reset controller controlling the watchdog + controller. + +Optional properties: + +- timeout-sec : Contains the watchdog timeout in seconds. +- zte,wdt-reset-sysctrl : Directs how to reset system by the watchdog. + if we don't want to restart system when watchdog been triggered, + it's not required, vice versa. + It should include following fields. + * phandle of aon-sysctrl. + * offset of register that be written, should be 0xb0. + * configure value that be written to aon-sysctrl. + * bit mask, corresponding bits will be affected. + +Example: + +wdt: watchdog@1465000 { + compatible = "zte,zx296718-wdt"; + reg = <0x1465000 0x1000>; + clocks = <&topcrm WDT_WCLK>; + resets = <&toprst 35>; + zte,wdt-reset-sysctrl = <&aon_sysctrl 0xb0 1 0x115>; +};