From patchwork Mon Dec 15 11:25:33 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 421089 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-ie0-x238.google.com (mail-ie0-x238.google.com [IPv6:2607:f8b0:4001:c03::238]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 2EB8B14003E for ; Mon, 15 Dec 2014 22:25:57 +1100 (AEDT) Received: by mail-ie0-f184.google.com with SMTP id y20sf1676716ier.11 for ; Mon, 15 Dec 2014 03:25: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=90D00W6K+IQCCAqwGdKmPPFsJqiDJfwOuJKWjptgXuY=; b=aGLdzLZZIkECiNxU0+KeQ1Jopo92XrDpHKh57VzLoSDcx7TypuyitDdVdAurprQlYq Y0j4dQ0mhdcXSEV/+BgFaynUCEnh2f2bsc8d2fACqxYUczwApwm6sysswy7y7Zdk5H10 MLhk7rFB8RWtd65nJqHqUoUAzc5tVY96Lv0eIF+s1+MUyf+jfcx6w0pzXj6m+s2HraVc b1BQAnux2MFWgkvQw4gQ2MhvAauSLG3IsdLWD3wXdd5Ibn5dHUcLmuIyx0W32SdqIKNq ZSE6EpvaNpSTANFRPmby2EfnmsZLdfxMczeb8wofsRvsMD/zqIF4Oe7LCl6tJ9l82y4T 0M6g== 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=90D00W6K+IQCCAqwGdKmPPFsJqiDJfwOuJKWjptgXuY=; b=cRMOLkf866KJ+Gz2w+NLZ0OYEXdnr26tRrgoq0d/XYhv8++KFGAx9drDDx60IfELxb p3DStHSbLyyD4xBZdimV8nGnBfRC9wVEIBEXbigIZ/fs7PM5HxybInEQmpDDuauU8zHM GiAKgK8cEzAhA8isTIz3JWUmTyd5bV+UtCp0s4xjmWsSu4bDGo8AZNJBmwQxrZCQH4kX PTDLm+8tJyQNud3edYyEuhwmVfg/GlDsV4yghYS6a+CfUSPpuLPgv6q/slvvqH8a5o4/ 1lD3J9JhXmbwHlNzbUQ3KAkTrYdZNviW4nMkOqIES+6xM1vGz7REErH90UlkNGqU6+W/ kK2Q== X-Received: by 10.50.120.10 with SMTP id ky10mr270276igb.15.1418642755831; Mon, 15 Dec 2014 03:25:55 -0800 (PST) MIME-Version: 1.0 X-BeenThere: rtc-linux@googlegroups.com Received: by 10.50.122.3 with SMTP id lo3ls959782igb.16.gmail; Mon, 15 Dec 2014 03:25:55 -0800 (PST) X-Received: by 10.50.78.136 with SMTP id b8mr16539798igx.4.1418642755591; Mon, 15 Dec 2014 03:25:55 -0800 (PST) Received: from mail-yh0-f42.google.com (mail-yh0-f42.google.com. [209.85.213.42]) by gmr-mx.google.com with ESMTPS id s23si455969yhf.0.2014.12.15.03.25.55 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 15 Dec 2014 03:25:55 -0800 (PST) Received-SPF: pass (google.com: domain of lee.jones@linaro.org designates 209.85.213.42 as permitted sender) client-ip=209.85.213.42; Received: by mail-yh0-f42.google.com with SMTP id v1so5042241yhn.1 for ; Mon, 15 Dec 2014 03:25:55 -0800 (PST) X-Gm-Message-State: ALoCoQnTb2lNK/yTdD93X4pox5M2NyvgEZdlk8rfFL2YqDGZNZ3QZAX3hAF1DR7AyGgyabZ6gDAW X-Received: by 10.236.63.66 with SMTP id z42mr21113412yhc.49.1418642755468; Mon, 15 Dec 2014 03:25:55 -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 y67sm5772300yhc.11.2014.12.15.03.25.53 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 15 Dec 2014 03:25:55 -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 Subject: [rtc-linux] [PATCH 3/8] mfd: bindings: Provide ST bindings for ST's LPC device Date: Mon, 15 Dec 2014 11:25:33 +0000 Message-Id: <1418642738-17407-4-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1418642738-17407-1-git-send-email-lee.jones@linaro.org> References: <1418642738-17407-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.42 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 choose and configure the devices. Signed-off-by: Lee Jones --- Documentation/devicetree/bindings/mfd/st-lpc.txt | 36 ++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/st-lpc.txt diff --git a/Documentation/devicetree/bindings/mfd/st-lpc.txt b/Documentation/devicetree/bindings/mfd/st-lpc.txt new file mode 100644 index 0000000..b13f143 --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/st-lpc.txt @@ -0,0 +1,36 @@ +STMicroelectronics Low Power Controller (LPC) +============================================= + +Currently supports Watchdog OR Real Time Clock functionality. + +Required properties [common] + +- 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 = <600>; + st,lpc-mode = ; + st,warm-reset; + };