Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp687922pxb; Thu, 23 Sep 2021 08:38:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwRdL6DGSyf0CYFgtOG9IsoqdCf4wV7rNqI/7yjwPYpSSLrGtfIb++ZYgMAuJn+9eTMGbEc X-Received: by 2002:aa7:c5d2:: with SMTP id h18mr6246821eds.218.1632411535047; Thu, 23 Sep 2021 08:38:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632411535; cv=none; d=google.com; s=arc-20160816; b=oXfVqlX4IceWCF7RQXPLRS8M0t+ikhcxXy5EH0bRHbnMr7HJnySWUPCYPQxjxlMgvY yFLKovaMMASh+JzOU3VvOI7f2aJCyXB9pjzJkqRmA7c7676nZtX/fQU6htEhj+eq/jFr hIyepXRmc3zL+CX1hjMSqeFMf/mG9GsmJTGQyjpULU1PXqLRm8oeh1d5Pa4pKLz6IKWg MAAZjetkQ1wBQnXxYODspF1dzPINqrhsINSYaHRi8L4halfWj+SVeFnoHt+ZHneVpg9I w+8ufGCJHepcxKDYy+Tp3LLQb9ZNJwUOVbtvbXRZU1TvfpFppXPVTsXITOAmvjDl6z8z yeoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=aC3bsVp7mqJNdHqk3h+89SUzl9kDRXJiHMc+yQtyazw=; b=CwUIVzPgODH5s+pzO3niZi/NFxG9OQmYWj02BKCj1qvxn3n9xSsw0YOaGkpCz3fVHb P5tQE6c5P0tciMBAR47BceVn+NH1ixrsfoycSc3Nsug5T+B5zWN/rvG9j1nf6GiVO3WU J2WQUX6Ar78/IkvC9vpyrfYeN70eQSSs9Y4A+rHIcfHDLYPeB+y7Rq+pN/2hrDkhCcP9 akc9exVgCZ9PYwdjX+mfKKRDkC0tYRAlAX4rjksjRH5xNqa/gBtq9b5p7rw2TN+eN2Ke c5bI9yNQKXhyehuRfWuYNq5KTI7IHLKIsC+gQ8YYc6tD/5/GKz2B5AXmTEM/JaaBQ7wu lktg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f25si5515206edj.309.2021.09.23.08.38.29; Thu, 23 Sep 2021 08:38:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242033AbhIWPie (ORCPT + 99 others); Thu, 23 Sep 2021 11:38:34 -0400 Received: from relay10.mail.gandi.net ([217.70.178.230]:35651 "EHLO relay10.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241735AbhIWPic (ORCPT ); Thu, 23 Sep 2021 11:38:32 -0400 Received: (Authenticated sender: alexandre.belloni@bootlin.com) by relay10.mail.gandi.net (Postfix) with ESMTPSA id CFE0824000F; Thu, 23 Sep 2021 15:36:55 +0000 (UTC) Date: Thu, 23 Sep 2021 17:36:55 +0200 From: Alexandre Belloni To: Wilken Gottwalt Cc: linux-kernel@vger.kernel.org, Alessandro Zummo , Joerg Reiling , linux-rtc@vger.kernel.org Subject: Re: [PATCH] rtc: rtc-isl12022: add isl12020 device support Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 23/09/2021 12:53:49+0000, Wilken Gottwalt wrote: > Adds the isl12020 device, which is fully compatible to isl12022. > Do you know what is differing between both parts? If there is nothing relevant to linux, maybe we could just avoid adding a new compatible string. > Signed-off-by: Wilken Gottwalt > Signed-off-by: Joerg Reiling > --- > drivers/rtc/rtc-isl12022.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/rtc/rtc-isl12022.c b/drivers/rtc/rtc-isl12022.c > index 961bd5d1d109..c62770ec99c9 100644 > --- a/drivers/rtc/rtc-isl12022.c > +++ b/drivers/rtc/rtc-isl12022.c > @@ -257,6 +257,8 @@ static int isl12022_probe(struct i2c_client *client, > static const struct of_device_id isl12022_dt_match[] = { > { .compatible = "isl,isl12022" }, /* for backward compat., don't use */ > { .compatible = "isil,isl12022" }, > + { .compatible = "isl,isl12020" }, /* for backward compat., don't use */ Please, do not add this compatible string. > + { .compatible = "isil,isl12020" }, You also need to document this string in Documentation/devicetree/bindings/rtc/trivial-rtc.yaml > { }, > }; > MODULE_DEVICE_TABLE(of, isl12022_dt_match); > @@ -264,6 +266,7 @@ MODULE_DEVICE_TABLE(of, isl12022_dt_match); > > static const struct i2c_device_id isl12022_id[] = { > { "isl12022", 0 }, > + { "isl12020", 0 }, > { } > }; > MODULE_DEVICE_TABLE(i2c, isl12022_id); > -- > 2.33.0 > -- Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com