From patchwork Thu Jan 22 11:56:02 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 431788 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-oi0-x238.google.com (mail-oi0-x238.google.com [IPv6:2607:f8b0:4003:c06::238]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 215D21402AF for ; Thu, 22 Jan 2015 22:56:55 +1100 (AEDT) Received: by mail-oi0-f56.google.com with SMTP id a141sf185324oig.1 for ; Thu, 22 Jan 2015 03:56:52 -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=8hnczXOprYN29JYRb1w8M0Ue5Y6OkfH5qQWueNdV2CM=; b=xTl60dWtuwAfoYkWdPm44XGdswseKZx0x65ZOKRUMWvnHMjLQwaGHmBssFCFJNzzuI 7fCc+vhgCaiNxj/ox12o1g9TpVWw5m5JMJ2wohcP8cOcavFQ5rIy5IaBioMBAl+JlpJQ uvWKSkSP2/olp3GONgEmi0mEzC4dkbDYwB9uyWoPix4HqDAmph4ZpwuLQJPN43yAIRGq qQed3LHIHpspzTbLNSxQ3KEgR/ywJMj5UzD+gdAEfaRkH7GKo11V86iRUqnmUm3GRoZI sWV4iqA+YBq55EH+uuLJWI0J4PC3d831oJ11RIHSJfroJGwlAnbuoaeiIOnE7eORXMFY YALw== 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=8hnczXOprYN29JYRb1w8M0Ue5Y6OkfH5qQWueNdV2CM=; b=AejazUS66LqWt4v1AnHJx5elcORsyKJNfMKSNJoOn4MGLC6gJ+1UEjoF1U6Cu5G9EJ mL73LgPHGTQyIKtGjiAOO2lw+n0R1NFsBHycLebqaEK2oqNT3U5GWJAdwY0mu8jg8lKA +GuM3myGxOfbejC1R3qbM4a8bqKwNDLEv1i1NL19IZ36UjK5OtuCkkSYu0jkvBtRFAb7 3BsQQfSr3jTQERJkaFSsFH1ddO2zV2YLhZvEdB8yziu0Jyv1lXg6y35STBa5gMB9grs3 pGzRPSfPqGOxmh5Iw2QNHf/CE/WHG4+ZhoBaHOhE5J3iEAmtOYDt97mcy/smALzkZSTc lHGA== X-Received: by 10.50.66.141 with SMTP id f13mr573847igt.17.1421927812481; Thu, 22 Jan 2015 03:56:52 -0800 (PST) MIME-Version: 1.0 X-BeenThere: rtc-linux@googlegroups.com Received: by 10.51.18.97 with SMTP id gl1ls1109665igd.40.gmail; Thu, 22 Jan 2015 03:56:52 -0800 (PST) X-Received: by 10.50.18.43 with SMTP id t11mr26085220igd.0.1421927812278; Thu, 22 Jan 2015 03:56:52 -0800 (PST) Received: from mail-ig0-f172.google.com (mail-ig0-f172.google.com. [209.85.213.172]) by gmr-mx.google.com with ESMTPS id jn10si190736igb.3.2015.01.22.03.56.52 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Jan 2015 03:56:52 -0800 (PST) Received-SPF: pass (google.com: domain of lee.jones@linaro.org designates 209.85.213.172 as permitted sender) client-ip=209.85.213.172; Received: by mail-ig0-f172.google.com with SMTP id l13so27331862iga.5 for ; Thu, 22 Jan 2015 03:56:52 -0800 (PST) X-Gm-Message-State: ALoCoQkXnm354ZD+P6gzlDiq9BlZPfLA9sxDLAlVNZ9mPn1Xp5yUIbTlhidAcA8MgluwXMRaGUVl X-Received: by 10.42.97.66 with SMTP id m2mr2313427icn.48.1421927812181; Thu, 22 Jan 2015 03:56:52 -0800 (PST) Received: from localhost.localdomain (host109-148-235-13.range109-148.btcentralplus.com. [109.148.235.13]) by mx.google.com with ESMTPSA id cj7sm2404231igb.10.2015.01.22.03.56.47 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 22 Jan 2015 03:56: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 Subject: [rtc-linux] [PATCH v2 4/9] ARM: STi: DT: STiH407: Add Device Tree node for the LPC Date: Thu, 22 Jan 2015 11:56:02 +0000 Message-Id: <1421927767-28889-5-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1421927767-28889-1-git-send-email-lee.jones@linaro.org> References: <1421927767-28889-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.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. This patch enables support for the LPC Watchdog and LPC RTC devices on LPC1 and LPC2 respectively. Signed-off-by: David Paris Signed-off-by: Lee Jones --- arch/arm/boot/dts/stih407-family.dtsi | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm/boot/dts/stih407-family.dtsi b/arch/arm/boot/dts/stih407-family.dtsi index 3e31d32..04448a7 100644 --- a/arch/arm/boot/dts/stih407-family.dtsi +++ b/arch/arm/boot/dts/stih407-family.dtsi @@ -7,6 +7,7 @@ * publishhed by the Free Software Foundation. */ #include "stih407-pinctrl.dtsi" +#include #include / { #address-cells = <1>; @@ -274,5 +275,24 @@ status = "disabled"; }; + + /* Watchdog and Real-Time Clock */ + lpc@8787000 { + compatible = "st,stih407-lpc"; + reg = <0x8787000 0x1000>; + interrupts = ; + clocks = <&clk_s_d3_flexgen CLK_LPC_0>; + timeout-sec = <120>; + st,syscfg = <&syscfg_core>; + st,lpc-mode = ; + }; + + lpc@8788000 { + compatible = "st,stih407-lpc"; + reg = <0x8788000 0x1000>; + interrupts = ; + clocks = <&clk_s_d3_flexgen CLK_LPC_1>; + st,lpc-mode = ; + }; }; };