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: 10589405 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3ADF413BB for ; Wed, 5 Sep 2018 20:32:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 29DB82ABB5 for ; Wed, 5 Sep 2018 20:32:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1CFD02ABBB; Wed, 5 Sep 2018 20:32:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AD4F02AA16 for ; Wed, 5 Sep 2018 20:32:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727848AbeIFBEB (ORCPT ); Wed, 5 Sep 2018 21:04:01 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:44366 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727750AbeIFBEA (ORCPT ); Wed, 5 Sep 2018 21:04:00 -0400 Received: by mail-lj1-f196.google.com with SMTP id q127-v6so7368392ljq.11 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=tAvRlcJbdcfXwmT7sleJE4z9fSoFv/UTw9/GCZxBjJyf2osKWMM5nabX6J1488oy9f ZeSqRqRKC97fT34TeJ6GFRF/bPRbP2ZtHL4Y64718ne4L+g55G/qjcRcPWH99fJVqumt JacTJudifmUyhNDQzD5KqeGCOmasD8cgzZaEZHQeV3R2v0hRquuhPzAPbrkxzmO/KkRu LZZ6ulVMZUIEHAQT5wb8thVmb4b7cLsSrpfEp+T46AK8kxa3rL/XPSCryoiIm+9rEGSm Oyo/vcFxHrpD16iqYKD5nF184kdnEBVwtz7OT37BzNeDnJ4MgIWIK1VyuJIZmpjzuisn Zopg== X-Gm-Message-State: APzg51BIF+1IecpRR6U+wcsbVkeufHinIER8veuJDYXJP2rmzMBHcfQJ BOaabrz0OrWic7+qwtPru/Ytyg== 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: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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);