Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp4740049pxb; Tue, 31 Aug 2021 12:06:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwPpQYmJj1+CQcyK+2fHSyZvT8EMmauJb+1FkhdTMtl4hbx6WXD+P6HatQyMHWPwhvsd+cK X-Received: by 2002:a17:906:7208:: with SMTP id m8mr33096000ejk.82.1630436809321; Tue, 31 Aug 2021 12:06:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630436809; cv=none; d=google.com; s=arc-20160816; b=ezvC/IzaXoduqCTogcU8PoCIabh8e7+vloPA1M1uU8P82mAmGv7TK/xIWTSz77jepC PFQphbpe5EruG44iGEfx5tZx4MmKqJr1ahtIlwqkMxNKQgZXKWfShMd2R0cPJZy/933W Ir0TziBHcOxKWPitLTodg/lgogl+XpyuU6Khfxmoq6nRHdcd9G/RLT6xViLcn4Vn9Wtd 4ti5sC6580pQYJFGa6UbCC89b/BooGDMS30KniDkocUHfkNP5Zln74e726fSGSUGFcZu UcjwudjFL9q/9bgsrbzA9hrUCwbUG7jAo3HECHrVizwQakbyheoOC3JnY7F8/TkmWtpA R/tw== 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=W9w1w21DdRbVUz09+7iwKeSrHli8LROFhuhLFNVX38M=; b=Gr+XpxCRrvbRuVh3W2cgYCdNynggsjrxJPcVBmrB8B+hNqpR8JMxKzgT5uSruJNnJW wk0Isiclr3kbQtAAx9yZiCJLFH3RyfMtQaihBhxcypPseQaWsiLfRBXYZ7wOug1U0II2 pyT8yKiM7SITwA4+EeLL4j7iUMd4bM2xVe8iJI2ywXSo9wHIsQgLyvcCFzKK/DUH/s0I jbT5utj8bFN27BoeOEFgnGTGbd5FYRzIRTXvEpSTVKUig6EHNZmiORKf6ci7BvxwNWRj VVgaxR1yztvoZyg6w7UzH29ZGjpFF7DwmB9HP6sopXcnGrNDC2iL6kNU0lTftgE2LWjA d5gg== 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y2si3559667edm.446.2021.08.31.12.06.25; Tue, 31 Aug 2021 12:06:49 -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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238332AbhHaTFi (ORCPT + 99 others); Tue, 31 Aug 2021 15:05:38 -0400 Received: from mail-ot1-f44.google.com ([209.85.210.44]:43828 "EHLO mail-ot1-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238068AbhHaTFh (ORCPT ); Tue, 31 Aug 2021 15:05:37 -0400 Received: by mail-ot1-f44.google.com with SMTP id x10-20020a056830408a00b004f26cead745so368889ott.10; Tue, 31 Aug 2021 12:04:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=W9w1w21DdRbVUz09+7iwKeSrHli8LROFhuhLFNVX38M=; b=epVWniu5duu6pAbIWqB6xjR8KTHHe7XwjfVcXPYp6Ll4mes9WNJ1lAMB/hWUVCfTD6 kv2ubMDPbnoE/SoJbYebkZhK5iL2uhT0jnWxPcb1XigygIauFcDNoI6tdOpfCLhwlYB1 lvujwL9MgtGPR25WNLGquqroSJ2qd/fdUm6gT9ccZJNFNUwB3lpdNJC/5oTqJJwR7l5Q StL7f+lykoFUDFo2ig09pwmmYYweFi5ksg5nWjsCfD9X4SALm120IGzrvIee+FqvW7VL LXc+d8AK2J/Du1GNm7RstrmbHqoKkTlTKfetU+tQQj1SzbMUi0zl0cW+ztN7q4RmhRYv 84Tw== X-Gm-Message-State: AOAM531pSZoMqRo6bT2zLrImsp7cjlAcLXazDl3Xl25Msl/JMZi09Fm7 oZdPVJ4QkzyIxZikZ6JDg9VgMyVc+g== X-Received: by 2002:a9d:65da:: with SMTP id z26mr25112974oth.303.1630436681918; Tue, 31 Aug 2021 12:04:41 -0700 (PDT) Received: from robh.at.kernel.org (66-90-148-213.dyn.grandenetworks.net. [66.90.148.213]) by smtp.gmail.com with ESMTPSA id k24sm4038647otp.31.2021.08.31.12.04.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Aug 2021 12:04:41 -0700 (PDT) Received: (nullmailer pid 482100 invoked by uid 1000); Tue, 31 Aug 2021 19:04:40 -0000 Date: Tue, 31 Aug 2021 14:04:40 -0500 From: Rob Herring To: Navin Sankar Velliangiri Cc: linux-rtc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, a.zummo@towertech.it, alexandre.belloni@bootlin.com Subject: Re: [PATCH] rtc: bq32000: Add TI BQ32002 compatible Message-ID: References: <20210831074922.273809-1-navin@linumiz.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210831074922.273809-1-navin@linumiz.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 31, 2021 at 01:19:22PM +0530, Navin Sankar Velliangiri wrote: > The TI BQ32002 is software compatible with the TI BQ32000, > add DT compatible entries > > Signed-off-by: Navin Sankar Velliangiri > --- > Documentation/devicetree/bindings/rtc/ti,bq32000.yaml | 11 +++++++++++ > drivers/rtc/rtc-bq32k.c | 2 ++ > 2 files changed, 13 insertions(+) > > diff --git a/Documentation/devicetree/bindings/rtc/ti,bq32000.yaml b/Documentation/devicetree/bindings/rtc/ti,bq32000.yaml > index bf9c1c4ddb7e..2ddf1cc097d8 100644 > --- a/Documentation/devicetree/bindings/rtc/ti,bq32000.yaml > +++ b/Documentation/devicetree/bindings/rtc/ti,bq32000.yaml > @@ -15,6 +15,7 @@ allOf: > properties: > compatible: > const: ti,bq32000 > + const: ti,bq32002 'enum' is what you want here. > > reg: > const: 0x68 > @@ -35,6 +36,16 @@ required: > > additionalProperties: false > > +if: > + properties: > + compatible: > + items: Use 'contains' > + - const: ti,bq32002 > +then: > + properties: > + trickle-resistor-ohms: false > + trickle-diode-disable: false > + > examples: > - | > i2c { > diff --git a/drivers/rtc/rtc-bq32k.c b/drivers/rtc/rtc-bq32k.c > index 2235c968842d..a167a6afdc7e 100644 > --- a/drivers/rtc/rtc-bq32k.c > +++ b/drivers/rtc/rtc-bq32k.c > @@ -307,12 +307,14 @@ static int bq32k_remove(struct i2c_client *client) > > static const struct i2c_device_id bq32k_id[] = { > { "bq32000", 0 }, > + { "bq32002", 0 }, > { } > }; > MODULE_DEVICE_TABLE(i2c, bq32k_id); > > static const __maybe_unused struct of_device_id bq32k_of_match[] = { > { .compatible = "ti,bq32000" }, > + { .compatible = "ti,bq32002" }, > { } > }; > MODULE_DEVICE_TABLE(of, bq32k_of_match); > -- > 2.32.0 > >