From patchwork Wed Mar 4 18:06:33 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 45438 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f197.google.com (mail-wi0-f197.google.com [209.85.212.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2EFF12055F for ; Wed, 4 Mar 2015 18:09:32 +0000 (UTC) Received: by wivr20 with SMTP id r20sf617332wiv.0 for ; Wed, 04 Mar 2015 10:09:31 -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=x+OsesUpi1hLM5wTpa7tn12y1w+ORhhovwXVW+QM7Ww=; b=EGZd5hMeKeFVCCWzY3f2UEYLcQpxf+H0ShHNRAp499tlos3kidipHWh5Juv7ocszC0 siHZSs1iNz1qDAioPRWkRUmcMruPh9U7oymtTp/Zg4uiquIfNRq7Xaax8EQgWdUeWEkj o1sWVdUH1ukdONU+jCu9kjsuZHSfaYjAWZ5jDLYMiPM43pmjP9QgO/0L5ka5RDerUKTK y7In2T6znXF747fGql/UOxzXkOZP/ffO/AZzmns+uLN5gDUwqFpFHDHxM83cscZfMWM1 ARPXg605OQWVYjEn3QNF7hMi9FpGH50xdPuwMc3bNTBTftU8JB1Q7RUWSvRG/QtDayAW N4Qw== X-Gm-Message-State: ALoCoQkcGy1ZEtbQLsYsoWUw2l6fDdVSlXRQLDL81+sYGY+FLfaGhjoeZusA8QaRIBN42sUf9bw+ X-Received: by 10.180.83.168 with SMTP id r8mr1356307wiy.6.1425492571480; Wed, 04 Mar 2015 10:09:31 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.121.70 with SMTP id li6ls204285lab.44.gmail; Wed, 04 Mar 2015 10:09:31 -0800 (PST) X-Received: by 10.112.46.201 with SMTP id x9mr4556799lbm.65.1425492571284; Wed, 04 Mar 2015 10:09:31 -0800 (PST) Received: from mail-la0-f46.google.com (mail-la0-f46.google.com. [209.85.215.46]) by mx.google.com with ESMTPS id p7si2944599lah.125.2015.03.04.10.09.31 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Mar 2015 10:09:31 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.46 as permitted sender) client-ip=209.85.215.46; Received: by labhs14 with SMTP id hs14so46270932lab.1 for ; Wed, 04 Mar 2015 10:09:31 -0800 (PST) X-Received: by 10.152.178.197 with SMTP id da5mr4778988lac.56.1425492571036; Wed, 04 Mar 2015 10:09:31 -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.35.133 with SMTP id h5csp1381147lbj; Wed, 4 Mar 2015 10:09:30 -0800 (PST) X-Received: by 10.66.169.137 with SMTP id ae9mr8833403pac.7.1425492569072; Wed, 04 Mar 2015 10:09:29 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bo12si6165313pdb.25.2015.03.04.10.09.28; Wed, 04 Mar 2015 10:09:29 -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 S1759318AbbCDSJ0 (ORCPT + 5 others); Wed, 4 Mar 2015 13:09:26 -0500 Received: from mail-wi0-f169.google.com ([209.85.212.169]:42604 "EHLO mail-wi0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758435AbbCDSGw (ORCPT ); Wed, 4 Mar 2015 13:06:52 -0500 Received: by wiwh11 with SMTP id h11so32601509wiw.1 for ; Wed, 04 Mar 2015 10:06:51 -0800 (PST) X-Received: by 10.194.120.40 with SMTP id kz8mr10628104wjb.21.1425492410924; Wed, 04 Mar 2015 10:06:50 -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.49 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 04 Mar 2015 10:06:50 -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: [PATCH v5 4/9] ARM: STi: DT: STiH407: Add Device Tree node for the LPC Date: Wed, 4 Mar 2015 18:06:33 +0000 Message-Id: <1425492398-27340-5-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> 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.46 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. 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 c06a546..2b2315d 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>; @@ -336,5 +337,24 @@ resets = <&softreset STIH407_MIPHY2_SOFTRESET>; }; }; + + /* 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 = ; + }; }; };