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: 43512 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f198.google.com (mail-lb0-f198.google.com [209.85.217.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 990BE218DB for ; Thu, 22 Jan 2015 11:59:11 +0000 (UTC) Received: by mail-lb0-f198.google.com with SMTP id l4sf799566lbv.1 for ; Thu, 22 Jan 2015 03:59:10 -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=bdW8mM/dqkhPeBG2ZOi5ajtMk4LAd6FTBNVHLqqmHbQ=; b=AuDaerzdpalTdiFWqxpeyzhv4gJF4Cjp3epVGV+gekCNb3x0FTkMj9panZ3R74HJky W8RwSiJMNbu/5MJGyEKGTM4kldgm0JDI1FoXBkzxNGGOT22ES2UNM9fWsGNziuiZD7QJ 3+tu3I0XzRJq8Q2fRPsHRafo2kdRE8Sno0/UaXZQ11dPikhWxdWOIBzsq2LP6RGBXvE/ Wd5EfMej0Nue0JalhjeuSmipzgWB0GaxHvUp3py86NG5Z/cDtbcoO0chMIp4tNaSKBuj CbyZu1QIkKhAHmUvQba8OCpZiWld1wCwr7yaEhKz+XeFPJ+0NJAHAix2tFSbIDQd/ESG keDA== X-Gm-Message-State: ALoCoQnYh4NsehK+OmAXHJD0pSOh00Enr6GJUfL7JHK6jFN8W5Dn6tVqqbgddAATnsYXBC1TXkwY X-Received: by 10.112.37.72 with SMTP id w8mr182830lbj.6.1421927950522; Thu, 22 Jan 2015 03:59:10 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.228.135 with SMTP id si7ls153416lac.51.gmail; Thu, 22 Jan 2015 03:59:10 -0800 (PST) X-Received: by 10.152.36.100 with SMTP id p4mr1080988laj.11.1421927950354; Thu, 22 Jan 2015 03:59:10 -0800 (PST) Received: from mail-lb0-f173.google.com (mail-lb0-f173.google.com. [209.85.217.173]) by mx.google.com with ESMTPS id uc2si21898910lac.80.2015.01.22.03.59.10 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Jan 2015 03:59:10 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.173 as permitted sender) client-ip=209.85.217.173; Received: by mail-lb0-f173.google.com with SMTP id p9so1113681lbv.4 for ; Thu, 22 Jan 2015 03:59:10 -0800 (PST) X-Received: by 10.112.41.234 with SMTP id i10mr1083912lbl.25.1421927950274; Thu, 22 Jan 2015 03:59:10 -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.9.200 with SMTP id c8csp236612lbb; Thu, 22 Jan 2015 03:59:09 -0800 (PST) X-Received: by 10.70.22.208 with SMTP id g16mr1297537pdf.141.1421927944105; Thu, 22 Jan 2015 03:59:04 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id kr3si11906910pbc.112.2015.01.22.03.59.03; Thu, 22 Jan 2015 03:59:04 -0800 (PST) Received-SPF: none (google.com: linux-kernel-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 S1752816AbbAVL67 (ORCPT + 28 others); Thu, 22 Jan 2015 06:58:59 -0500 Received: from mail-ig0-f176.google.com ([209.85.213.176]:43320 "EHLO mail-ig0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752000AbbAVL4w (ORCPT ); Thu, 22 Jan 2015 06:56:52 -0500 Received: by mail-ig0-f176.google.com with SMTP id hl2so25629009igb.3 for ; Thu, 22 Jan 2015 03:56:52 -0800 (PST) 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: [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> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@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.217.173 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 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 = ; + }; }; };