Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp717423pxv; Fri, 9 Jul 2021 07:30:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwa2zRK7pNxs4xJZZYgz+nQiMca/w9RU/urIpIwZJo6VaL7/u49AnJTOeguP7t3sVJU16mZ X-Received: by 2002:aa7:d150:: with SMTP id r16mr48885190edo.210.1625841001736; Fri, 09 Jul 2021 07:30:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625841001; cv=none; d=google.com; s=arc-20160816; b=08MrL4c0Wt7lPaPqrRSrHa6v2fBanfq9HkuEHDj7ILoxk+GVBu/rGuflVjABAc+5MZ 2fak7yxxlL6gAu1LKbXTO92psXcQI7XpmaL3vwdPKe/ljFU0wBe9+j1Nrz1vi30uscY0 /RavUojGycIOiF/MdVrseLtV2gqJPF4t1gr5kbi63eLxh2JQIacXosSlTjL3NIvxlc1e l9/uxfiDUT0N96eJcJ3OFPhvwVZdbSYfGzzjafijoBw7ETRgGtij9rasQ5dPmZLVXxS9 RNPfUYoIAzAykh3yK9GI1HnFUwTjl7H8qU0GbSJvWkBuYucnCoc5A67t0rwxqwJuha/N P47g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:references:cc:to:from:subject :message-id:date:content-transfer-encoding:mime-version :dkim-signature; bh=vNiKju8q73JbtyCn6rNFEdpwD2qXtIUa7UuwlAEO5hU=; b=yhA97S//oUR6yEG86b3Didt+dqJIS+5GYGrFMtWI+zaXeG+5yxApx8Y9ygneJiWkTm PIiuaKjRSlYynHFCoKuQnxdCR7DZuWHpUkIrNP0+v9bEfaMSiOMGMVmq9mmdjvR/RB51 chttBUPcOdySDz7AriR+GFYySofELjbXtG2bcvQQrHM0nscoiEIgrcbyb21tLKE/iT6e FAFlDcBhEpWaCiXShm4QF5Q1ZY9DAiALEX+uwZ45R47kDcJ6TeBGgQ31YoDVB4kgi3+J OVJ+FwC6Wqna5O0H4xVYBlUSgfpywCuYPpMVLq5JuwJqlOnzZjNyE7HJtePlgNEl7b/n n8xA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=h82Q++ov; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q9si6396923edd.413.2021.07.09.07.29.38; Fri, 09 Jul 2021 07:30:01 -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=@gmail.com header.s=20161025 header.b=h82Q++ov; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232095AbhGIOb0 (ORCPT + 99 others); Fri, 9 Jul 2021 10:31:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231797AbhGIObZ (ORCPT ); Fri, 9 Jul 2021 10:31:25 -0400 Received: from mail-qt1-x836.google.com (mail-qt1-x836.google.com [IPv6:2607:f8b0:4864:20::836]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2EAA6C0613DD; Fri, 9 Jul 2021 07:28:42 -0700 (PDT) Received: by mail-qt1-x836.google.com with SMTP id z25so4963553qto.12; Fri, 09 Jul 2021 07:28:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:content-transfer-encoding:date:message-id:subject:from :to:cc:references:in-reply-to; bh=vNiKju8q73JbtyCn6rNFEdpwD2qXtIUa7UuwlAEO5hU=; b=h82Q++ovugmmph115LR2r/Jl2eapOITUeMGu+UvLXwrRMo2jAn0Z3K8v7OcyZUNSYU 7HGmRtwnKjbxua00XxpcHM7faYmoq9VQaCEy1dbA864toMOmMywRkMrRQ+9YAinLf42Q r0GvWuSuASVwcazHPyPBNCvNS4SKLsBIBch6HONY2hWgQpyn/hrpaQfCFl8chRzx1vaV N0HQaoLh1qC+3nNsfsfFZ0fYf0Qyu8/XILVwU3dcNy2aFn4ZdOalg8A6EPhwuZcaZA2h L2t9d4GvXw4HRxu3X/aC0bX26dOWySfj+5P0xXPzH54Ph30S/ft7xfviza/PO+QIqg5m ccFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:content-transfer-encoding:date :message-id:subject:from:to:cc:references:in-reply-to; bh=vNiKju8q73JbtyCn6rNFEdpwD2qXtIUa7UuwlAEO5hU=; b=kdSrrSzC+RUmMtlbqp5ReISkGVq4hadsgFGuwH7SgXUlbyQ7gZs5uaM47NOgRM/0hI uCElSoofWVNRhGMd4Zcl8F/6cTEuFV0bwaCgK0cnDTWnsIuG5PWHzFpKlFUUH8Iq5dhJ oqYubhXD61+LFqmOaFmYTcILJy7oa21SRznMoGeGCR+8LVlXuLrtImbrfFJkYjF6bV09 zDNJUIkfd0uNL/wM4MnTX8ngVoqPQYt1lZzCUw50aJEfKSPMWJ5n5d2vCAmhii+6xowm a3nHPpSSN2WdO15yeWnplUyKK6xOQEt21wE++QTZ3W+5wPBPaNf5R2HmrwOKnBPrj1Mi eX+Q== X-Gm-Message-State: AOAM533PSK9G7WINgW5pDh6rnk4BSio7Hgm24Z4aYv1x49frN/yVP79O bYCDLwu61olZ3ZV6sCfw1M4= X-Received: by 2002:a05:622a:178b:: with SMTP id s11mr17447910qtk.8.1625840921410; Fri, 09 Jul 2021 07:28:41 -0700 (PDT) Received: from localhost (198-48-202-89.cpe.pppoe.ca. [198.48.202.89]) by smtp.gmail.com with ESMTPSA id j20sm2234303qtq.14.2021.07.09.07.28.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 09 Jul 2021 07:28:41 -0700 (PDT) Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Fri, 09 Jul 2021 10:28:40 -0400 Message-Id: Subject: RE: [PATCH v1 4/4] dt-bindings: iio: adc: ad7949: add adi,reference-source From: "Liam Beguin" To: "Sa, Nuno" , "lars@metafoo.de" , "Hennerich, Michael" , "jic23@kernel.org" , "charles-antoine.couret@essensium.com" Cc: "linux-kernel@vger.kernel.org" , "linux-iio@vger.kernel.org" , "devicetree@vger.kernel.org" , "robh+dt@kernel.org" References: <20210708235618.1541335-1-liambeguin@gmail.com> <20210708235618.1541335-5-liambeguin@gmail.com> In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri Jul 9, 2021 at 4:15 AM EDT, Sa, Nuno wrote: > > > > -----Original Message----- > > From: Liam Beguin > > Sent: Friday, July 9, 2021 1:56 AM > > To: liambeguin@gmail.com; lars@metafoo.de; Hennerich, Michael > > ; jic23@kernel.org; charles- > > antoine.couret@essensium.com > > Cc: linux-kernel@vger.kernel.org; linux-iio@vger.kernel.org; > > devicetree@vger.kernel.org; robh+dt@kernel.org > > Subject: [PATCH v1 4/4] dt-bindings: iio: adc: ad7949: add > > adi,reference-source > >=20 > > [External] > >=20 > > From: Liam Beguin > >=20 > > Add bindings documentation for the adi,reference-source property. > > This property is required to properly configure the ADC sample request > > based on which reference source should be used for the calculation. > >=20 > > Signed-off-by: Liam Beguin > > --- > > .../bindings/iio/adc/adi,ad7949.yaml | 22 +++++++++++++++++++ > > 1 file changed, 22 insertions(+) > >=20 > > diff --git > > a/Documentation/devicetree/bindings/iio/adc/adi,ad7949.yaml > > b/Documentation/devicetree/bindings/iio/adc/adi,ad7949.yaml > > index 9b56bd4d5510..3f4629281cc8 100644 > > --- a/Documentation/devicetree/bindings/iio/adc/adi,ad7949.yaml > > +++ b/Documentation/devicetree/bindings/iio/adc/adi,ad7949.yaml > > @@ -35,6 +35,28 @@ properties: > > "#io-channel-cells": > > const: 1 > >=20 > > + adi,reference-select: > > + allOf: > > + - $ref: /schemas/types.yaml#/definitions/uint32 > > + - enum: [0, 1, 2, 3, 6, 7] > > + > > + default: 7 > > + description: | > > + Select the reference voltage source to use when converting > > samples. > > + Acceptable values are: > > + - 0: Internal reference and temperature sensor enabled. > > + Vref=3D2.5V, buffered output > > + - 1: Internal reference and temperature sensor enabled. > > + Vref=3D4.096V, buffered output > > + - 2: Use external reference, temperature sensor enabled. > > + Internal buffer disabled > > + - 3: Use external reference, internal buffer and temperature > > sensor > > + enabled. > > + - 6: Use external reference, internal buffer and temperature > > sensor > > + disabled. > > + - 7: Use external reference, internal buffer enabled. > > + Internal reference and temperature sensor disabled. > > I think typically the description comes first. I also don't think you > need the 'allOf'(not even sure if it will pass the binding check)... > Just have '$ref' and 'enum' on the same level. > I realize I misread your comment on the order of the description. I'll move it at the top of the binding definition. Liam > - Nuno S=C3=A1 > > > required: > > - compatible > > - reg > > -- > > 2.30.1.489.g328c10930387