Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1562921ybt; Thu, 9 Jul 2020 09:54:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw4fm+f8OAx9Z2pM+0xLo1iWv96qfMbuUjT32N5Prz0yc342bVH2UeeFQnJAZicZ/YvqwSd X-Received: by 2002:a17:906:4a87:: with SMTP id x7mr59003471eju.44.1594313643352; Thu, 09 Jul 2020 09:54:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594313643; cv=none; d=google.com; s=arc-20160816; b=yy7H4ZMj3xZnEBc2Rj4+dmLheSnTiT6pu1mUnIVKeEwF2Bpq2vR9w9MzQQO0n4Hsif Roh1f+PRqHY/LDEOKXGWNILIF1zwucwCHkz5rPLdB8DpSbkRNR6qZcDYrNyhSWI28PAX VnU+4sMOugS/mXO+pBkwDUpp1VbsF137eDAkUCmMjCMW8drxAkqqs0ujDTrksQtFUZgw x3RviIcw2HVDhwW8QokWa9+AZiof+blGxL9PZKipRtzq9EQo0cRObMOIB0nWb4UqZx95 LfLdUFZ/xNFT4gpb+xXq7Oh1LFx60nPjsd55m79X3+xnan8HvUaOEdDvEiEHm+GIVIwV 6kOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=7/DCDecxKksLQjx2pJx97E2fm4hbkP0T5+uzMJw8RSw=; b=pRSBn4qCms3G5DttwEN9NHibB/sShl7Q/PU4BHdKLLoirDRpvfNZb0XQe+h5GbdkNU 499cuOzJxITPuk7DvXDGnuHKnWeRr4e1YSxghWGkwZTQ3KF3bL41Wi1vx8HGyZyW9CZQ mKxGYysGaQKhJ8NK0m+qTObN83wi2XAwwcZVtka6f6f4umxoRBwiUcsAGJVlfqJ/WTRQ hH10c647WDFWS8+qRcdx8YRFeSUZHcWfcmzVwjgcfQiV5kpdRnDdzRO7kGJ15girnnYz cryBBsfQr0iOGYOpjYMDwe+x4z1bCkRWAAUUTY7BgYLDcjYmBg8e/6H1YeSyrvraATkb YDSg== 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 dr21si3245187ejc.489.2020.07.09.09.53.39; Thu, 09 Jul 2020 09:54:03 -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 S1727926AbgGIQxB (ORCPT + 99 others); Thu, 9 Jul 2020 12:53:01 -0400 Received: from mail-il1-f196.google.com ([209.85.166.196]:33367 "EHLO mail-il1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726339AbgGIQxA (ORCPT ); Thu, 9 Jul 2020 12:53:00 -0400 Received: by mail-il1-f196.google.com with SMTP id a11so2641751ilk.0; Thu, 09 Jul 2020 09:53:00 -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=7/DCDecxKksLQjx2pJx97E2fm4hbkP0T5+uzMJw8RSw=; b=Mb5vSJwc6KGMq7PEECu1KP6eU13QQQDRxxSucMnH6xOdmOpbwrjRk0YjHz8uM5SFwi J2muvvrKXAwND51BslJwmqoUi/vjRZsirT98PiXJMNy+qVzYfMLconPJWBbCF/4LcIcf NM3xvFrzgPy3WRNYl7PEYFsR/0U91qlVN5NY4QDcialL8/9vvfBJyy+kDYRqEosUq9ba 3c+A84UBGf/2WLIEBG0ky/HQeKtIhDCtkEgCvNesmChf0aDHQPqJ32z+wK5PA7bk1swb ksKAAXEwXGMqfK0UJn5HBJYyqlzON7yqWYsHWTiAv0JxFCsIZBvKpfUc6sjnRi9h2M7b 8OFA== X-Gm-Message-State: AOAM531pAzKvM3IS42LsYdl6rjhO3gdZ0e+AyqjoU3muYw8InEdBw85W s2GrwjfxAkslz/T/uUKrUg== X-Received: by 2002:a92:c5c6:: with SMTP id s6mr49200705ilt.139.1594313579681; Thu, 09 Jul 2020 09:52:59 -0700 (PDT) Received: from xps15 ([64.188.179.254]) by smtp.gmail.com with ESMTPSA id r11sm2115791ilm.2.2020.07.09.09.52.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jul 2020 09:52:58 -0700 (PDT) Received: (nullmailer pid 505434 invoked by uid 1000); Thu, 09 Jul 2020 16:51:07 -0000 Date: Thu, 9 Jul 2020 10:51:07 -0600 From: Rob Herring To: Chris Ruehl Cc: Jack Lo , devicetree@vger.kernel.org, Jean Delvare , Guenter Roeck , linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 2/2] devicetree: hwmon: shtc1: Add sensirion,shtc1.yaml Message-ID: <20200709165107.GB498064@bogus> References: <20200708040748.9014-1-chris.ruehl@gtsys.com.hk> <20200708040748.9014-3-chris.ruehl@gtsys.com.hk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200708040748.9014-3-chris.ruehl@gtsys.com.hk> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 08, 2020 at 12:07:47PM +0800, Chris Ruehl wrote: > Add documentation for the newly added DTS support in the shtc1 driver. > To align with the drivers logic to have high precision by default > a boolean sensirion,low_precision is used to switch to low precision. > > Signed-off-by: Chris Ruehl > --- > .../bindings/hwmon/sensirion,shtc1.yaml | 60 +++++++++++++++++++ > 1 file changed, 60 insertions(+) > create mode 100644 Documentation/devicetree/bindings/hwmon/sensirion,shtc1.yaml > > diff --git a/Documentation/devicetree/bindings/hwmon/sensirion,shtc1.yaml b/Documentation/devicetree/bindings/hwmon/sensirion,shtc1.yaml > new file mode 100644 > index 000000000000..6725a7b646b7 > --- /dev/null > +++ b/Documentation/devicetree/bindings/hwmon/sensirion,shtc1.yaml > @@ -0,0 +1,60 @@ > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/hwmon/sensirion,shtc1.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Sensirion SHTC1 Humidity and Temperature Sensor IC > + > +maintainers: > + - chris.ruehl@gtsys.com.hk > + > +description: | > + The SHTC1, SHTW1 and SHTC3 are digital humidity and temperature sensor > + designed especially for battery-driven high-volume consumer electronics > + applications. > + For further information refere to Documentation/hwmon/shtc1.rst > + > + This binding document describes the binding for the hardware monitor > + portion of the driver. > + > +properties: > + compatible: > + enum: > + - sensirion,shtc1 > + - sensirion,shtw1 > + - sensirion,shtc3 > + > + reg: > + maxItems: 1 > + description: I2C address 0x70 If 0x70 is the only address, then do: reg: const: 0x70 > + > + sensirion,blocking_io: s/_/-/ > + $ref: /schemas/types.yaml#definitions/flag > + description: > + If set the i2c bus hold until measure finished. > + > + sensirion,low_precision: > + $ref: /schemas/types.yaml#definitions/flag s/_/-/ > + description: > + If set aquire data with low precision (not recommended). > + The driver aquire data with high precision by default. > + > +required: > + - compatible > + - reg > + > +examples: > + - | > + i2c1 { > + status = "okay"; Don't show status in examples. > + clock-frequency = <400000>; > + > + shtc3@70 { > + compatible = "sensirion,shtc3"; > + reg = <0x70> > + sensirion,blocking_io; > + status = "okay"; > + }; > + }; > +... > -- > 2.20.1 >