Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp62436pxy; Tue, 20 Apr 2021 12:40:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJZrIbGP4MVyXwMUVllbsdVJBMBFTFwmW6pQLuAUZjzt42VmaetWp4ZOWZvnWZsBQj8Xfm X-Received: by 2002:a17:902:b28b:b029:ea:eda0:4d5e with SMTP id u11-20020a170902b28bb02900eaeda04d5emr29584076plr.68.1618947633164; Tue, 20 Apr 2021 12:40:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618947633; cv=none; d=google.com; s=arc-20160816; b=wHr4GL6Weapsjqp3TTBJfs4jWp6kkBfo53ir6tK4SCJ/8kI8IQ8oZ2oQz8AJV07EMI JGW6ZZE6VkVHkdBO8b8LhbasyaLTZz1l/9S/Fc0JZ5GxSws6ITcyo5SA+VI6TFPlo04A /s8j9+OTm99EJ9F87L63hbUtJS7SkRFwJO7JA8ICL6WYypZKYG8+otYaacHW7IGSxjv8 5AGQq8j4zxyOEv+WQs78nKj3kxvXMBboHisDX9pQxhpo2arjscKbIeq2DQ24KReXY0bR Bj4cme5SAfrYnTLzHO7fwjyDcWzM9fqgq3xO/toVk0b5fvOcAyOPcUCbXJHorQmTIdS8 sA1A== 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=Y2BpotxAReH+14W0XNHlls+cgG6EVIk6Cecdi206lYo=; b=QqfDSVnnndSQDemphKGGnyU3oDYhBxL+xwBKFlxxxi+XMnd7jWYJfNAJzd991zAzXw J+LVsxti1i5HcCJjyhkXQNBS3zUoCY6db5q6VOMn/CzH3/RcndIPSVm4SW/fE24iZHgM NuMqE+Hk6zUTUgV06q6r1EbB/JYpMuq2qDKjkjjyR2+G9HpW1FegKgSo7fcUSh5wO+mz IRtZYzOObP75eP9rfBAtfIYkJF1Kaqb/wXuJ3sW7nF08ERnmz37P1DuvlXk6pOA8oHEH QHqPeap+BGvL6dILm2gcStPgjD/98WC3daVnYkKJkDYIKZ9Py1frUr9xZM+JLwBMT3bo 1/tA== 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 m129si22307255pfd.105.2021.04.20.12.40.20; Tue, 20 Apr 2021 12:40: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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233768AbhDTTiW (ORCPT + 99 others); Tue, 20 Apr 2021 15:38:22 -0400 Received: from mail-oi1-f182.google.com ([209.85.167.182]:40486 "EHLO mail-oi1-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233740AbhDTTiV (ORCPT ); Tue, 20 Apr 2021 15:38:21 -0400 Received: by mail-oi1-f182.google.com with SMTP id u16so22784241oiu.7; Tue, 20 Apr 2021 12:37:48 -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=Y2BpotxAReH+14W0XNHlls+cgG6EVIk6Cecdi206lYo=; b=Fjb0iRHVecB2VkFG346xepL7F02P5jEx/OCx1jbEhh1PRshZdTHEdjBLKJpPBYHzx4 CmKi3sccHMVifc2mAKmBFL1J2Mc4qx6u8CRGBR/5D7z+P9H4vnd5EEBLcF0JHPIoANWv Y0ZFDSky3FpdqLIhuDah9mgLpapNXm35jbUVVo0CDAxtEVc6pQwNZJNu1I+SIOYGgVll qltMPyR5l3jL3aw+Pt/7vpRYwJxUUZTokEdYHZo1qrGzX0xziJ8Y/tdNZ1pEPncpHmJo 8Q5p/TnB7VewniOXktTjbxcuBMJErSMwiNFfsAgxdOnaBc7y2jBraN7OKg2hDAC/wTgi B9ig== X-Gm-Message-State: AOAM533UN2dn1Bv3B1/Ob8oX+VE2HWeeADFkYeW7Vm/Kx3GKFoOAE/6y Oc+vA+R+9ATLRvkMOwwIiA== X-Received: by 2002:aca:d513:: with SMTP id m19mr4115453oig.111.1618947467961; Tue, 20 Apr 2021 12:37:47 -0700 (PDT) Received: from robh.at.kernel.org (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id r14sm3741562oth.3.2021.04.20.12.37.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Apr 2021 12:37:47 -0700 (PDT) Received: (nullmailer pid 3686765 invoked by uid 1000); Tue, 20 Apr 2021 19:37:46 -0000 Date: Tue, 20 Apr 2021 14:37:46 -0500 From: Rob Herring To: Lucas Stankus Cc: lars@metafoo.de, Michael.Hennerich@analog.com, jic23@kernel.org, gregkh@linuxfoundation.org, linux-iio@vger.kernel.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH v2 1/2] dt-bindings: staging: iio: cdc: ad7746: add binding documentation for AD7746 Message-ID: <20210420193746.GA3632576@robh.at.kernel.org> References: <54a9eaeaa42d47037b2a07bd933e6dfade745d02.1618785336.git.lucas.p.stankus@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <54a9eaeaa42d47037b2a07bd933e6dfade745d02.1618785336.git.lucas.p.stankus@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Apr 18, 2021 at 07:49:51PM -0300, Lucas Stankus wrote: > Add device tree binding documentation for AD7746 cdc in YAML format. > > Signed-off-by: Lucas Stankus > --- > > A minor note about the adi,excitation-vdd-permille property. Jonathan > suggested the name to be adi,excitation-vdd-milicent, but I was unsure of > the milicent naming. With a quick search I found out that the common way to > call a thousandth is 'per mille'[1], but I didn't find any use of it in the > kernel documentation. Any thoughts about it? Seems okay to me. > [1] https://en.wikipedia.org/wiki/Per_mille > > .../bindings/iio/cdc/adi,ad7746.yaml | 73 +++++++++++++++++++ > 1 file changed, 73 insertions(+) > create mode 100644 Documentation/devicetree/bindings/iio/cdc/adi,ad7746.yaml > > diff --git a/Documentation/devicetree/bindings/iio/cdc/adi,ad7746.yaml b/Documentation/devicetree/bindings/iio/cdc/adi,ad7746.yaml > new file mode 100644 > index 000000000000..a2a7eee674ba > --- /dev/null > +++ b/Documentation/devicetree/bindings/iio/cdc/adi,ad7746.yaml > @@ -0,0 +1,73 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/iio/cdc/adi,ad7746.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: AD7746 24-Bit Capacitance-to-Digital Converter with Temperature Sensor > + > +maintainers: > + - Michael Hennerich > + > +description: | > + AD7746 24-Bit Capacitance-to-Digital Converter with Temperature Sensor > + > + Specifications about the part can be found at: > + https://www.analog.com/media/en/technical-documentation/data-sheets/ad7291.pdf > + > +properties: > + compatible: > + enum: > + - adi,ad7745 > + - adi,ad7746 > + - adi,ad7747 > + > + reg: > + maxItems: 1 > + > + adi,excitation-vdd-permille: > + description: | > + Set VDD per mille to be used as the excitation voltage. > + $ref: /schemas/types.yaml#/definitions/uint32 > + enum: [125, 250, 375, 500] > + > + adi,exca-output-en: > + description: Enables the EXCA pin as the excitation output. > + type: boolean > + > + adi,exca-output-invert: > + description: Inverts the excitation output in the EXCA pin. > + type: boolean 'invert' assumes I know what the non-inverted signal is. Sometimes that makes sense, but if you can define in terms of the inverse that would be better. For example, for a normally active low signal, name the property 'foo-active-high'. > + > + adi,excb-output-en: > + description: Enables the EXCB pin as the excitation output. > + type: boolean > + > + adi,excb-output-invert: > + description: Inverts the excitation output in the EXCB pin. > + type: boolean > + > +required: > + - compatible > + - reg > + > +additionalProperties: false > + > +examples: > + - | > + i2c { > + #address-cells = <1>; > + #size-cells = <0>; > + > + ad7746: cdc@48 { > + compatible = "adi,ad7746"; > + reg = <0x48>; > + adi,excitation-vdd-permille = <125>; > + > + adi,exca-output-en; > + adi,exca-output-invert; > + adi,excb-output-en; > + adi,excb-output-invert; > + }; > + }; > +... > -- > 2.31.1 >