From patchwork Mon Jun 17 10:00:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 10998691 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 9D31E13AF for ; Mon, 17 Jun 2019 09:58:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8B7D6285A3 for ; Mon, 17 Jun 2019 09:58:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7AF12287B4; Mon, 17 Jun 2019 09:58:50 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,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 20474285A3 for ; Mon, 17 Jun 2019 09:58:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727774AbfFQJ6u (ORCPT ); Mon, 17 Jun 2019 05:58:50 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:38938 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727518AbfFQJ6t (ORCPT ); Mon, 17 Jun 2019 05:58:49 -0400 Received: by mail-pf1-f194.google.com with SMTP id j2so5404361pfe.6 for ; Mon, 17 Jun 2019 02:58:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:date:message-id:in-reply-to:references:subject; bh=rBkEnkJ6ImtWF0KwahOamX5gecdJRBV0BRkWSWBrLjo=; b=qHWW3XMqfoFXN1Pr2VhWbLMofONQ0h89fUKtnAsJYz7t5PdCtfHNGwSL2qxC2ZrYXb BpymVhVyXlutRSwz7DwKUE8t2cfpkwqZrIpnL2U4oDPX43uHGe+sb3GvrWOyEgBnfxfz 7DROA/dMDGmihJWd0dBeX7rcAQwJLBCfW+MGwM8Lt86xTg762SgOxoI7XrsxeMOmV7lz 4SaCvfpnL+1hf8hHEvi/AJCXFIYE7jI3aRuue0lMgblhSvs28aVP7i8KhdIr7kOZ86mL kBNtrvHBNDHgNTwVtvidD8EBWmUEgECnbwROJXIplXCCMCcLuzbfpjR8I4NrxXiT8Jb0 F29A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:date:message-id:in-reply-to :references:subject; bh=rBkEnkJ6ImtWF0KwahOamX5gecdJRBV0BRkWSWBrLjo=; b=Ox4TmiZb3JPKabgdH/sl9Q3NppO+4qSvGkzxiHNZMyTfOZGRZzUHPBJI5Q5y77fwH1 dSyi9vEnMQPPJL6n/j4ccD0AobGk4KOeHly+RGd9eFr1CBP/fzlbkJwc9t+pgJdwFO4x 4bGlMLX6hfgmMcWB0apCWEe4rawGfKxEz4TJYVGJfdPfR7Oz7lLI+xDs5lCUVlPY65Oj idmS22WpehX/3Hmlhv094tJ4fMsxF9EC4DsB/Fvx1oc9HxPY0ClGBYmIfCiM2D364sDg SxuU7V093mQWFGzGEUbwIfakGg9+BCML1dhC8m8vKS8duOz9ikuJAhXD+4ilgFPklATy 7/Zg== X-Gm-Message-State: APjAAAUqK9qiRtJ6XrApZJ7UgK05vcESlNwq/03EHRI2G3xDuGjFJNJI F9a/Nt+BpkEuAso0f94pBimZjL5b X-Google-Smtp-Source: APXvYqyhoPG82P8cQ78d9Z606NKQYJETTZ/SEbm6uSezOwvZhuRNbIYTKikYkLrFgluH+adYf8xxdg== X-Received: by 2002:a17:90a:9289:: with SMTP id n9mr25578755pjo.35.1560765528869; Mon, 17 Jun 2019 02:58:48 -0700 (PDT) Received: from [127.0.0.1] (l193216.ppp.asahi-net.or.jp. [218.219.193.216]) by smtp.gmail.com with ESMTPSA id 188sm15206040pfe.30.2019.06.17.02.58.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Jun 2019 02:58:47 -0700 (PDT) From: Magnus Damm To: linux-renesas-soc@vger.kernel.org Cc: Magnus Damm Date: Mon, 17 Jun 2019 19:00:15 +0900 Message-Id: <156076561505.6960.6769412761253363711.sendpatchset@octo> In-Reply-To: <156076560641.6960.5508309411424406087.sendpatchset@octo> References: <156076560641.6960.5508309411424406087.sendpatchset@octo> Subject: [PATCH 1/3] clocksource/drivers/sh_cmt: SoC-specific match for CMT1 on r8a7740 and sh73a0 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 From: Magnus Damm Add SoC-specific matching for CMT1 on r8a7740 and sh73a0. This allows us to move away from the old DT bindings such as - "renesas,cmt-48-sh73a0" - "renesas,cmt-48-r8a7740" - "renesas,cmt-48" in favour for the now commonly used format "renesas,-" Signed-off-by: Magnus Damm --- The updated SoC-specific DT bindings are documented in: [PATCH 2/8] dt-bindings: timer: renesas, cmt: Update CMT1 on sh73a0 and r8a7740 drivers/clocksource/sh_cmt.c | 8 ++++++++ 1 file changed, 8 insertions(+) --- 0001/drivers/clocksource/sh_cmt.c +++ work/drivers/clocksource/sh_cmt.c 2019-06-17 14:42:26.019448534 +0900 @@ -928,6 +928,14 @@ static const struct of_device_id sh_cmt_ .data = &sh_cmt_info[SH_CMT0_RCAR_GEN2] }, { + .compatible = "renesas,r8a7740-cmt1", + .data = &sh_cmt_info[SH_CMT_48BIT] + }, + { + .compatible = "renesas,sh73a0-cmt1", + .data = &sh_cmt_info[SH_CMT_48BIT] + }, + { .compatible = "renesas,rcar-gen2-cmt0", .data = &sh_cmt_info[SH_CMT0_RCAR_GEN2] }, From patchwork Mon Jun 17 10:00:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 10998693 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 25BF113AF for ; Mon, 17 Jun 2019 09:59:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 16FF3285A3 for ; Mon, 17 Jun 2019 09:59:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0B3B6287B4; Mon, 17 Jun 2019 09:59:00 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,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 B53E4285A3 for ; Mon, 17 Jun 2019 09:58:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727483AbfFQJ67 (ORCPT ); Mon, 17 Jun 2019 05:58:59 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:37059 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728025AbfFQJ67 (ORCPT ); Mon, 17 Jun 2019 05:58:59 -0400 Received: by mail-pg1-f194.google.com with SMTP id n65so1073093pga.4 for ; Mon, 17 Jun 2019 02:58:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:date:message-id:in-reply-to:references:subject; bh=Lowt54KhlQ+41icEpvoHpzc5/UfiJDZpuWU1eqcCBiY=; b=XnfKtJx51d/W8+Nd/543szK6Athvd+umhNP2UiayMhF7nXuqp1q5osV6b4/rAprG5A bzTQByQ/kFyG8KY7GwmEcrrUXuXfxymlOO3lPSj13DvqMJjHR/nDUMqAdPo+AXga6xNQ 3nVElm4OqJ6nL+CuElKBkExm65AAjLWaBjPk2dL2NDxzVy5EoEBgy/lENTotCGGvGapc PZGqyHSb5hIKWP2R2TLk1PeimI7zs8QTyr+ySuQYXK3UGvxiZtiUfbFIIU+c043IUxVe zwvT7L/z0Yx88M5pLEVDE5Z39ahOeHGJJSMhPneDfXQpATgFu8o95bx30ScOtvlnF7C+ a2+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:date:message-id:in-reply-to :references:subject; bh=Lowt54KhlQ+41icEpvoHpzc5/UfiJDZpuWU1eqcCBiY=; b=t7cta3/BKdPptTdqOTbccENSXscNm57orLEfj9fEf5Gemt1U1soszV0J7eO6TtnfZZ p6RsqEKXB4NuEGsdj/ABr4j7jTLaXo7l/Rd01SJAIqFnsaAJ9cI12RBD0J3KopB/wrWV uzRJznnTxQWgmLkdvWyDyAHRmltvQ3C2BD/ZDWQBhaqf2AfT7s5ieJJ6lLx5zfi6gN6+ T0rGekU6/eH9G0erKsHx+B6ixCXegsLpD7fITzUD+v7ZLpPxKUNGtl4jDhHjWrZPjHc+ T/99xfgnkBIRrheWcEhh+ynPu7cxNgdPylMM0Qu5flS9vxkJSjzVzdStmP+1UfPG9wr7 6Q6Q== X-Gm-Message-State: APjAAAVVE9PMyLYmZFFtYCAPh14oNx2FjrP0Yk2kP+BfHV6bXJn53oUp zWpwF5SHD7ZN0iSNMQh5tYZeQ40x X-Google-Smtp-Source: APXvYqxaVtoYvBoKVSe7LYJ81ERnnjhfiZ6NpWYV9852xNtKJ6h7e74wgRQZuOFQ/k6MXIvdI8yrmQ== X-Received: by 2002:a62:5105:: with SMTP id f5mr113149121pfb.127.1560765538010; Mon, 17 Jun 2019 02:58:58 -0700 (PDT) Received: from [127.0.0.1] (l193216.ppp.asahi-net.or.jp. [218.219.193.216]) by smtp.gmail.com with ESMTPSA id f10sm9872228pgq.73.2019.06.17.02.58.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Jun 2019 02:58:57 -0700 (PDT) From: Magnus Damm To: linux-renesas-soc@vger.kernel.org Cc: Magnus Damm Date: Mon, 17 Jun 2019 19:00:23 +0900 Message-Id: <156076562362.6960.14055306539589207977.sendpatchset@octo> In-Reply-To: <156076560641.6960.5508309411424406087.sendpatchset@octo> References: <156076560641.6960.5508309411424406087.sendpatchset@octo> Subject: [PATCH 2/3] clocksource/drivers/sh_cmt: Remove "cmt-48-gen2" support 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 From: Magnus Damm Since late 2017 the DT compat string "renesas,cmt-48-gen2" has not been in use in the upstream kernel. SoC-specific strings and the fallback string "rcar-gen2-cmt1" are now used in the DTSI instead. Remove "renesas,cmt-48-gen2" from the CMT driver. Signed-off-by: Magnus Damm Reviewed-by: Geert Uytterhoeven --- drivers/clocksource/sh_cmt.c | 5 ----- 1 file changed, 5 deletions(-) --- 0027/drivers/clocksource/sh_cmt.c +++ work/drivers/clocksource/sh_cmt.c 2019-06-17 14:44:52.819144991 +0900 @@ -923,11 +923,6 @@ MODULE_DEVICE_TABLE(platform, sh_cmt_id_ static const struct of_device_id sh_cmt_of_table[] __maybe_unused = { { .compatible = "renesas,cmt-48", .data = &sh_cmt_info[SH_CMT_48BIT] }, { - /* deprecated, preserved for backward compatibility */ - .compatible = "renesas,cmt-48-gen2", - .data = &sh_cmt_info[SH_CMT0_RCAR_GEN2] - }, - { .compatible = "renesas,r8a7740-cmt1", .data = &sh_cmt_info[SH_CMT_48BIT] }, From patchwork Mon Jun 17 10:00:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 10998695 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 7C60913AF for ; Mon, 17 Jun 2019 09:59:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6CA56286A8 for ; Mon, 17 Jun 2019 09:59:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6129128815; Mon, 17 Jun 2019 09:59:08 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,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 12AA0286A8 for ; Mon, 17 Jun 2019 09:59:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728025AbfFQJ7H (ORCPT ); Mon, 17 Jun 2019 05:59:07 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:34111 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727693AbfFQJ7H (ORCPT ); Mon, 17 Jun 2019 05:59:07 -0400 Received: by mail-pf1-f195.google.com with SMTP id c85so5416672pfc.1 for ; Mon, 17 Jun 2019 02:59:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:date:message-id:in-reply-to:references:subject; bh=w9wxYyEXoG1MY0ay6SzpNCSRZGH/oQNtZGpYDDUuWiU=; b=nXbM+wHeXPDVryEGwFN0YmQUXAdfh/4fJzelnZbF7VqaTyLopvEiGIHNKqSDc80WVA ZSFuczfS+ccjtQzB4qrc+m2d/kjnpg5oPlGM3Lrh2Bn7dlyAQiz/nk+KRiqr/vNDO0+y Ugq52c7WyewfTmjOqST9SeXFunHW73Vgm2yHR8iW33p0Olj/F9lgLdPS8muj0EOThtNt rHswucajP7P53Ba97KR4wg0HCL8HLhzerzLdrirm93baHT9wE61gjSUNNFNzPzIt0ALE BqAQuJ86Dy4bZf+7mLfYslS3D0vDTZjzd6V6/tizUjLqfCJ7HbazfnFwrjvgZNqT5bV5 ExqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:date:message-id:in-reply-to :references:subject; bh=w9wxYyEXoG1MY0ay6SzpNCSRZGH/oQNtZGpYDDUuWiU=; b=Tm/vETKUkrYXseCJujK4AlYUoHwOuhOWmcO99pQP0W4iTO6kdT4uW9MUtcBDhupgGz Ldl+hqmEQ66qZ7T5SfDbEn9EkO/XEOyrr1akU8QajNdyhCAm+w5OkGyv4LQbT/d5Jno2 /zzkAz5gV15iS7u1FwYLaTdIJeDp8hXH7/2K9jxkipV71QUbOvDQeTViJc4Kzm+9UTRB ZjrusncUWdbvTCj02ogWB+Gj/Qi1I9WitG3iv2wSY32a1rrGq68vULtBkbhV+Lqfxeye 5QwXDzWhzn0r67fgzjlyTAtv/PxIes8xZTzdywvPzB5V3oy6jEn8ugfaj9SdusYGGJ2n LlGA== X-Gm-Message-State: APjAAAU6ZkZl5QP5OhYghBi1sS4wJkPXhet6aRQQqySG21sqXGhbRq// kvm3KbKyXUMUGHwXVKMgi+pvVaan X-Google-Smtp-Source: APXvYqwnchOPJ1xv+42YK6etfKTNoySeXKP5ZXk97CmqEMBOcfPaA69FuwBz8xaYB0NJ6iTrWSUb0Q== X-Received: by 2002:a17:90a:f498:: with SMTP id bx24mr25786162pjb.91.1560765546785; Mon, 17 Jun 2019 02:59:06 -0700 (PDT) Received: from [127.0.0.1] (l193216.ppp.asahi-net.or.jp. [218.219.193.216]) by smtp.gmail.com with ESMTPSA id a21sm11086007pfc.108.2019.06.17.02.59.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Jun 2019 02:59:05 -0700 (PDT) From: Magnus Damm To: linux-renesas-soc@vger.kernel.org Cc: Magnus Damm Date: Mon, 17 Jun 2019 19:00:32 +0900 Message-Id: <156076563276.6960.9613487456512544267.sendpatchset@octo> In-Reply-To: <156076560641.6960.5508309411424406087.sendpatchset@octo> References: <156076560641.6960.5508309411424406087.sendpatchset@octo> Subject: [PATCH 3/3] clocksource/drivers/sh_cmt: Document "cmt-48" as deprecated 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 From: Magnus Damm Update the CMT driver to mark "renesas,cmt-48" as deprecated. Instead of documenting a theoretical hardware device based on current software support level, define DT bindings top-down based on available data sheet information and make use of part numbers in the DT compat string. In case of the only in-tree users r8a7740 and sh73a0 the compat strings "renesas,r8a7740-cmt1" and "renesas,sh73a0-cmt1" may be used instead. Signed-off-by: Magnus Damm --- The updated SoC-specific DT bindings are documented in: [PATCH 2/8] dt-bindings: timer: renesas, cmt: Update CMT1 on sh73a0 and r8a7740 drivers/clocksource/sh_cmt.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) --- 0029/drivers/clocksource/sh_cmt.c +++ work/drivers/clocksource/sh_cmt.c 2019-06-17 14:47:46.179233988 +0900 @@ -921,7 +921,11 @@ static const struct platform_device_id s MODULE_DEVICE_TABLE(platform, sh_cmt_id_table); static const struct of_device_id sh_cmt_of_table[] __maybe_unused = { - { .compatible = "renesas,cmt-48", .data = &sh_cmt_info[SH_CMT_48BIT] }, + { + /* deprecated, preserved for backward compatibility */ + .compatible = "renesas,cmt-48", + .data = &sh_cmt_info[SH_CMT_48BIT] + }, { .compatible = "renesas,r8a7740-cmt1", .data = &sh_cmt_info[SH_CMT_48BIT]