From patchwork Thu Apr 9 14:47:29 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 46945 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f72.google.com (mail-wg0-f72.google.com [74.125.82.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D466321416 for ; Thu, 9 Apr 2015 14:48:09 +0000 (UTC) Received: by wgiv13 with SMTP id v13sf26812621wgi.3 for ; Thu, 09 Apr 2015 07:48:09 -0700 (PDT) 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=UC4OgBlGCkSFLEM3qJV+lA0mEtNhGlhiynR6fpHv4fY=; b=DKoeZ1LpNqnvmrr0AUv9+u/citIgjvGxfywbBympZJas7TKji+kpEGpk8hcUbTgSDn /pBC1cIg2tgqEyPQnipTw0pL6L/bu2SQZkgqAgJTmHv7nMDezFiNRNohTHHRGenoTXCC OdXvmrorkUaeD9fAAtXw1VQ8t/HSXt8Y7a/wzCOOgvInZY+I9TfTRVHkYfQRQaLWcCLM iYvhCkKkY3Yiq/Cgtv1CIox28tygrL5Jsj+1fXKxLPD0/xFvPtWzd+hVxMItx+xGR633 wZwfKV+25I73vYjTNrX2IOMgXGE7kAB7hg/MfKuWoXseCc+jFaTdUNCLXDLkDprQGV1/ DjZQ== X-Gm-Message-State: ALoCoQkDUEl29MhB5841MP4D4JBAOG5kdeg+DGT8alvJWnr7C3q+ecQc9K/IiQzwuhGz7B2br6sl X-Received: by 10.194.95.67 with SMTP id di3mr6029514wjb.0.1428590889156; Thu, 09 Apr 2015 07:48:09 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.234.236 with SMTP id uh12ls338472lac.54.gmail; Thu, 09 Apr 2015 07:48:09 -0700 (PDT) X-Received: by 10.112.188.194 with SMTP id gc2mr18998511lbc.25.1428590888998; Thu, 09 Apr 2015 07:48:08 -0700 (PDT) Received: from mail-lb0-f177.google.com (mail-lb0-f177.google.com. [209.85.217.177]) by mx.google.com with ESMTPS id n1si11640314lbc.29.2015.04.09.07.48.08 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Apr 2015 07:48:08 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.177 as permitted sender) client-ip=209.85.217.177; Received: by lbbzk7 with SMTP id zk7so92960148lbb.0 for ; Thu, 09 Apr 2015 07:48:08 -0700 (PDT) X-Received: by 10.152.19.199 with SMTP id h7mr4887985lae.32.1428590888900; Thu, 09 Apr 2015 07:48:08 -0700 (PDT) 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.67.65 with SMTP id l1csp517176lbt; Thu, 9 Apr 2015 07:48:08 -0700 (PDT) X-Received: by 10.66.55.68 with SMTP id q4mr57034148pap.71.1428590887130; Thu, 09 Apr 2015 07:48:07 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id zp6si9280360pbc.127.2015.04.09.07.48.06 for ; Thu, 09 Apr 2015 07:48:07 -0700 (PDT) Received-SPF: none (google.com: linux-watchdog-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 S1755531AbbDIOry (ORCPT ); Thu, 9 Apr 2015 10:47:54 -0400 Received: from mail-wi0-f172.google.com ([209.85.212.172]:38636 "EHLO mail-wi0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755488AbbDIOrs (ORCPT ); Thu, 9 Apr 2015 10:47:48 -0400 Received: by wiun10 with SMTP id n10so101089575wiu.1 for ; Thu, 09 Apr 2015 07:47:47 -0700 (PDT) X-Received: by 10.194.174.225 with SMTP id bv1mr61377685wjc.101.1428590867146; Thu, 09 Apr 2015 07:47:47 -0700 (PDT) Received: from localhost.localdomain ([81.134.86.156]) by mx.google.com with ESMTPSA id gt4sm20465371wib.21.2015.04.09.07.47.45 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 09 Apr 2015 07:47:46 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: lee.jones@linaro.org, kernel@stlinux.com, wim@iguana.be, linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, linux@roeck-us.net, a.zummo@towertech.it, david.paris@st.com Subject: [PATCH v7 4/9] ARM: STi: DT: STiH407: Add Device Tree node for the LPC Date: Thu, 9 Apr 2015 15:47:29 +0100 Message-Id: <1428590854-14095-5-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1428590854-14095-1-git-send-email-lee.jones@linaro.org> References: <1428590854-14095-1-git-send-email-lee.jones@linaro.org> Sender: linux-watchdog-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-watchdog@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.177 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 = ; + }; }; };