From patchwork Wed Feb 25 13:52:24 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 45060 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f200.google.com (mail-wi0-f200.google.com [209.85.212.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E02352142A for ; Wed, 25 Feb 2015 13:53:14 +0000 (UTC) Received: by mail-wi0-f200.google.com with SMTP id r20sf3535179wiv.3 for ; Wed, 25 Feb 2015 05:53:14 -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=G91+3i6bFBSf/gHXGx6UOECenobTjz5x0CtY1PpHf51YZeloV8cIkAXA2PM59iR1oV +wdpe0GJzOvMU4Rs6fk2c+TD4clGlC0ADOWLqSS02CPg5Rbgh5txLGjlbLnTyTFzQdRB IYD4xCyUH/uPQaqwDGWERoZdxX/Z1ZWDItJjvcSSKPwmrZkrXgg8QqMxeK6yhxmcKcxr eIVycY/PKJP8CGZBm4NhqQlhiHQpAwLUPKzLlKInVpJI3gIgRid60k9Pu7BKahiIMYhY K8roTDe/c85waSpiJv7KWKzfJutpXi64QvdYSIuznV39Qpmx//b2RAvkyu2aFAo56voc DnBg== X-Gm-Message-State: ALoCoQndlacUwdozEm+02S/5qG78gm4tmLp9AlkEs1TlDhcMCUX2gBVwERO2kbjn8ZU6yIqV0NGf X-Received: by 10.112.130.70 with SMTP id oc6mr500997lbb.13.1424872394056; Wed, 25 Feb 2015 05:53:14 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.87.231 with SMTP id bb7ls814702lab.50.gmail; Wed, 25 Feb 2015 05:53:13 -0800 (PST) X-Received: by 10.152.20.131 with SMTP id n3mr2786784lae.120.1424872393768; Wed, 25 Feb 2015 05:53:13 -0800 (PST) Received: from mail-lb0-f171.google.com (mail-lb0-f171.google.com. [209.85.217.171]) by mx.google.com with ESMTPS id lf10si28577431lbc.138.2015.02.25.05.53.13 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Feb 2015 05:53:13 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.171 as permitted sender) client-ip=209.85.217.171; Received: by lbvn10 with SMTP id n10so3947558lbv.6 for ; Wed, 25 Feb 2015 05:53:13 -0800 (PST) X-Received: by 10.112.64.193 with SMTP id q1mr2905444lbs.88.1424872393637; Wed, 25 Feb 2015 05:53:13 -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 h5csp2630857lbj; Wed, 25 Feb 2015 05:53:12 -0800 (PST) X-Received: by 10.68.212.6 with SMTP id ng6mr5801392pbc.38.1424872391626; Wed, 25 Feb 2015 05:53:11 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id hw2si47077339pbb.188.2015.02.25.05.53.10; Wed, 25 Feb 2015 05:53:11 -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 S1752960AbbBYNwv (ORCPT + 5 others); Wed, 25 Feb 2015 08:52:51 -0500 Received: from mail-we0-f178.google.com ([74.125.82.178]:45450 "EHLO mail-we0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752900AbbBYNwt (ORCPT ); Wed, 25 Feb 2015 08:52:49 -0500 Received: by wesp10 with SMTP id p10so1570551wes.12 for ; Wed, 25 Feb 2015 05:52:48 -0800 (PST) X-Received: by 10.194.21.137 with SMTP id v9mr6292688wje.140.1424872367180; Wed, 25 Feb 2015 05:52:47 -0800 (PST) Received: from localhost.localdomain (host109-148-232-70.range109-148.btcentralplus.com. [109.148.232.70]) by mx.google.com with ESMTPSA id v7sm64937727wju.22.2015.02.25.05.52.45 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 25 Feb 2015 05:52:46 -0800 (PST) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, 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 Cc: lee.jones@linaro.org, kernel@stlinux.com Subject: [PATCH v4 4/9] ARM: STi: DT: STiH407: Add Device Tree node for the LPC Date: Wed, 25 Feb 2015 13:52:24 +0000 Message-Id: <1424872349-4155-5-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1424872349-4155-1-git-send-email-lee.jones@linaro.org> References: <1424872349-4155-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.217.171 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 = ; + }; }; };