From patchwork Thu May 7 13:38:36 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 48117 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f200.google.com (mail-lb0-f200.google.com [209.85.217.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id EF24F2121F for ; Thu, 7 May 2015 13:40:03 +0000 (UTC) Received: by lbbqq2 with SMTP id qq2sf12505301lbb.0 for ; Thu, 07 May 2015 06:40:02 -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=2mggcssuD4jmM64SzFgr3McZvDWS8AhEReEbqMtRFz8=; b=R6eJ4KSR/NbfMm9JLFUK5rbf3zZMDnCohEpx31DKP5LT2e1VzAJ8Y/6q2tPp0v8qkD EgsxGBicoziYu7/J/pA2cl5yGYoHSTcPixEL9Pxf5tR0xPYrYoE5tyZ3iZ5ZaOZOW3Q7 gEgCcMFPZouIGeGxtmTDlM2LuVfF1KszIVo/EwaJ5/MMKEkGDiX2kZoZstqfubia0ZNP /bSDOo/bVwcCbC6McGZTJ35CB3tLp0nbJBmEa0FCNYj1Lxz4TW654KTeP4i3BHfCm9mz dMN/VrjuVZehf0WVjd6XM3XSbFEqhG54ma1DTQ8W1MjJPBbBlIViNqh01E/1sSqXrXOa mYWw== X-Gm-Message-State: ALoCoQnPGRDcdHYOTAyYgiRyUDElC9B8tXWL4dTdvNbP8oOsKV+bjJQM1Ywec2/7n6O27ws8I3Pa X-Received: by 10.194.121.67 with SMTP id li3mr2249649wjb.3.1431006002873; Thu, 07 May 2015 06:40:02 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.23.197 with SMTP id o5ls188606laf.66.gmail; Thu, 07 May 2015 06:40:02 -0700 (PDT) X-Received: by 10.112.156.97 with SMTP id wd1mr3064177lbb.30.1431006002716; Thu, 07 May 2015 06:40:02 -0700 (PDT) Received: from mail-la0-f54.google.com (mail-la0-f54.google.com. [209.85.215.54]) by mx.google.com with ESMTPS id ug12si1324214lac.47.2015.05.07.06.40.02 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 May 2015 06:40:02 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.54 as permitted sender) client-ip=209.85.215.54; Received: by layy10 with SMTP id y10so30872019lay.0 for ; Thu, 07 May 2015 06:40:02 -0700 (PDT) X-Received: by 10.112.219.70 with SMTP id pm6mr3061992lbc.41.1431006001697; Thu, 07 May 2015 06:40:01 -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.67.65 with SMTP id l1csp3447816lbt; Thu, 7 May 2015 06:40:00 -0700 (PDT) X-Received: by 10.66.250.131 with SMTP id zc3mr7107977pac.136.1431005998223; Thu, 07 May 2015 06:39:58 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gg10si2687317pbc.14.2015.05.07.06.39.57 for ; Thu, 07 May 2015 06:39:58 -0700 (PDT) Received-SPF: none (google.com: linux-watchdog-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 S1751719AbbEGNjG (ORCPT ); Thu, 7 May 2015 09:39:06 -0400 Received: from mail-wi0-f178.google.com ([209.85.212.178]:38164 "EHLO mail-wi0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750793AbbEGNi6 (ORCPT ); Thu, 7 May 2015 09:38:58 -0400 Received: by wiun10 with SMTP id n10so60265452wiu.1 for ; Thu, 07 May 2015 06:38:57 -0700 (PDT) X-Received: by 10.194.5.74 with SMTP id q10mr7627925wjq.27.1431005937379; Thu, 07 May 2015 06:38:57 -0700 (PDT) Received: from localhost.localdomain (host81-129-168-240.range81-129.btcentralplus.com. [81.129.168.240]) by mx.google.com with ESMTPSA id n8sm4039911wiy.19.2015.05.07.06.38.55 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 07 May 2015 06:38:56 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: kernel@stlinux.com, devicetree@vger.kernel.org, daniel.lezcano@linaro.org, tglx@linutronix.de, wim@iguana.be, a.zummo@towertech.it, linux-watchdog@vger.kernel.org, rtc-linux@googlegroups.com, linux@roeck-us.net, Lee Jones Subject: [PATCH 04/12] clocksource: bindings: Provide bindings for ST's LPC Clocksource device Date: Thu, 7 May 2015 14:38:36 +0100 Message-Id: <1431005924-21777-5-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1431005924-21777-1-git-send-email-lee.jones@linaro.org> References: <1431005924-21777-1-git-send-email-lee.jones@linaro.org> Sender: linux-watchdog-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-watchdog@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.54 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 including Watchdog and Real Time Clock. This patch provides the bindings used to configure LPC in Clocksource mode. Signed-off-by: Lee Jones --- .../devicetree/bindings/timer/st,stih407-lpc | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Documentation/devicetree/bindings/timer/st,stih407-lpc diff --git a/Documentation/devicetree/bindings/timer/st,stih407-lpc b/Documentation/devicetree/bindings/timer/st,stih407-lpc new file mode 100644 index 0000000..72acb48 --- /dev/null +++ b/Documentation/devicetree/bindings/timer/st,stih407-lpc @@ -0,0 +1,28 @@ +STMicroelectronics Low Power Controller (LPC) - Clocksource +=========================================================== + +LPC currently supports Watchdog OR Real Time Clock OR Clocksource +functionality. + +[See: ../watchdog/st_lpc_wdt.txt for Watchdog options] +[See: ../rtc/rtc-st-lpc.txt for RTC options] + +Required properties + +- compatible : Must be: "st,stih407-lpc" +- reg : LPC registers base address + size +- interrupts : LPC interrupt line number and associated flags +- clocks : Clock used by LPC device (See: ../clock/clock-bindings.txt) +- st,lpc-mode : The LPC can run either one of three modes: + ST_LPC_MODE_RTC [0] + ST_LPC_MODE_WDT [1] + ST_LPC_MODE_CLKSRC [2] + One (and only one) mode must be selected. + +Example: + lpc@fde05000 { + compatible = "st,stih407-lpc"; + reg = <0xfde05000 0x1000>; + clocks = <&clk_s_d3_flexgen CLK_LPC_0>; + st,lpc-mode = ; + };