From patchwork Thu Jan 22 11:56:03 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 431789 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-pa0-x239.google.com (mail-pa0-x239.google.com [IPv6:2607:f8b0:400e:c03::239]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id AE28A1402B0 for ; Thu, 22 Jan 2015 22:57:00 +1100 (AEDT) Received: by mail-pa0-f57.google.com with SMTP id lj1sf182299pab.2 for ; Thu, 22 Jan 2015 03:56:59 -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=UHwE3uMnEPfJLfhSXkh9VFf3t7gwKMFpStF//LMTxKWR1msi2kDyyKz9i+kNrSbDSE 25ZH/wwXkwe9ewCDDS4qiLxneHJk8II7Kz0Qk+5ZCuZNhKreFlpvrrdVSwMGnZjcDcyB Zibj/YFis22TOG28uMngBSRWAqDvBc1KIXYBXiDv/oL8Ap5PUbs6jggj2ICxg3JrU4gU jfd0fP3crRHYeKOOZMcL8Afj0hG86RJ4VuBJg8RQcukUYAQWs3whPQJCe7pzGxyF7ndv C9P+pHtIqfMpenDPmzV4j6wyPLCeCtQn2H202/B0OTtNhXATsw/y+9JdjG9uJ9oMoDm7 sQuA== 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=AEuc7c2nXjI92PznXUSDIn12mJPAh1VSkJCtCAkS5SplKo5tX4Ra5x4dMXOTw1Eu0u 4oRdkTdVRhR2JysDTf8HIvolqG+5+3iAs2lwK9XrfqC27D2nbcI+ZUd2RuSq1hCcCBym S/6v1B91gNK5qN5gqFrpyZphxXP/BbVVg0XnJC3oRGvW8b+xfD8KTPkraACXkOuM8/LM QPKfs+jCXGCDpZJPK8JocorxvLWQIbUAFuhvPRXYlbAuehoedrvpOz44LKwktH1U67bm nQucn7a3OI+GEuS1XPso/96WPhQhVn7tu0lQPQ77VK948NINfvVwdTN+9bUNKJfdGx0M lLfQ== X-Received: by 10.50.110.101 with SMTP id hz5mr576874igb.6.1421927819115; Thu, 22 Jan 2015 03:56:59 -0800 (PST) MIME-Version: 1.0 X-BeenThere: rtc-linux@googlegroups.com Received: by 10.50.141.165 with SMTP id rp5ls1998740igb.39.canary; Thu, 22 Jan 2015 03:56:58 -0800 (PST) X-Received: by 10.68.237.8 with SMTP id uy8mr657055pbc.7.1421927818877; Thu, 22 Jan 2015 03:56:58 -0800 (PST) Received: from mail-ig0-f179.google.com (mail-ig0-f179.google.com. [209.85.213.179]) by gmr-mx.google.com with ESMTPS id e3si197829igq.1.2015.01.22.03.56.58 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Jan 2015 03:56:58 -0800 (PST) Received-SPF: pass (google.com: domain of lee.jones@linaro.org designates 209.85.213.179 as permitted sender) client-ip=209.85.213.179; Received: by mail-ig0-f179.google.com with SMTP id l13so1931334iga.0 for ; Thu, 22 Jan 2015 03:56:58 -0800 (PST) X-Gm-Message-State: ALoCoQnNnsz4gaGY32CRgUHl8E2kR72/GWLnBNVQdX0IMEKnYmOkFnpSZ9JC3E7ZLj5GXUjgcnk9 X-Received: by 10.42.72.138 with SMTP id o10mr2183603icj.73.1421927818744; Thu, 22 Jan 2015 03:56:58 -0800 (PST) Received: from localhost.localdomain (host109-148-235-13.range109-148.btcentralplus.com. [109.148.235.13]) by mx.google.com with ESMTPSA id cj7sm2404231igb.10.2015.01.22.03.56.52 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 22 Jan 2015 03:56:58 -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: [rtc-linux] [PATCH v2 5/9] watchdog: bindings: Provide ST bindings for ST's LPC Watchdog device Date: Thu, 22 Jan 2015 11:56:03 +0000 Message-Id: <1421927767-28889-6-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1421927767-28889-1-git-send-email-lee.jones@linaro.org> References: <1421927767-28889-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.179 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; + };