From patchwork Mon Aug 26 20:44:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 172214 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp4863327ily; Mon, 26 Aug 2019 13:45:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqyVBLEPHmITbwsUd0YwsGkGJHytzMXdDQmc3vncok0f/fStIVWvj0nnY8uxYfLG/b1ZZfOz X-Received: by 2002:a17:90a:fe07:: with SMTP id ck7mr21301449pjb.68.1566852331458; Mon, 26 Aug 2019 13:45:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566852331; cv=none; d=google.com; s=arc-20160816; b=EYc5cqvX6gQWo6uMk+qt3lmI3T/hPoD9RyjEgfZbDZCQa/uQsdV/gdsSFjeIgHn/cA SZ+/fOanpkEibH0t8iU/6ZUnt3qOj5yVMWL0KEWCGRqKDswV+BcgrsOWTGXdaXNL4DLT AjTPfOZlWLeI6r9qd1X/MiaOeUOCaZmYG4JHBaFkjqhUBSEzzVQLQ6DGGmgI/EQA3Ojo CPerLp1f7/Lys235eoDMloNxZGzRph8CZeqdrYGXHeQeYmrmmr8VXVrUcdSqKKPXycv5 gJM5AvV9JVGXtrxDLF7ajPtCywvMmlsz/acbDkjxbZ6MKMUtYS+zAo9IBsv4yJPrVRtM Zr5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=DL5ho5ogXD9UU1gNrTmxuX/cRnYC/JufDAd8jnPhLU8=; b=P5ZQLS0C34XTuwDtoqthM8smrKUOz6mNpS90pqH18Pqy1P9WIDe5fRgV9oce+8lHGs Pus8kadc47nl/rMaXg1I0dO9gjcNXM5zr9/Tl/xWJFuxn8jOJpNcaHYvfkM8s4dpWwDD +oSdtPtlCh+uAFqB4MrcU5rgFrDRwzR5F4TaAUHFOIEY9Jej53DkVOU9G3Kek7ns2Nuj +KOVQkFN/XMos49n+cBfBQjjSFnYz8TqkJ+knY1c7jWfVo2Z/s3prMj2KerydzgkM2WO 25c92N8nb7xVFS144UBnxgQgC7wJitfyHZZGgZsN1EmPHP/p1GeA913tEf4FEhcZEL9E ffQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=O0qgYTMB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z9si10498517plo.66.2019.08.26.13.45.31; Mon, 26 Aug 2019 13:45:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=O0qgYTMB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731828AbfHZUpa (ORCPT + 28 others); Mon, 26 Aug 2019 16:45:30 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:40828 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731778AbfHZUp1 (ORCPT ); Mon, 26 Aug 2019 16:45:27 -0400 Received: by mail-wm1-f67.google.com with SMTP id c5so770058wmb.5 for ; Mon, 26 Aug 2019 13:45:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=DL5ho5ogXD9UU1gNrTmxuX/cRnYC/JufDAd8jnPhLU8=; b=O0qgYTMBwQgISyOnTTu06pp+uxRjjHN8r39V5SZVrkDdNLsdPnMnXwN5T1gqRlZp5d SlRu4MC/nQwItKF5a2ZP6iAljVTtQOxK1/4Uc7sh9aMSFPD/d7N4sBpCPlCrzR9MKnw+ g9TfXAriI1TEk3k44Of9sLU5LrKO1kZchuhTu4HA8D7o5owIdcAa8cqJqenGtE2e7Vgt BC2ieLh5ZjlLV/3UubHuWhYRcKOD9QsNTCIjx9TZMDmfD7cVWYJsIL5XGMdqWu9dB84s OjGc6kgV3RlDdmx3zx4GbHWLo37auTyivHNW4wEC68FtaeUF2LSoJT6b8cDQMRr4yMUV 958A== 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:subject:date:message-id:in-reply-to :references; bh=DL5ho5ogXD9UU1gNrTmxuX/cRnYC/JufDAd8jnPhLU8=; b=VclR+SSJPklxwyJzRQXx88leYrMP8X3CbjHSeCuDjoVCuUniNtFeivP8Dz3RuTyq59 S/S43B+XnODRScwRRgt/zbHQjyZmFHrmX12gmB9/FvMTODgyn4rlWthBgJuU2k3ybmKf yhmldhG4Hum2C85Vf2xt7yWzWhmAR7afe6j4E4OX1YLPI0bfgTXr+ioPWg5cz0RphAz1 FoxCH4CfOFdhZUgZN5X8yQ0nMYIo4lb5YF5sKnSvTGHiPVl71HrWt82/RXViiziym8RM Pc/Is25lGH9EcfNE1F6KjZ6jFO7+tsYaMokCXhNzraDgseEw3Vns2gG26GgACJZM6NZA BrKg== X-Gm-Message-State: APjAAAXrxNKvAGoO+R+k1jxIJ0odJeuXYdiQSBTfcJ5J3AQLUeIGQG87 rG5VwFnIWaX821L9S9o7LqaIsQ== X-Received: by 2002:a1c:4c04:: with SMTP id z4mr23868325wmf.1.1566852325877; Mon, 26 Aug 2019 13:45:25 -0700 (PDT) Received: from mai.imgcgcw.net ([2a01:e34:ed2f:f020:f881:f5ed:b15d:96ab]) by smtp.gmail.com with ESMTPSA id 20sm549557wmk.34.2019.08.26.13.45.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Aug 2019 13:45:24 -0700 (PDT) From: Daniel Lezcano To: tglx@linutronix.de Cc: linux-kernel@vger.kernel.org, Magnus Damm Subject: [PATCH 20/20] clocksource/drivers/sh_cmt: Document "cmt-48" as deprecated Date: Mon, 26 Aug 2019 22:44:07 +0200 Message-Id: <20190826204407.17759-20-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190826204407.17759-1-daniel.lezcano@linaro.org> References: <20190826204407.17759-1-daniel.lezcano@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Reviewed-by: Simon Horman Reviewed-by: Geert Uytterhoeven Signed-off-by: Daniel Lezcano --- drivers/clocksource/sh_cmt.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) -- 2.17.1 diff --git a/drivers/clocksource/sh_cmt.c b/drivers/clocksource/sh_cmt.c index abf5e7873a18..ef773db080e9 100644 --- a/drivers/clocksource/sh_cmt.c +++ b/drivers/clocksource/sh_cmt.c @@ -918,7 +918,11 @@ static const struct platform_device_id sh_cmt_id_table[] = { 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] + }, { /* deprecated, preserved for backward compatibility */ .compatible = "renesas,cmt-48-gen2",