From patchwork Wed Feb 18 11:49:09 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 44762 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 E6C7921544 for ; Wed, 18 Feb 2015 11:49:40 +0000 (UTC) Received: by lbvp9 with SMTP id p9sf458273lbv.1 for ; Wed, 18 Feb 2015 03:49:39 -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=AgcxDFLa5+oNidGumWHsaigxzo93uVhLSzfxm8lMSIDkI9M+T9NYUopWU/esloapl9 mx7jm9wP9dJo4IVk3qwe0BgQdIxAKfgESDsWjAHU8xRheF24Twji0y4Nxe+Edh51RaSK dDlt3/0Ru5U7mJjFy7IcacilZ7NKZ2kjfzqKYXSq7ka+qptSeD12blvv+Tn5eriFsU37 +xNxAFTEhJPbVzLYdVQUVJsVDI5j3edCprmkWFaO6wVwv8FCqlPD/aOLkL/a8Yy6evyW HsT5yF7RXsqIHMVFk+ccrAMpcUKh8iX/zBG+719kLuiSTxIZhSPzAn9BJbPD8rDSC5xy FvbA== X-Gm-Message-State: ALoCoQkIe36XmNWA8xQ6fPC66JZsynsZj6de8CFbK8KbYJSqXRqxEw95O1FA2ICZ/WblhxkpCUxH X-Received: by 10.112.189.227 with SMTP id gl3mr2493071lbc.2.1424260179964; Wed, 18 Feb 2015 03:49:39 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.6.68 with SMTP id y4ls11940lay.12.gmail; Wed, 18 Feb 2015 03:49:39 -0800 (PST) X-Received: by 10.112.110.103 with SMTP id hz7mr33547816lbb.62.1424260179790; Wed, 18 Feb 2015 03:49:39 -0800 (PST) Received: from mail-la0-f48.google.com (mail-la0-f48.google.com. [209.85.215.48]) by mx.google.com with ESMTPS id q8si12853995laj.73.2015.02.18.03.49.39 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Feb 2015 03:49:39 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.48 as permitted sender) client-ip=209.85.215.48; Received: by labhs14 with SMTP id hs14so619147lab.1 for ; Wed, 18 Feb 2015 03:49:39 -0800 (PST) X-Received: by 10.112.114.230 with SMTP id jj6mr32758045lbb.112.1424260179546; Wed, 18 Feb 2015 03:49:39 -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 h5csp2799219lbj; Wed, 18 Feb 2015 03:49:38 -0800 (PST) X-Received: by 10.68.168.101 with SMTP id zv5mr57967514pbb.104.1424260176874; Wed, 18 Feb 2015 03:49:36 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z10si12149782par.206.2015.02.18.03.49.35; Wed, 18 Feb 2015 03:49:36 -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 S1751933AbbBRLta (ORCPT + 28 others); Wed, 18 Feb 2015 06:49:30 -0500 Received: from mail-wg0-f42.google.com ([74.125.82.42]:46164 "EHLO mail-wg0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751649AbbBRLt1 (ORCPT ); Wed, 18 Feb 2015 06:49:27 -0500 Received: by mail-wg0-f42.google.com with SMTP id n12so673783wgh.1 for ; Wed, 18 Feb 2015 03:49:26 -0800 (PST) X-Received: by 10.194.110.69 with SMTP id hy5mr73058276wjb.121.1424260165962; Wed, 18 Feb 2015 03:49:25 -0800 (PST) Received: from localhost.localdomain (host109-148-233-190.range109-148.btcentralplus.com. [109.148.233.190]) by mx.google.com with ESMTPSA id dj5sm32257609wjb.28.2015.02.18.03.49.24 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 18 Feb 2015 03:49:25 -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 v3 3/8] ARM: STi: DT: STiH407: Add Device Tree node for the LPC Date: Wed, 18 Feb 2015 11:49:09 +0000 Message-Id: <1424260154-12868-4-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1424260154-12868-1-git-send-email-lee.jones@linaro.org> References: <1424260154-12868-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.215.48 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 = ; + }; }; };