Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp744582pxb; Thu, 23 Sep 2021 09:42:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/CsQZ4WyOW7Qe89QYTwdbtdLtlx4++QmR9tvPNSlQh4yenuuKewWy9hqG8nogmWjwok5a X-Received: by 2002:a05:6638:40a1:: with SMTP id m33mr4886855jam.33.1632415329266; Thu, 23 Sep 2021 09:42:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632415329; cv=none; d=google.com; s=arc-20160816; b=L0InZWYs1AKW2sbbcal/5SEq8EnO/++2Z1vyua1BkzqPkTkjBDOdplC22zm4SYNA6l FJi1KKBzzbBrLNlWFcS9hMorgHO0mVnpEaIksTFiijAWEtq93s8S6NYaViLrXI9MfWAm yYMvDPl780xYpgg1EgHcTv3sSekREpQ7j4uipMWjrlWUgHsN0x+UVJRqEdQ0GZFj6der 2YVJA9jLqmSBEd+ThNfQ3tcKVOuSBkixRBT+bdOtYnGxuTThDH/eTNrDB/7m7JaIqA3b e+WNRvbxFLazxy5mnZwmc1NqrH9mqlXG0aCfAleYNZeXyZ2w/lohoQa/J0qE75bzeE0t f6IQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=BGPZAHM7i3wDWP6kSfdVoHv+FvcOEE2KuIoChr5Ryjc=; b=E2dqXxTyZKmO57DXEVAQZeqM7bbxWvksF8okt1ogW2gTp0r36/7gXlFFN+5YYcGbUG zldzQoYcta9BFp1KrDCsYe6m20iXk7m7UTKBuQsc1nIf2/2hiuhGtHmLotdgCVxC8EOy uyW6D5Ez95vQOSyrWsbsuxrsLguIrplaIm8IXS9H3XfO5er9lvChlhtcAkdPehh9jjRE VSADaQLtsOgyhf5xMyz8GGKFH92oZaA5KPbGx9GQxCtt6rXNu8bxBbSUqCiD5+Vsl7Dj uQ3bVxHdT3BTZ3ZlLlpeOov11rdcQyJ/6ParvRVtITNdO+wqfZ3cVTh8kkUUfPE9Up55 ABUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=pu1I434A; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a13si6368318ilk.74.2021.09.23.09.41.50; Thu, 23 Sep 2021 09:42:09 -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; dkim=pass header.i=@posteo.net header.s=2017 header.b=pu1I434A; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233635AbhIWQlL (ORCPT + 99 others); Thu, 23 Sep 2021 12:41:11 -0400 Received: from mout01.posteo.de ([185.67.36.65]:56251 "EHLO mout01.posteo.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230139AbhIWQlL (ORCPT ); Thu, 23 Sep 2021 12:41:11 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 73AF1240026 for ; Thu, 23 Sep 2021 18:39:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1632415177; bh=JfaYUfRZS79mDdN7aSoR4XEwe4ueYpxquoUGhyEpO/U=; h=Date:From:To:Cc:Subject:From; b=pu1I434ATd2EYnaNHLRWwVS3FUmEtW232KXmoCzvHIGrI9TgojkdutdVObhDu/eOT kVqrK4dvePuHYD6E5nBCNWI3t+O8wJ3fGaB8vwQZr6aV44G8/gwZ0J4ZYmTn44mc7O kxq36X1ul14YX5hbeELkwgROjC+YAoXiinxh1wiHhP8/fT2PoVkcvTfUERW3or6GIk XG29wPpkJ0Kpm+ddQAF4ITyLKP5XY4/xBrqKSikRB/qkRmiZypnpr33hpbvnBnUPj/ b8EdQ+WXPUWqp6/1LgHocRGilmO+kx5EYgRNMlzW2L/DduPBh04gFoeAfLudNHM1Ti xvF3PH1v1SAyQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4HFgqX2ZJKz9rxD; Thu, 23 Sep 2021 18:39:36 +0200 (CEST) Date: Thu, 23 Sep 2021 16:39:34 +0000 From: Wilken Gottwalt To: Alexandre Belloni 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: <20210923183934.09cfb251@monster.powergraphx.local> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 23 Sep 2021 17:36:55 +0200 Alexandre Belloni wrote: > 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. Hmm no, there are no changes relevant for a driver. So yeah, you are right, that only would add the possibility to use isl12020 in the device tree instead of isl12022. Oh boy, this is kind of embarrassing, just didn't think about it. ;-) But there will be more patches, the chip also have temp sensor exposable by hwmon. > > 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 I only checked the isl* bindings. Why is there no specific isl12022 yaml file like the other isl* chips have? > > { }, > > }; > > 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 > > >