From patchwork Wed Dec 17 16:45:23 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 42393 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f71.google.com (mail-ee0-f71.google.com [74.125.83.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7BB5F26C8B for ; Wed, 17 Dec 2014 16:47:31 +0000 (UTC) Received: by mail-ee0-f71.google.com with SMTP id c13sf10571025eek.2 for ; Wed, 17 Dec 2014 08:47:30 -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=2soETcTFuOEl2sTep7viOTKy6ebGulKk3mZvdT/RU3w=; b=l/gSUsQEXxrbrZ99FafZjmFRa9NZ9jnKSl/wvPXv7YIKxWEbIv1hLYGlXJVEoNo2R0 J8TejYkwlb4y2RMEh5u8Kb1PyjVYXjeK1zhsSZVrJ2MXnO5kX8rF2UbO3PV/AZ3e/TQu 3EPiNr5wsXyBM8gsoq8Rz5olWKmLVq+AhngwVtIfIaE7swd9zlqED1AWFM6LMBH+0SLW Oafzpme4GfGpINpGOYkBctp1MrBxEIb6WxMraOYb4P1IeH9Iq7ZOQEYFIWYAa9cN7/bd GdtXJ+sNtxS55yWkfRbdELQVuEwAEnSI6uW4JSkG6/nUtGChZXq3hIL1ADqjZ6JS+r+8 ZgFg== X-Gm-Message-State: ALoCoQnAk936Oc/h/72+MNImx+7aA9qcb40y90OnZsGkRbyR2+4qsKZHX1FtswZkUOBscPluE/lq X-Received: by 10.180.105.97 with SMTP id gl1mr1502093wib.7.1418834850719; Wed, 17 Dec 2014 08:47:30 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.5.9 with SMTP id o9ls1128946lao.83.gmail; Wed, 17 Dec 2014 08:47:30 -0800 (PST) X-Received: by 10.152.20.7 with SMTP id j7mr30761310lae.37.1418834850521; Wed, 17 Dec 2014 08:47:30 -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 c6si4430322lag.25.2014.12.17.08.47.30 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 17 Dec 2014 08:47:30 -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 mail-la0-f48.google.com with SMTP id gf13so13169309lab.7 for ; Wed, 17 Dec 2014 08:47:30 -0800 (PST) X-Received: by 10.112.98.99 with SMTP id eh3mr6564508lbb.32.1418834850391; Wed, 17 Dec 2014 08:47:30 -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 ru5csp1422480lbb; Wed, 17 Dec 2014 08:47:29 -0800 (PST) X-Received: by 10.68.165.132 with SMTP id yy4mr71684580pbb.112.1418834848215; Wed, 17 Dec 2014 08:47:28 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a7si6551947pdm.13.2014.12.17.08.47.27; Wed, 17 Dec 2014 08:47:28 -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 S1751549AbaLQQrY (ORCPT + 27 others); Wed, 17 Dec 2014 11:47:24 -0500 Received: from mail-yk0-f181.google.com ([209.85.160.181]:42946 "EHLO mail-yk0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751348AbaLQQpw (ORCPT ); Wed, 17 Dec 2014 11:45:52 -0500 Received: by mail-yk0-f181.google.com with SMTP id 142so6993475ykq.12 for ; Wed, 17 Dec 2014 08:45:51 -0800 (PST) X-Received: by 10.236.96.196 with SMTP id r44mr30698598yhf.187.1418834751883; Wed, 17 Dec 2014 08:45:51 -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 t3sm2460839yhp.19.2014.12.17.08.45.49 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 17 Dec 2014 08:45:51 -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, linux@roeck-us.net, arnd@arndb.de, David Paris Subject: [PATCH 4/8] ARM: STi: DT: STiH407: Add Device Tree node for the LPC Date: Wed, 17 Dec 2014 16:45:23 +0000 Message-Id: <1418834727-1602-5-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1418834727-1602-1-git-send-email-lee.jones@linaro.org> References: <1418834727-1602-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.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..97cc125 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 = <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 = ; + }; }; };