From patchwork Wed Feb 25 13:52:25 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 443398 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-wi0-x23b.google.com (mail-wi0-x23b.google.com [IPv6:2a00:1450:400c:c05::23b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id D8E8E1400DD for ; Thu, 26 Feb 2015 00:52:52 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass reason="2048-bit key; unprotected key" header.d=googlegroups.com header.i=@googlegroups.com header.b=k2NUtoXn; dkim-adsp=none (unprotected policy); dkim-atps=neutral Received: by mail-wi0-f187.google.com with SMTP id l15sf1303996wiw.4 for ; Wed, 25 Feb 2015 05:52:50 -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=k2NUtoXn2dRE62L5CCTuBVJ/LWNAgOjmtELGZ5jLZZ1l6x2jQ8uRlfenu+hPUHrGUq mi3Pwn5hkJB0D/c+M1V83TWs+hQ2ojWwULtzuGEdCIaf1FIDRpCkWx7OChMW8h7lpisp L3c1hrfv38nbfDlvbdumGu68ErntfbHAPTciio9SzmJ+ltP2RWETxREc26pwWRx3QooD QJOs3C6jzaf3++rc/xLitKfzYNVbDErngpClXVwduxyl5f6/CYQcjHXBCUdMsvOnnVgj 6vmGA0du3kFThjZhOw0/qFrfYwlGYA7q2s7IQBXj+F8gNSxQLiHl9zZAqxdX2F1ScBSX RBiQ== 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=NGc+NOBgnaBITqimefHttq9ZGXr6cnR0K9tFnAenesHa4ysiKSRngaY46Xmw13Sqew idEi2JcvNs7wMdZArRcfNxzj0Qc0CQP6oxUqIntb5oY7so857W2R96RwVYu3BoGIOLSS zxPduf1ODa6P3DaG4f2r8m17d6vUWUTkPUgSyEpnIpCte7tVFLH08kt8of+7kzg15WWR 0kz9sCHhbRREKBR7YJvsc1w1iwTIkWI9JIeEOsK8x5vgtctMtRhU5B1+H7fUgEx7abLT si/BmBCqruOd7l5YiSRnYhGQYV2W/tQk2Lid4cS1ju00ENhQpdq7dOf34az2/fWtFUXb aHVw== X-Received: by 10.152.180.232 with SMTP id dr8mr40527lac.22.1424872370456; Wed, 25 Feb 2015 05:52:50 -0800 (PST) MIME-Version: 1.0 X-BeenThere: rtc-linux@googlegroups.com Received: by 10.152.88.9 with SMTP id bc9ls878228lab.101.gmail; Wed, 25 Feb 2015 05:52:48 -0800 (PST) X-Received: by 10.112.126.194 with SMTP id na2mr502351lbb.18.1424872368823; Wed, 25 Feb 2015 05:52:48 -0800 (PST) Received: from mail-wg0-f45.google.com (mail-wg0-f45.google.com. [74.125.82.45]) by gmr-mx.google.com with ESMTPS id ev8si1121038wib.3.2015.02.25.05.52.48 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Feb 2015 05:52:48 -0800 (PST) Received-SPF: pass (google.com: domain of lee.jones@linaro.org designates 74.125.82.45 as permitted sender) client-ip=74.125.82.45; Received: by wggz12 with SMTP id z12so3807317wgg.2 for ; Wed, 25 Feb 2015 05:52:48 -0800 (PST) X-Gm-Message-State: ALoCoQmblOdu6YjllamtdwEoHPm5cdXwvBp4xN2Ofg6DFhrNYaFIo2ZBJrjOioingoDByRiVcZi2 X-Received: by 10.194.173.138 with SMTP id bk10mr6252149wjc.112.1424872368598; Wed, 25 Feb 2015 05:52:48 -0800 (PST) Received: from localhost.localdomain (host109-148-232-70.range109-148.btcentralplus.com. [109.148.232.70]) by mx.google.com with ESMTPSA id v7sm64937727wju.22.2015.02.25.05.52.47 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 25 Feb 2015 05:52:47 -0800 (PST) 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 v4 5/9] watchdog: bindings: Provide ST bindings for ST's LPC Watchdog device Date: Wed, 25 Feb 2015 13:52:25 +0000 Message-Id: <1424872349-4155-6-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1424872349-4155-1-git-send-email-lee.jones@linaro.org> References: <1424872349-4155-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.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; + };