From patchwork Mon Dec 15 11:25:38 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 42229 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f69.google.com (mail-la0-f69.google.com [209.85.215.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8AE4121772 for ; Mon, 15 Dec 2014 11:26:27 +0000 (UTC) Received: by mail-la0-f69.google.com with SMTP id gd6sf7149498lab.8 for ; Mon, 15 Dec 2014 03:26:26 -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=SqTcAUkK+Qy4fMc+BYBQDVWC+jc2PL+84vJdk/9878M=; b=OX4cjbiqMlExNz+xZsL4+5uKMiJQgXgUERZpa3GWKBhYf3T8DCVwW7vPPFKIh/NAsU js6bMXRYDK0x38bePWO9HD3MqXmKYdF/r1fINE6KeJ17GF9EwRdolLdgtKNcjcA4/B7q etkrKoz0k9/3+RVaQEjBekmkKEe72/T98f+jV3kWEGIqSvFnL5NnuSPVpzXKweZfD4ab hS96oz1vU/aObQF9wRI5/AqXU78oKmpvVOk1qzHTaETbfFzo0i31W8vee8efv0ASNEgT jf5SjspYbh91zXWmTeAgsvwXkU8khoZb7a1brE6IBNXOa7lQ++Fc9krz/BCMsT5st4CK z3eg== X-Gm-Message-State: ALoCoQlEeZeTaILfUVC62GFLF+s0mAQqZAJOj7VfjslFFFokte9YWi65GqMQxTHI8KF+l2GFPFHy X-Received: by 10.152.10.233 with SMTP id l9mr4623029lab.0.1418642786554; Mon, 15 Dec 2014 03:26:26 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.29.133 with SMTP id k5ls7775lah.48.gmail; Mon, 15 Dec 2014 03:26:26 -0800 (PST) X-Received: by 10.153.11.170 with SMTP id ej10mr29801365lad.24.1418642786320; Mon, 15 Dec 2014 03:26:26 -0800 (PST) Received: from mail-la0-f53.google.com (mail-la0-f53.google.com. [209.85.215.53]) by mx.google.com with ESMTPS id y1si6908605lbb.41.2014.12.15.03.26.26 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 15 Dec 2014 03:26:26 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.53 as permitted sender) client-ip=209.85.215.53; Received: by mail-la0-f53.google.com with SMTP id gm9so9114848lab.26 for ; Mon, 15 Dec 2014 03:26:26 -0800 (PST) X-Received: by 10.112.135.229 with SMTP id pv5mr29744481lbb.52.1418642786219; Mon, 15 Dec 2014 03:26:26 -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.142.69 with SMTP id ru5csp684170lbb; Mon, 15 Dec 2014 03:26:25 -0800 (PST) X-Received: by 10.68.201.226 with SMTP id kd2mr49409594pbc.75.1418642784493; Mon, 15 Dec 2014 03:26:24 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ei1si13446986pbc.136.2014.12.15.03.26.23 for ; Mon, 15 Dec 2014 03:26:24 -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 S1751991AbaLOL0O (ORCPT + 4 others); Mon, 15 Dec 2014 06:26:14 -0500 Received: from mail-yk0-f174.google.com ([209.85.160.174]:50458 "EHLO mail-yk0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751731AbaLOL0L (ORCPT ); Mon, 15 Dec 2014 06:26:11 -0500 Received: by mail-yk0-f174.google.com with SMTP id 10so4835367ykt.5 for ; Mon, 15 Dec 2014 03:26:10 -0800 (PST) X-Received: by 10.170.116.21 with SMTP id i21mr24229576ykb.105.1418642770256; Mon, 15 Dec 2014 03:26:10 -0800 (PST) Received: from localhost.localdomain (host109-148-232-11.range109-148.btcentralplus.com. [109.148.232.11]) by mx.google.com with ESMTPSA id y67sm5772300yhc.11.2014.12.15.03.26.07 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 15 Dec 2014 03:26:09 -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, a.zummo@towertech.it, rtc-linux@googlegroups.com, wim@iguana.be, linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, David Paris Subject: [PATCH 8/8] ARM: STi: DT: STiH407: Add Device Tree node for the LPC Date: Mon, 15 Dec 2014 11:25:38 +0000 Message-Id: <1418642738-17407-9-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1418642738-17407-1-git-send-email-lee.jones@linaro.org> References: <1418642738-17407-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.215.53 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.dtsi | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm/boot/dts/stih407.dtsi b/arch/arm/boot/dts/stih407.dtsi index f539627a..a2bba83 100644 --- a/arch/arm/boot/dts/stih407.dtsi +++ b/arch/arm/boot/dts/stih407.dtsi @@ -8,6 +8,7 @@ */ #include "stih407-clock.dtsi" #include "stih407-pinctrl.dtsi" +#include / { #address-cells = <1>; #size-cells = <1>; @@ -259,5 +260,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 = <600>; + 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 = ; + }; }; };