From patchwork Wed Feb 18 11:49:10 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 44767 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f71.google.com (mail-ee0-f71.google.com [74.125.83.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 3270A21544 for ; Wed, 18 Feb 2015 11:51:38 +0000 (UTC) Received: by mail-ee0-f71.google.com with SMTP id d17sf918563eek.2 for ; Wed, 18 Feb 2015 03:51:37 -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=gJRFiFHrsflEGrVAIYv30sZYd2CD9RwBQ5a52gr1/OyH3AxY1fi1KvdwIWUUn0CmuU TNI/Z0qxbwDtqggzLdVGa8pBFT7UZhSf0EG8D5w4JmvNJ1c5nXBiebkLoWsmUepHLyv9 tGKZSuC1y+1I19h3YJlLjp5v2ES5chmykPi+wDOfl8xl20EqZocNpsUhjCDW6PLICOiD 5XOzZXWaK1wmcSDP53uDkt2ntvYmdV9k/IovGLnMxfjLdF+LX3nFMO5jkkw5/osJdWbv weLP7ONnCSo6SGMHSWvbvDo8Vl7OuEBJnjnP2qAKQmhcysO/0oWE9MOoT6OlYL+ijfmM FpiA== X-Gm-Message-State: ALoCoQkuIPN23zijOVMQD3UbwOJ2hQl4wLRgGwFi645RKdW8WpGOl+Otm42ro/LokKvx7f/wF3Ru X-Received: by 10.112.161.201 with SMTP id xu9mr4268249lbb.11.1424260297396; Wed, 18 Feb 2015 03:51:37 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.37.227 with SMTP id b3ls6417lak.58.gmail; Wed, 18 Feb 2015 03:51:37 -0800 (PST) X-Received: by 10.152.3.42 with SMTP id 10mr17284898laz.84.1424260297052; Wed, 18 Feb 2015 03:51:37 -0800 (PST) Received: from mail-lb0-f171.google.com (mail-lb0-f171.google.com. [209.85.217.171]) by mx.google.com with ESMTPS id kx17si12805842lbb.24.2015.02.18.03.51.36 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Feb 2015 03:51:36 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.171 as permitted sender) client-ip=209.85.217.171; Received: by lbdu14 with SMTP id u14so602025lbd.1 for ; Wed, 18 Feb 2015 03:51:36 -0800 (PST) X-Received: by 10.152.87.3 with SMTP id t3mr31619470laz.19.1424260296824; Wed, 18 Feb 2015 03:51:36 -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.35.133 with SMTP id h5csp2800075lbj; Wed, 18 Feb 2015 03:51:35 -0800 (PST) X-Received: by 10.68.69.109 with SMTP id d13mr57262407pbu.152.1424260294318; Wed, 18 Feb 2015 03:51:34 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id oi3si2059699pdb.209.2015.02.18.03.51.32; Wed, 18 Feb 2015 03:51:34 -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 S1752507AbbBRLv3 (ORCPT + 28 others); Wed, 18 Feb 2015 06:51:29 -0500 Received: from mail-wg0-f42.google.com ([74.125.82.42]:50240 "EHLO mail-wg0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751770AbbBRLt2 (ORCPT ); Wed, 18 Feb 2015 06:49:28 -0500 Received: by mail-wg0-f42.google.com with SMTP id n12so673902wgh.1 for ; Wed, 18 Feb 2015 03:49:27 -0800 (PST) X-Received: by 10.194.134.105 with SMTP id pj9mr69632732wjb.143.1424260167515; Wed, 18 Feb 2015 03:49:27 -0800 (PST) Received: from localhost.localdomain (host109-148-233-190.range109-148.btcentralplus.com. [109.148.233.190]) by mx.google.com with ESMTPSA id dj5sm32257609wjb.28.2015.02.18.03.49.26 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 18 Feb 2015 03:49:26 -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, rtc-linux@googlegroups.com, wim@iguana.be, linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, linux@roeck-us.net, david.paris@st.com Subject: [PATCH v3 4/8] watchdog: bindings: Provide ST bindings for ST's LPC Watchdog device Date: Wed, 18 Feb 2015 11:49:10 +0000 Message-Id: <1424260154-12868-5-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1424260154-12868-1-git-send-email-lee.jones@linaro.org> References: <1424260154-12868-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.217.171 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; + };