From patchwork Tue Mar 24 09:25:36 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 453774 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-lb0-x23a.google.com (mail-lb0-x23a.google.com [IPv6:2a00:1450:4010:c04::23a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id AC1CE1400A0 for ; Tue, 24 Mar 2015 20:25:59 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass reason="2048-bit key; unprotected key" header.d=googlegroups.com header.i=@googlegroups.com header.b=nAgx7And; dkim-adsp=none (unprotected policy); dkim-atps=neutral Received: by lbiz11 with SMTP id z11sf52007981lbi.0 for ; Tue, 24 Mar 2015 02:25:57 -0700 (PDT) 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=nAgx7AndfMRYQl2xqP0jfqaiwuWtLJGjk1XX0H7P1f2upK3i2vDGRE5DkrTDA3ePAr XseyTdZeGDbmR9cuTg+wGMYimPQlgWln9fsm01THqj6g4Z3/3F7CtsKjK+F8JJUkiPet 55i2bU4KNTITZcK0cJ1tjkGIjuTPHooG49jtQGnm6P4ADMx3vGDPmJYH7y/caPUxqiQn MccXosCQeS/S9i0VVSyDFO1cPBuDI3pgIClv3iSmCBFYvb0jEhXp+WnPIusoeXpu7tVE cyqiPqE0qTD66d6S1frYoKQpF/C0E1lj2jGi+BTlg9O+zXPjdgnzzdAmRqu7W8EUZpv0 WxpQ== 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=ITLNUeDnO5SZ9mSKwlGQ8U+ZwlJJXtZJsm3vlEYTNX4MZjNNOm1U6J7G7zP4B53z51 fSA5YYP/eAIZou8z0wfou7HyOkp5slJoCZ7HKwpo3qSyLwcLAN4u4RRRtExLCvRM8+jr 96bL0Cex/eSoWbulNAcUdFnUD8mgVvDc4Hc3U+/1cmj/vvXrt90g+tEardat6uia+f1J ZLmfwcezh5kg//usex+kS+ts9Avg2LtsBKHUXjL2T3wF2v6iQQszJ+kEWkoaF19QPDM5 xoj0fo6LwcbDYSj9NvLCR9L7DT5/4uZaQKRhQp6J+G0/THNeMCY9txbLTOnwQ6NHjAUU V0Sw== X-Received: by 10.152.3.99 with SMTP id b3mr33097lab.34.1427189157320; Tue, 24 Mar 2015 02:25:57 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: rtc-linux@googlegroups.com Received: by 10.152.246.33 with SMTP id xt1ls33507lac.102.gmail; Tue, 24 Mar 2015 02:25:56 -0700 (PDT) X-Received: by 10.112.180.74 with SMTP id dm10mr646215lbc.11.1427189156789; Tue, 24 Mar 2015 02:25:56 -0700 (PDT) Received: from mail-we0-f177.google.com (mail-we0-f177.google.com. [74.125.82.177]) by gmr-mx.google.com with ESMTPS id i8si633058wif.1.2015.03.24.02.25.56 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Mar 2015 02:25:56 -0700 (PDT) Received-SPF: pass (google.com: domain of lee.jones@linaro.org designates 74.125.82.177 as permitted sender) client-ip=74.125.82.177; Received: by weop45 with SMTP id p45so158301107weo.0 for ; Tue, 24 Mar 2015 02:25:56 -0700 (PDT) X-Gm-Message-State: ALoCoQlDwKz+TL1BiP7L8UQP1PQdr2TSZVnDQ8Ghei0Ld8HWnIbza3J84fhHPHnewgYecQJ4mumE X-Received: by 10.180.75.243 with SMTP id f19mr26519627wiw.94.1427189156674; Tue, 24 Mar 2015 02:25:56 -0700 (PDT) Received: from localhost.localdomain ([81.134.86.34]) by mx.google.com with ESMTPSA id pm6sm2549370wic.20.2015.03.24.02.25.55 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 24 Mar 2015 02:25:55 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, rtc-linux@googlegroups.com, wim@iguana.be, linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, linux@roeck-us.net, david.paris@st.com, a.zummo@towertech.it Cc: lee.jones@linaro.org, kernel@stlinux.com Subject: [rtc-linux] [PATCH v6 5/9] watchdog: bindings: Provide ST bindings for ST's LPC Watchdog device Date: Tue, 24 Mar 2015 09:25:36 +0000 Message-Id: <1427189140-1935-6-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1427189140-1935-1-git-send-email-lee.jones@linaro.org> References: <1427189140-1935-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 74.125.82.177 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; + };