From patchwork Mon Sep 29 00:23:35 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 38060 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f72.google.com (mail-wg0-f72.google.com [74.125.82.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 87FA5202DB for ; Mon, 29 Sep 2014 00:27:11 +0000 (UTC) Received: by mail-wg0-f72.google.com with SMTP id k14sf5966598wgh.3 for ; Sun, 28 Sep 2014 17:27:10 -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=Zhi8MGMW0rQWGaLK7qHR7SYbU5wi91TpSt3Wky+HzHU=; b=j8uf4uWt+qXCJmm81F6Cq//aUeuA6Fsi8WyWo+C1sqEYzXF6nOngYNVClbGD4LZiaT If/+Wts944IHreBxWn0SjsHUNX3cXA1c73Dmh8SkWh8FHZejkW+E0VvTyoIEIiEGrfyx f53fagSqCPa5FYyLssVxaZC4WoHYnkv8pqjg/JlLPekzm5q16A1Tov7nhWsqIWp2OM5w PVfhCZLQ9wcM7Egs9cAJU/d0+4jn7ZdivR0/QkStXFPzgXIV2lAC1ooqIMnATrkkThO+ Plhg0IaULYANurRolO8Oi4r2gLOXiMEuPh9C8mgWJzTqbG9YeydwTMqJA4S2GyT4vaEH +Rkw== X-Gm-Message-State: ALoCoQlOBYcbSDrikfsajFK5dhIXemxcQLGMlq8mebrMwuX/WKCrf5UQVVqxbucVZd+2HfLcCFrc X-Received: by 10.112.76.229 with SMTP id n5mr25124lbw.8.1411950430734; Sun, 28 Sep 2014 17:27:10 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.153.11.166 with SMTP id ej6ls20596lad.41.gmail; Sun, 28 Sep 2014 17:27:10 -0700 (PDT) X-Received: by 10.152.42.136 with SMTP id o8mr35611732lal.71.1411950430346; Sun, 28 Sep 2014 17:27:10 -0700 (PDT) Received: from mail-la0-f49.google.com (mail-la0-f49.google.com [209.85.215.49]) by mx.google.com with ESMTPS id lt4si16355647lac.82.2014.09.28.17.27.10 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 28 Sep 2014 17:27:10 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.49 as permitted sender) client-ip=209.85.215.49; Received: by mail-la0-f49.google.com with SMTP id ge10so2451501lab.22 for ; Sun, 28 Sep 2014 17:27:10 -0700 (PDT) X-Received: by 10.152.9.200 with SMTP id c8mr36358905lab.76.1411950430035; Sun, 28 Sep 2014 17:27:10 -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.130.169 with SMTP id of9csp98743lbb; Sun, 28 Sep 2014 17:27:09 -0700 (PDT) X-Received: by 10.66.251.132 with SMTP id zk4mr33414240pac.47.1411950428481; Sun, 28 Sep 2014 17:27:08 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id so2si20487219pab.132.2014.09.28.17.27.07 for ; Sun, 28 Sep 2014 17:27:08 -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 S1754771AbaI2A1E (ORCPT + 27 others); Sun, 28 Sep 2014 20:27:04 -0400 Received: from mail-wi0-f176.google.com ([209.85.212.176]:38605 "EHLO mail-wi0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752651AbaI2AXv (ORCPT ); Sun, 28 Sep 2014 20:23:51 -0400 Received: by mail-wi0-f176.google.com with SMTP id n3so2199037wiv.3 for ; Sun, 28 Sep 2014 17:23:50 -0700 (PDT) X-Received: by 10.194.5.234 with SMTP id v10mr40056151wjv.45.1411950230024; Sun, 28 Sep 2014 17:23:50 -0700 (PDT) Received: from localhost.localdomain (AToulouse-656-1-925-235.w90-55.abo.wanadoo.fr. [90.55.46.235]) by mx.google.com with ESMTPSA id h5sm14014311wje.8.2014.09.28.17.23.48 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 28 Sep 2014 17:23:49 -0700 (PDT) From: Daniel Lezcano To: tglx@linutronix.de, mingo@kernel.org Cc: linux-kernel@vger.kernel.org Subject: [PATCH 02/13] clocksource: sh_mtu2: Document r7s72100 binding Date: Mon, 29 Sep 2014 02:23:35 +0200 Message-Id: <1411950226-21598-2-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1411950226-21598-1-git-send-email-daniel.lezcano@linaro.org> References: <5428A559.5050908@linaro.org> <1411950226-21598-1-git-send-email-daniel.lezcano@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: daniel.lezcano@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.49 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: , From: Simon Horman In general Renesas hardware is not documented to the extent where the relationship between IP blocks on different SoCs can be assumed although they may appear to operate the same way. Furthermore the documentation typically does not specify a version for individual IP blocks. For these reasons a convention of using the SoC name in place of a version and providing SoC-specific compat strings has been adopted. Although not universally liked this convention is used in the bindings for a number of drivers for Renesas hardware. The purpose of this patch is to update the Renesas R-Car Multi-Function Timer Pulse Unit 2 (MTU2) driver to follow this convention. Signed-off-by: Simon Horman Acked-by: Geert Uytterhoeven Acked-by: Laurent Pinchart --- * I plan to follow up with a patch patch to use the new binding in the dtsi files for the r7s72100 SoC. v2 * Suggestions by Mark Rutland and Sergei Shtylyov - Compatible strings should be "one or more" not "one" of those listed - Describe the generic binding as covering any MTU2 device - Re-order compat strings from most to least specific v3 * Suggested by Laurent Pinchart - Reword compat documentation for consistency with a more extensive CMT change --- Documentation/devicetree/bindings/timer/renesas,mtu2.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/timer/renesas,mtu2.txt b/Documentation/devicetree/bindings/timer/renesas,mtu2.txt index 917453f..d9a8d5a 100644 --- a/Documentation/devicetree/bindings/timer/renesas,mtu2.txt +++ b/Documentation/devicetree/bindings/timer/renesas,mtu2.txt @@ -8,7 +8,10 @@ are independent. The MTU2 hardware supports five channels indexed from 0 to 4. Required Properties: - - compatible: must contain "renesas,mtu2" + - compatible: must be one or more of the following: + - "renesas,mtu2-r7s72100" for the r7s72100 MTU2 + - "renesas,mtu2" for any MTU2 + This is a fallback for the above renesas,mtu2-* entries - reg: base address and length of the registers block for the timer module. @@ -26,7 +29,7 @@ Required Properties: Example: R7S72100 (RZ/A1H) MTU2 node mtu2: timer@fcff0000 { - compatible = "renesas,mtu2"; + compatible = "renesas,mtu2-r7s72100", "renesas,mtu2"; reg = <0xfcff0000 0x400>; interrupts = <0 139 IRQ_TYPE_LEVEL_HIGH>, <0 146 IRQ_TYPE_LEVEL_HIGH>,