Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp2693068pxv; Sun, 25 Jul 2021 02:25:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5TSpUMcyuGHKjBCZ92YllVyfMvhhFKMipPilj5Prb1OOx37rOHi+mYscIVn2ZLWJP01kW X-Received: by 2002:a92:cb06:: with SMTP id s6mr9337930ilo.87.1627205133296; Sun, 25 Jul 2021 02:25:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627205133; cv=none; d=google.com; s=arc-20160816; b=HIehtUblN2rVbrIvayhYR5ZDWiv9r5arnhOgxoqXU9f8WBUifnnifncK9H1OS5LMku YLTQsz1MK3MMeTM1AXzMbVDkAxn4seYPFtkEDFxvyKfkR16fQV3/FRPhhgKo4eVsYUEe 3Wjz+zYEB+N77fTY51DpS3ZMTyx28tBhXvC4HvZST3B/LueSxpfKoZz9CRY4SzorLrJd DLLh1RxVDq3gVQk6Fqj4LzFrnI0XfYjhMivo+VTAL5gs034e/JrWu89vGNTeSZFJbR4a 8BPbARh2f6w1Kf5Csi09KX4GZgnwArN0K/LV2KF9oIezCMDPrg85tw8EwsoOpLx367kr LDuA== 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:cc:to:subject:from:date; bh=T0Ud5pf9NHhkifb5LbndPVI0OkQ1WRVj0XKN8JbIW14=; b=UETV4Q3EvPXQZtbzEc1CAoAwxVCL6USML6f7Wk9e1DkNP3Zc4My7uMWLM2mEertyIq 15kMHiQkXG0lrnz0xfLVsxNt06+63dwQ5W8ZoDS0sF2ixeuyoXc4a77cWwOmenYJajf9 BWOPXaRa7yLu39dJQxzeUDxuiRQBeoXynh1Mrs8C77X7hj3POMooGIgJa2FRtHZIDLX2 8dPgYmSjEwL/LEWXAEJ/M2GB5RwyI1bxaLz4uf+vr1fh2Fm9lUNZF3RdOyo7TAX8fEGm rWW9egclD/4oFDhZqpb1v9LwQvgVt0bbylBGLan5auLWen8i2p2BhVz4l5sVVRy7LSgy hDwQ== 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=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k14si37712463ion.22.2021.07.25.02.25.22; Sun, 25 Jul 2021 02:25:33 -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=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231153AbhGYIna convert rfc822-to-8bit (ORCPT + 99 others); Sun, 25 Jul 2021 04:43:30 -0400 Received: from aposti.net ([89.234.176.197]:44386 "EHLO aposti.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230370AbhGYIn3 (ORCPT ); Sun, 25 Jul 2021 04:43:29 -0400 Date: Sun, 25 Jul 2021 10:23:50 +0100 From: Paul Cercueil Subject: Re: [PATCH v3 5/5] dt-bindings: iio/adc: ingenic: add the JZ4760(B) socs to the sadc Documentation To: Christophe Branchereau Cc: jic23@kernel.org, lars@metafoo.de, linux-mips@vger.kernel.org, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, robh+dt@kernel.org, devicetree@vger.kernel.org, linux@roeck-us.net, contact@artur-rojek.eu Message-Id: In-Reply-To: <20210724190449.221894-6-cbranchereau@gmail.com> References: <20210724190449.221894-1-cbranchereau@gmail.com> <20210724190449.221894-6-cbranchereau@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Christophe, Le sam., juil. 24 2021 at 21:04:49 +0200, Christophe Branchereau a ?crit : > Add both the jz4760 and jz4760b, plus a property to use the internal > divider on the b variant and document it. > > Signed-off-by: Christophe Branchereau Looks good. Reviewed-by: Paul Cercueil > --- > .../bindings/iio/adc/ingenic,adc.yaml | 19 > +++++++++++++++++++ > 1 file changed, 19 insertions(+) > > diff --git > a/Documentation/devicetree/bindings/iio/adc/ingenic,adc.yaml > b/Documentation/devicetree/bindings/iio/adc/ingenic,adc.yaml > index 433a3fb55a2e..3eb7aa8822c3 100644 > --- a/Documentation/devicetree/bindings/iio/adc/ingenic,adc.yaml > +++ b/Documentation/devicetree/bindings/iio/adc/ingenic,adc.yaml > @@ -23,6 +23,8 @@ properties: > enum: > - ingenic,jz4725b-adc > - ingenic,jz4740-adc > + - ingenic,jz4760-adc > + - ingenic,jz4760b-adc > - ingenic,jz4770-adc > > '#io-channel-cells': > @@ -43,6 +45,23 @@ properties: > interrupts: > maxItems: 1 > > + ingenic,use-internal-divider: > + description: > + If present, battery voltage is read from the VBAT_IR pin, > which has an > + internal 1/4 divider. If absent, it is read through the > VBAT_ER pin, > + which does not have such a divider. > + type: boolean > + > +if: > + not: > + properties: > + compatible: > + contains: > + const: ingenic,jz4760b-adc > +then: > + properties: > + ingenic,use-internal-divider: false > + > required: > - compatible > - '#io-channel-cells' > -- > 2.30.2 >