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: 42232 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f72.google.com (mail-ee0-f72.google.com [74.125.83.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 3166021772 for ; Mon, 15 Dec 2014 11:27:50 +0000 (UTC) Received: by mail-ee0-f72.google.com with SMTP id e53sf7388000eek.7 for ; Mon, 15 Dec 2014 03:27:49 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=N6dqJjTn0DtPw/UNpw6FrxlHIG2emjyYlwcAcU92CQw=; b=G61Jn9q3t704ZwymLwhxsm8NpH9SLoTrVmsVpa0AKRIhT9gTzJDZNxzKzdUTJfmY2y KAFnPVnLD/st4qaD5UnlasWIaoHCglRtEM2htEWs+ggFAJpDI48jD1xX1y4uvnWGnTV9 sKC9n3QY3AyRy+Atc/BmmjEqu58aq9iBUtwwU9pzUoAH8IJKIdSNq0mxPecg4iMz8LKe 5QOuzsDMhZaKL4MgQntRSmqu4tDLuD8ksrRPVsHp/hS9y6qXy1bd1FrsQ3mvRi7KrUCk /bwqC2EHwz5AspqUvbDcLcm04gYf7Y6xV6zUgp6B8TIQHwKMBiY7kfgmHxgXYhjp7yHm zINw== X-Gm-Message-State: ALoCoQkR9+HM0GfOs0yACJuZgmRFt+3UMeCVt22z6xI0fHC6eeXevvZcxD0jAQDb4rXyR7CeYnmm X-Received: by 10.180.19.42 with SMTP id b10mr3442223wie.0.1418642869468; Mon, 15 Dec 2014 03:27:49 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.36.5 with SMTP id m5ls546198laj.71.gmail; Mon, 15 Dec 2014 03:27:49 -0800 (PST) X-Received: by 10.112.167.200 with SMTP id zq8mr29865430lbb.61.1418642869153; Mon, 15 Dec 2014 03:27:49 -0800 (PST) Received: from mail-la0-f49.google.com (mail-la0-f49.google.com. [209.85.215.49]) by mx.google.com with ESMTPS id vp9si5435246lbb.134.2014.12.15.03.27.49 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 15 Dec 2014 03:27:49 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.49 as permitted sender) client-ip=209.85.215.49; Received: by mail-la0-f49.google.com with SMTP id hs14so9276581lab.36 for ; Mon, 15 Dec 2014 03:27:49 -0800 (PST) X-Received: by 10.152.43.103 with SMTP id v7mr29862456lal.29.1418642869057; Mon, 15 Dec 2014 03:27:49 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.142.69 with SMTP id ru5csp684480lbb; Mon, 15 Dec 2014 03:27:48 -0800 (PST) X-Received: by 10.70.34.162 with SMTP id a2mr49759022pdj.123.1418642867267; Mon, 15 Dec 2014 03:27:47 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id pv3si13443255pbb.141.2014.12.15.03.27.46 for ; Mon, 15 Dec 2014 03:27:47 -0800 (PST) Received-SPF: none (google.com: devicetree-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751669AbaLOL1o (ORCPT + 4 others); Mon, 15 Dec 2014 06:27:44 -0500 Received: from mail-yh0-f49.google.com ([209.85.213.49]:40137 "EHLO mail-yh0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751251AbaLOLZ4 (ORCPT ); Mon, 15 Dec 2014 06:25:56 -0500 Received: by mail-yh0-f49.google.com with SMTP id f10so4963112yha.8 for ; Mon, 15 Dec 2014 03:25:55 -0800 (PST) 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: [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> Sender: devicetree-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: devicetree@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: lee.jones@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.49 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 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; + };