From patchwork Wed Dec 17 16:45:24 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 42389 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f69.google.com (mail-ee0-f69.google.com [74.125.83.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D962626C8B for ; Wed, 17 Dec 2014 16:46:19 +0000 (UTC) Received: by mail-ee0-f69.google.com with SMTP id d49sf10561818eek.0 for ; Wed, 17 Dec 2014 08:46:19 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=8QbabMr4Pv0DefGW3X2aY5j/qE1lRdvr+eNyPkHhfc4=; b=GmKVaYzUjOJgA7vQtTSzFV4MUQGU73eW8jxPNMfLtuUwdZcBDlJ4I57h29u6L3KyAF OzbPpxWNvPohIvtDqMM7sTu8KXL9pbkzfqvXTW0vwasr6tf8BNaOPxie8rxgTv543HwU vLTX6wdGGTxaP/ceVFWvDbJPvoJDiyxjZ81OFHf7Syj1aG1GATaXUwxYlmL6LBSHgZFJ bOmym/v6/iBBpfaMbiUoj+nqSRqy3w5dty1waKetKT2EL3kWpq9cvQn2nEpHWI8to1VX RvpYkLMuoPcEIKfHR5yjmtfCYqKzi4S80/B1jSh+17HnZgEO27D8lOsQ5HEce0IUNh+n uZWQ== X-Gm-Message-State: ALoCoQnvvh2BdTbHqV3Ma/sbLeB2q1yg9R0uqFTF2fcxYgJVHUMo4vRAcmSvlwGrDWPLsHNiv9Gr X-Received: by 10.112.9.199 with SMTP id c7mr1123611lbb.7.1418834778954; Wed, 17 Dec 2014 08:46:18 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.5.202 with SMTP id u10ls740445lau.68.gmail; Wed, 17 Dec 2014 08:46:18 -0800 (PST) X-Received: by 10.112.199.138 with SMTP id jk10mr41950567lbc.86.1418834778626; Wed, 17 Dec 2014 08:46:18 -0800 (PST) Received: from mail-la0-f51.google.com (mail-la0-f51.google.com. [209.85.215.51]) by mx.google.com with ESMTPS id jh3si4448191lbc.5.2014.12.17.08.46.18 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 17 Dec 2014 08:46:18 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.51 as permitted sender) client-ip=209.85.215.51; Received: by mail-la0-f51.google.com with SMTP id ms9so13332978lab.24 for ; Wed, 17 Dec 2014 08:46:18 -0800 (PST) X-Received: by 10.152.234.35 with SMTP id ub3mr42512308lac.70.1418834778472; Wed, 17 Dec 2014 08:46:18 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.142.69 with SMTP id ru5csp1422098lbb; Wed, 17 Dec 2014 08:46:17 -0800 (PST) X-Received: by 10.66.155.2 with SMTP id vs2mr71175918pab.135.1418834769044; Wed, 17 Dec 2014 08:46:09 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id qu3si6461469pbc.58.2014.12.17.08.46.08; Wed, 17 Dec 2014 08:46:09 -0800 (PST) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751416AbaLQQp6 (ORCPT + 27 others); Wed, 17 Dec 2014 11:45:58 -0500 Received: from mail-yh0-f46.google.com ([209.85.213.46]:37508 "EHLO mail-yh0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751384AbaLQQpz (ORCPT ); Wed, 17 Dec 2014 11:45:55 -0500 Received: by mail-yh0-f46.google.com with SMTP id t59so7277555yho.19 for ; Wed, 17 Dec 2014 08:45:54 -0800 (PST) X-Received: by 10.236.32.134 with SMTP id o6mr14792275yha.116.1418834754545; Wed, 17 Dec 2014 08:45:54 -0800 (PST) Received: from localhost.localdomain (host109-148-232-11.range109-148.btcentralplus.com. [109.148.232.11]) by mx.google.com with ESMTPSA id t3sm2460839yhp.19.2014.12.17.08.45.52 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 17 Dec 2014 08:45:54 -0800 (PST) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: lee.jones@linaro.org, kernel@stlinux.com, a.zummo@towertech.it, rtc-linux@googlegroups.com, wim@iguana.be, linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, linux@roeck-us.net, arnd@arndb.de Subject: [PATCH 5/8] watchdog: bindings: Provide ST bindings for ST's LPC Watchdog device Date: Wed, 17 Dec 2014 16:45:24 +0000 Message-Id: <1418834727-1602-6-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1418834727-1602-1-git-send-email-lee.jones@linaro.org> References: <1418834727-1602-1-git-send-email-lee.jones@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: lee.jones@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.51 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , On current ST platforms the LPC controls a number of functions including Watchdog and Real Time Clock. This patch provides the bindings used to configure LPC in Watchdog mode. Signed-off-by: Lee Jones --- .../devicetree/bindings/watchdog/st_lpc_wdt.txt | 38 ++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 Documentation/devicetree/bindings/watchdog/st_lpc_wdt.txt diff --git a/Documentation/devicetree/bindings/watchdog/st_lpc_wdt.txt b/Documentation/devicetree/bindings/watchdog/st_lpc_wdt.txt new file mode 100644 index 0000000..1bdf023 --- /dev/null +++ b/Documentation/devicetree/bindings/watchdog/st_lpc_wdt.txt @@ -0,0 +1,38 @@ +STMicroelectronics Low Power Controller (LPC) - Watchdog +======================================================== + +LPC currently supports Watchdog OR Real Time Clock functionality. + +[See: ../rtc/rtc-st-lpc.txt for RTC options] + +Required properties + +- compatible : Must be one of: "st,stih407-lpc" "st,stih416-lpc" + "st,stih415-lpc" "st,stid127-lpc" +- reg : LPC registers base address + size +- interrupts : LPC interrupt line number and associated flags +- clocks : Clock used by LPC device (See: ../clock/clock-bindings.txt) +- st,lpc-mode : The LPC can run either one of two modes ST_LPC_MODE_RTC [0] or + ST_LPC_MODE_WDT [1]. One (and only one) mode must be + selected. + +Required properties [watchdog mode] + +- st,syscfg : Phandle to syscfg node used to enable watchdog and configure + CPU reset type. +- timeout-sec : Watchdog timeout in seconds + +Optional properties [watchdog mode] + +- st,warm-reset : If present reset type will be 'warm' - if not it will be cold + +Example: + lpc@fde05000 { + compatible = "st,stih416-lpc-watchdog"; + reg = <0xfde05000 0x1000>; + clocks = <&clk_s_d3_flexgen CLK_LPC_0>; + st,syscfg = <&syscfg_core>; + timeout-sec = <120>; + st,lpc-mode = ; + st,warm-reset; + };