From patchwork Wed Mar 4 18:06:34 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 446354 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-we0-x240.google.com (mail-we0-x240.google.com [IPv6:2a00:1450:400c:c03::240]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 6685C140146 for ; Thu, 5 Mar 2015 05:06:55 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass reason="2048-bit key; unprotected key" header.d=googlegroups.com header.i=@googlegroups.com header.b=Af8OESaJ; dkim-adsp=none (unprotected policy); dkim-atps=neutral Received: by wesq59 with SMTP id q59sf12236913wes.0 for ; Wed, 04 Mar 2015 10:06:53 -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=Af8OESaJ4MEA82XYYk5yokT4MkTAAVb1PAqOxyGlrgrC7d536MmPokMDlu599+7vh2 PY26QDOsizzXwI2Q6PxVhX6Eg6ULcGMQPRsYzoTgyRNMhc/jTOciZKBcBZ43AmNRf7je cMKL+EmcDE/G8EBVlnU8T8TE08F4XD17i5h8np4qpU9j1vFI9brVXVy0gFXkX+AReAvv oMidCg3bvBOjgJfJ/Wp+nJps0VktSVhXINPpAHuZAPkGC+U8dWIMKJQ0YfurQTgfkSXI B2C6e8SNAAx6OSNgssHMJHgl1i+0ijy13+B1U/3UCbnXXa1tjepmtCFA7BvjT/OaMgYE 5p1Q== 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=botCCkW7eX0ZKt40hxlGf/G/qc58dPpF1RgxFchOfZ2jKBB1enIM6TW6Fr1L/mw96s dH4FoZ5UWtaAmSvr81ANAPW0yBCt29IJOTV6EFsGObtN3Ym45g8UTzWb+SZDgqbAR2mv wmxriLBN9NnEH09bzrbZn0GiBY5zlRjnT6mk0MQ6WI2bdqIDrUOwWjuRvN8uHOYRrFcn hvPV/39s50Z/e3vQfpsCZ47x+CR1xEyY8oZczdaOrUl7U8LFMQrVgl15ZxMapqIocT+l krkEl+s6s98rF3CPkvtAJNiXZEIbG2PoBmkWHaXofcJS8P6Syzm4+7EkWyLATs/ntQj+ eMYg== X-Received: by 10.152.6.1 with SMTP id w1mr83942law.25.1425492413270; Wed, 04 Mar 2015 10:06:53 -0800 (PST) MIME-Version: 1.0 X-BeenThere: rtc-linux@googlegroups.com Received: by 10.152.7.70 with SMTP id h6ls195970laa.78.gmail; Wed, 04 Mar 2015 10:06:52 -0800 (PST) X-Received: by 10.112.167.98 with SMTP id zn2mr887285lbb.6.1425492412726; Wed, 04 Mar 2015 10:06:52 -0800 (PST) Received: from mail-we0-f172.google.com (mail-we0-f172.google.com. [74.125.82.172]) by gmr-mx.google.com with ESMTPS id i7si1166054wif.0.2015.03.04.10.06.52 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Mar 2015 10:06:52 -0800 (PST) Received-SPF: pass (google.com: domain of lee.jones@linaro.org designates 74.125.82.172 as permitted sender) client-ip=74.125.82.172; Received: by mail-we0-f172.google.com with SMTP id k48so4589479wev.7 for ; Wed, 04 Mar 2015 10:06:52 -0800 (PST) X-Gm-Message-State: ALoCoQk1KZXOrl7NNdRR22lnGd9Q/7Y7JUSEMQycoy7rcCSuYKydgNQOsRI4CDLuIY5SYZ+diJ45 X-Received: by 10.194.60.173 with SMTP id i13mr10334346wjr.124.1425492412617; Wed, 04 Mar 2015 10:06:52 -0800 (PST) Received: from localhost.localdomain (host81-134-85-168.in-addr.btopenworld.com. [81.134.85.168]) by mx.google.com with ESMTPSA id g5sm6993664wjr.19.2015.03.04.10.06.50 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 04 Mar 2015 10:06:51 -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, a.zummo@towertech.it Subject: [rtc-linux] [PATCH v5 5/9] watchdog: bindings: Provide ST bindings for ST's LPC Watchdog device Date: Wed, 4 Mar 2015 18:06:34 +0000 Message-Id: <1425492398-27340-6-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1425492398-27340-1-git-send-email-lee.jones@linaro.org> References: <1425492398-27340-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.172 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; + };