From patchwork Wed Sep 5 20:32:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 966662 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=cogentembedded.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=cogentembedded-com.20150623.gappssmtp.com header.i=@cogentembedded-com.20150623.gappssmtp.com header.b="nPlLptsH"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 425Fk43ZZFz9sCq for ; Thu, 6 Sep 2018 06:32:12 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727750AbeIFBEB (ORCPT ); Wed, 5 Sep 2018 21:04:01 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:33419 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727758AbeIFBEA (ORCPT ); Wed, 5 Sep 2018 21:04:00 -0400 Received: by mail-lj1-f194.google.com with SMTP id s12-v6so7412566ljj.0 for ; Wed, 05 Sep 2018 13:32:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=subject:from:to:cc:references:organization:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=WaLHw3zs+WM35AlU6TH2FNE8/HjATL3g2LyVL2XTN7w=; b=nPlLptsH1Em81pQKgaD6+6qqhVJ8iEx84c6BQjTkk7WOImyjd9zL18gbNnSyKiFfLm J5xfTT7aA7XrpMOmPz37F4q7ZDM1CEoKzahExUTSZulqc5Rz4htsyRlZt0lJqtxQQ7yK mCrkHjUhkO/R10HRrWZ8LExaBG2AnZ+iXiIhMQTk4NUhnizpkI8TNdQKfSwnlaIMnChm 73W1lr3c40hoQ0tp6F7VJ+2cxe8fxHcJXtfq9sNQmMfVZ/4Z1RP5/IZBiMmEwLhuZg65 oY2mWyLLVAQtq/OzXqkPem3VIbxwsG9s3IzELZSGeTv9dIMKRLisEstfng0/trwONA+r VJOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:references:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=WaLHw3zs+WM35AlU6TH2FNE8/HjATL3g2LyVL2XTN7w=; b=dZPNglBU/kWQPu24otBwxGlihhCcDtQd9tVvqmXnYXX+2Ug58MYvilvjwy69W8HxWk KMGQqiZqtpjzfao2JP9OyRWEEn81Be1OtGeW5bAK2NW8aokEZjBBcFZNceRr/dgji2rT CixBF5qtReKyuCFKxboiK8OBp/sN52RQrpZurJ0At/163q7bnosVYbZGe9k7VouT/V81 C2XeiVVmOlY6UNhXoGxHEF6ynVJyGSyRrbbJHPaLWHoLIMIjBGpUtj89LTPVb/b+TkqA xrdQX9HugVzFvVcDbe6/yR5PnZwiJhosuClu9jZ4Vb/shE8FZyQUt9bOonr/aIg2+zVf PQ5w== X-Gm-Message-State: APzg51C+gDneTy2dnmeiKn47cIpD/vxswO2muvHelYOgYU6RWYCTEYOQ FFoYBGEzO1wpSzgDxS3sNRt1zw== X-Google-Smtp-Source: ANB0VdaG9X+yEFwLv8hSV1N39EyVnBbIZnntcMYv8HxsU14w5qMR3xuQOX2vuZWsqFhgyl8BhOH2Tw== X-Received: by 2002:a2e:5c07:: with SMTP id q7-v6mr24044685ljb.119.1536179529132; Wed, 05 Sep 2018 13:32:09 -0700 (PDT) Received: from wasted.cogentembedded.com ([31.173.86.228]) by smtp.gmail.com with ESMTPSA id i22-v6sm475381lfh.2.2018.09.05.13.32.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Sep 2018 13:32:07 -0700 (PDT) Subject: [PATCH 2/2] clocksource: sh_cmt: add R-Car gen3 support From: Sergei Shtylyov To: Daniel Lezcano , Thomas Gleixner , Rob Herring , devicetree@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org, linux-sh@vger.kernel.org References: <3ce24bfe-1edb-1a92-8847-ff998ac86d16@cogentembedded.com> Organization: Cogent Embedded Message-ID: Date: Wed, 5 Sep 2018 23:32:07 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <3ce24bfe-1edb-1a92-8847-ff998ac86d16@cogentembedded.com> Content-Language: en-MW Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add support for the R-Car gen3 CMT0 and CMT1 bindings -- they seem to be the same CMT0 and CMT1 as in R-Car gen2 SoCs. Also document R8A779{7|8} bindings as these are the R-Car gen3 SoCs for which the initial support was done. Signed-off-by: Sergei Shtylyov Reviewed-by: Chris Paterson --- Documentation/devicetree/bindings/timer/renesas,cmt.txt | 7 +++++++ drivers/clocksource/sh_cmt.c | 8 ++++++++ 2 files changed, 15 insertions(+) Index: renesas/Documentation/devicetree/bindings/timer/renesas,cmt.txt =================================================================== --- renesas.orig/Documentation/devicetree/bindings/timer/renesas,cmt.txt +++ renesas/Documentation/devicetree/bindings/timer/renesas,cmt.txt @@ -34,6 +34,10 @@ Required Properties: - "renesas,r8a7793-cmt1" for the 48-bit CMT1 device included in r8a7793. - "renesas,r8a7794-cmt0" for the 32-bit CMT0 device included in r8a7794. - "renesas,r8a7794-cmt1" for the 48-bit CMT1 device included in r8a7794. + - "renesas,r8a77970-cmt0" for the 32-bit CMT0 device included in r8a77970. + - "renesas,r8a77970-cmt1" for the 48-bit CMT1 device included in r8a77970. + - "renesas,r8a77980-cmt0" for the 32-bit CMT0 device included in r8a77980. + - "renesas,r8a77980-cmt1" for the 48-bit CMT1 device included in r8a77980. - "renesas,rcar-gen2-cmt0" for 32-bit CMT0 devices included in R-Car Gen2 and RZ/G1. @@ -41,6 +45,9 @@ Required Properties: and RZ/G1. These are fallbacks for r8a73a4, R-Car Gen2 and RZ/G1 entries listed above. + - "renesas,rcar-gen3-cmt0" for 32-bit CMT0 devices included in R-Car Gen3. + - "renesas,rcar-gen3-cmt1" for 48-bit CMT1 devices included in R-Car Gen3. + These are fallbacks for R-Car Gen3 entries listed above. - reg: base address and length of the registers block for the timer module. - interrupts: interrupt-specifier for the timer, one per channel. Index: renesas/drivers/clocksource/sh_cmt.c =================================================================== --- renesas.orig/drivers/clocksource/sh_cmt.c +++ renesas/drivers/clocksource/sh_cmt.c @@ -945,6 +945,14 @@ static const struct of_device_id sh_cmt_ .compatible = "renesas,rcar-gen2-cmt1", .data = &sh_cmt_info[SH_CMT1_RCAR_GEN2] }, + { + .compatible = "renesas,rcar-gen3-cmt0", + .data = &sh_cmt_info[SH_CMT0_RCAR_GEN2] + }, + { + .compatible = "renesas,rcar-gen3-cmt1", + .data = &sh_cmt_info[SH_CMT1_RCAR_GEN2] + }, { } }; MODULE_DEVICE_TABLE(of, sh_cmt_of_table);