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: 422314 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-yh0-x23e.google.com (mail-yh0-x23e.google.com [IPv6:2607:f8b0:4002:c01::23e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id A7EBB1400D2 for ; Thu, 18 Dec 2014 03:45:56 +1100 (AEDT) Received: by mail-yh0-f62.google.com with SMTP id a41sf2331397yho.17 for ; Wed, 17 Dec 2014 08:45:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=mime-version:from:to:cc:subject:date:message-id:in-reply-to :references:x-original-sender:x-original-authentication-results :reply-to:content-type:precedence:mailing-list:list-id:list-post :list-help:list-archive:sender:list-subscribe:list-unsubscribe; bh=Ijfp3RKvhDufkMeeCC6iVlMOlVMW/h3dPH8dNf3Jzss=; b=RTlEhRZKvOlknzF/YLH8geE0Op5UbszAMBUSswQ+UK/7GPpqPTgyyciGOXJnc2FKKj Gyo6ee23w2nGKpiuOHtGhPUR3o49pFENA1LBCJbD0evfwKaafomuQUNEo+QtrmPZInZT GydK2bNLzI03LCnozhDhOa6LxFWpx1I3BUQaqtX8Ha+TEnvupBdeGTaYfgEF95GN1Rnh PcBIsl0KdntPgd3VPmqs8aYcqYV4UN8UMciVBcAUDJrk/CmyHIXERMrq/Yo80oFESudc baCGgOEV1sPxMprKNUB2fr5nktW0BqU7aaVilrys6qZ1zCtb0o5uwOPh1TOcmuR9FtdC 9jww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :in-reply-to:references:x-original-sender :x-original-authentication-results:reply-to:content-type:precedence :mailing-list:list-id:list-post:list-help:list-archive:sender :list-subscribe:list-unsubscribe; bh=Ijfp3RKvhDufkMeeCC6iVlMOlVMW/h3dPH8dNf3Jzss=; b=Txikn+DxEDmr4Lcn8UWMeGbDdoCaqCGVMTIEBBxR9wBEWKHJ2ptiDEL9dVBITjJTcD yPfK9aknJ3164BQQMlg6ZnDojrf3hAdVnOXyHOEHgdBrFq3dzLxTYgDd+4LyDl7sjZWx eL4neMjEsEt6gZ19IhufV3j+Co7qebwBlNSwHcyizf6NXtJwWtjL8TEIOb9RcIvFlqwo XbC/h+NwJMeUVhYsD3tj/YG/1va0mNohlaR1TzfQvwuQdAJKxCCi13rHZk2ruHJZO3f8 XOHM7jQy53Fnw052tQTUR4GPhzLo5g5sC7PUVTBUuPfgPDk096+ItK00qQuWRki8am+D G26A== X-Received: by 10.50.128.202 with SMTP id nq10mr190783igb.12.1418834754985; Wed, 17 Dec 2014 08:45:54 -0800 (PST) MIME-Version: 1.0 X-BeenThere: rtc-linux@googlegroups.com Received: by 10.50.72.41 with SMTP id a9ls368018igv.26.canary; Wed, 17 Dec 2014 08:45:54 -0800 (PST) X-Received: by 10.70.53.33 with SMTP id y1mr35998656pdo.3.1418834754728; Wed, 17 Dec 2014 08:45:54 -0800 (PST) Received: from mail-yh0-f45.google.com (mail-yh0-f45.google.com. [209.85.213.45]) by gmr-mx.google.com with ESMTPS id r6si199791yhg.1.2014.12.17.08.45.54 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 17 Dec 2014 08:45:54 -0800 (PST) Received-SPF: pass (google.com: domain of lee.jones@linaro.org designates 209.85.213.45 as permitted sender) client-ip=209.85.213.45; Received: by mail-yh0-f45.google.com with SMTP id f10so7312024yha.32 for ; Wed, 17 Dec 2014 08:45:54 -0800 (PST) X-Gm-Message-State: ALoCoQmtLnsjqSNc6i8cA+z3sjlC0zJzhQoXWjWbMKGCwYeuCgXRoLWcq4/W69iBE5VyE1qHZk3U 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: [rtc-linux] [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> X-Original-Sender: lee.jones@linaro.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of lee.jones@linaro.org designates 209.85.213.45 as permitted sender) smtp.mail=lee.jones@linaro.org Reply-To: rtc-linux@googlegroups.com Precedence: list Mailing-list: list rtc-linux@googlegroups.com; contact rtc-linux+owners@googlegroups.com List-ID: X-Google-Group-Id: 712029733259 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; + };