From patchwork Tue Mar 24 09:25:35 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 46230 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f197.google.com (mail-lb0-f197.google.com [209.85.217.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A0ADB214B0 for ; Tue, 24 Mar 2015 09:28:49 +0000 (UTC) Received: by lbiz11 with SMTP id z11sf31472551lbi.2 for ; Tue, 24 Mar 2015 02:28:48 -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=JVvfYI6/spuLJgkH9YH4dBGczl/UUHSHl8HdvbfzVpY=; b=VHWCah51k77cuf14mH6FWeS2c6rvbQmehPOsVP3ea4oxntugSL3UIHWT3HzyU+en+w IGttpNHijYwRnDQMPnkRF8CrgmXDyzAXWNwnr/iNIO7mthopAqjgAP45KV0McTUzVtBP jO/z9v0jo8mAkmrgKGJJrgUsoBwsV4Ky+Tc1Fp4vbB34gtFFXiNF61XMVl+k8JIAjfqE OGeb82dgYaeeHVdaRz25Q5nlJOOMcxAmnA/btFgtFgUiY3sHG45vp+ajHLy7zAhPO+rr l7fXa8DByywee16q2YmfRolf83f8W7gnOS0czr3Agq2o54n3QnZ5hn+q1GcExxcdyHMq bzrg== X-Gm-Message-State: ALoCoQkQSNM+UmMeRFj+vZ8KFoGw5BxQyzdKiIDMgJbUzaGUEg89Ji6hh85CJ5U+p6r4Vc1vrsVf X-Received: by 10.194.201.10 with SMTP id jw10mr645556wjc.3.1427189328270; Tue, 24 Mar 2015 02:28:48 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.205.33 with SMTP id ld1ls9045lac.11.gmail; Tue, 24 Mar 2015 02:28:47 -0700 (PDT) X-Received: by 10.112.219.135 with SMTP id po7mr2787220lbc.111.1427189327743; Tue, 24 Mar 2015 02:28:47 -0700 (PDT) Received: from mail-lb0-f171.google.com (mail-lb0-f171.google.com. [209.85.217.171]) by mx.google.com with ESMTPS id f1si2515844lah.139.2015.03.24.02.28.47 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Mar 2015 02:28:47 -0700 (PDT) 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 lbcgn8 with SMTP id gn8so136370779lbc.2 for ; Tue, 24 Mar 2015 02:28:47 -0700 (PDT) X-Received: by 10.152.120.134 with SMTP id lc6mr2930533lab.72.1427189327540; Tue, 24 Mar 2015 02:28:47 -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.57.201 with SMTP id k9csp1330331lbq; Tue, 24 Mar 2015 02:28:46 -0700 (PDT) X-Received: by 10.68.139.37 with SMTP id qv5mr2839486pbb.23.1427189318437; Tue, 24 Mar 2015 02:28:38 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ry1si4646734pab.199.2015.03.24.02.28.37; Tue, 24 Mar 2015 02:28:38 -0700 (PDT) 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 S1752785AbbCXJ2f (ORCPT + 27 others); Tue, 24 Mar 2015 05:28:35 -0400 Received: from mail-wi0-f178.google.com ([209.85.212.178]:38291 "EHLO mail-wi0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752260AbbCXJZ4 (ORCPT ); Tue, 24 Mar 2015 05:25:56 -0400 Received: by wibgn9 with SMTP id gn9so89469203wib.1 for ; Tue, 24 Mar 2015 02:25:55 -0700 (PDT) X-Received: by 10.194.104.99 with SMTP id gd3mr6006841wjb.114.1427189154972; Tue, 24 Mar 2015 02:25:54 -0700 (PDT) Received: from localhost.localdomain ([81.134.86.34]) by mx.google.com with ESMTPSA id pm6sm2549370wic.20.2015.03.24.02.25.52 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 24 Mar 2015 02:25:53 -0700 (PDT) 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 v6 4/9] ARM: STi: DT: STiH407: Add Device Tree node for the LPC Date: Tue, 24 Mar 2015 09:25:35 +0000 Message-Id: <1427189140-1935-5-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1427189140-1935-1-git-send-email-lee.jones@linaro.org> References: <1427189140-1935-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.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 = ; + }; }; };