Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp635443pxa; Wed, 12 Aug 2020 09:56:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyWuTZ+4XLM6/DYuOO8qwuO8Xrr+87JBZ6vc7uHQsBOeOi/nrEuSylFZexCTorYqr37Rwiz X-Received: by 2002:a17:906:8050:: with SMTP id x16mr663366ejw.441.1597251378025; Wed, 12 Aug 2020 09:56:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597251378; cv=none; d=google.com; s=arc-20160816; b=RueWttEOWvRgf+/ZRLXFvBkMdJON2jvPd/NV16XfRauhOSk72GexMcgWUFN5Z0pbYM NxdAnGCpUUWBAGxgd4JiUTV9Uq9UqpFZ8Yk4Q1MU6lK4mAkEkGDinKrjvUSilxVEwln5 Rf8+VaVHqj0lbJoH7CQ0rOD1dwSDlnRi3Ni0HG/hrw/RickoiCgVMSygPpuu8MiEg36U chTCdoyTlTzy5PqK3PuloCPt8Iku3Xcckn4NZZUMssFSC1t7gzW0cbf8CobPPXsaqLZ9 LfrLS9vyPLlCildMersWBFJEJBSOFyh6EgEuNqRdcAfarVn9ZUOHBJcPAobXEqm/JTKf kybg== 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=KrbB1lAerHD2VaQ3JRVtjguqYJiBvVxH8bz9gL6d2W4=; b=HCkPGHTZP3c41g2ngilCKEk2HqLh8pcac24MvklpHAOpA22jqOmCIAkPOeMpoi31ra kKx+CHtlPULIZ4z2S/LScUcd8AQlc5Xmu8iMs1OLGunnlC0TwEbHN+XzM95YoUI3za9/ /AeRuykkrY+QdqyeUZJyIhJUFDPg73CxjtmU226Ped7U85rQkGSbHFMVwWsdzOeJP6qC rREoEsDCCY9rqvC8C3wLXF2HDcTRvQ4Da4+qTrQ2OkUwqV86EtjY6VVfxFZZv6mDcw0W 8DwONs/0h+d0GHmZLTYL/dD2bjs5ZsGZ3TwSkBcR0eHS7Zllcp554RXrWTyUWhuxR24g 8BFA== 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 s24si1576791ejd.365.2020.08.12.09.55.49; Wed, 12 Aug 2020 09:56:18 -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 S1726789AbgHLQxV (ORCPT + 99 others); Wed, 12 Aug 2020 12:53:21 -0400 Received: from mail-io1-f67.google.com ([209.85.166.67]:36481 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725872AbgHLQxM (ORCPT ); Wed, 12 Aug 2020 12:53:12 -0400 Received: by mail-io1-f67.google.com with SMTP id t15so3596511iob.3; Wed, 12 Aug 2020 09:53:12 -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=KrbB1lAerHD2VaQ3JRVtjguqYJiBvVxH8bz9gL6d2W4=; b=C+DFNw1Uy8pS9wXvtX4y29HiOY2qbZ+4z6KzX8n8iU/fBwks7n0ea1N9TqHc/8OCSL 2gIWG11b8r3j7q+tmaKJGPioyQJV5dkaC39xQya2yN17XFkQgGSDyKQMoYUZ6unk6E3i EPiJ6ik5TxrQBlZseNjg3JpswbW0Iqy4gHzBh3RZYZRo3KJZsisMxXtpOhNMH6AAQHW9 Py9PWYMEpxUNZerPsaIk9tTqYndxYETJLsbhflDl6ArhsX8nXFrKNYB1oRRQsYRg3RQD nukSbVzanqaglWTftBs3WirO3H6D/TZtiSKPH5sIiC/jizwFKZjEd9C/oPbJyzlnv72p O01Q== X-Gm-Message-State: AOAM533ulF+E4wIutxfVzsaKmN3SpW3sotIIMtpahAsKf42BMO7BaFtl gqVZ2qjP9ztNOxLRbwmhGuyAfuU= X-Received: by 2002:a05:6638:1685:: with SMTP id f5mr390007jat.48.1597251191730; Wed, 12 Aug 2020 09:53:11 -0700 (PDT) Received: from xps15 ([64.188.179.248]) by smtp.gmail.com with ESMTPSA id n3sm1330443ilj.29.2020.08.12.09.53.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Aug 2020 09:53:11 -0700 (PDT) Received: (nullmailer pid 2361147 invoked by uid 1000); Wed, 12 Aug 2020 16:53:09 -0000 Date: Wed, 12 Aug 2020 10:53:09 -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 v7 2/2] devicetree: hwmon: shtc1: add sensirion,shtc1.yaml Message-ID: <20200812165309.GA2357620@bogus> References: <20200807073143.30462-1-chris.ruehl@gtsys.com.hk> <20200807073143.30462-3-chris.ruehl@gtsys.com.hk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200807073143.30462-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 Fri, Aug 07, 2020 at 03:31:43PM +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. low-precision > > Signed-off-by: Chris Ruehl > --- > .../bindings/hwmon/sensirion,shtc1.yaml | 59 +++++++++++++++++++ > 1 file changed, 59 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..41cc59b0b0e3 > --- /dev/null > +++ b/Documentation/devicetree/bindings/hwmon/sensirion,shtc1.yaml > @@ -0,0 +1,59 @@ > +# 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 Full name too please. > + > +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: > + const: 0x70 > + > + sensirion,blocking-io: > + $ref: /schemas/types.yaml#definitions/flag > + description: > + If set, the driver hold the i2c bus until measurement is finished. > + > + sensirion,low-precision: > + $ref: /schemas/types.yaml#definitions/flag > + description: > + If set, the sensor aquire data with low precision (not recommended). > + The driver aquire data with high precision by default. > + > +required: > + - compatible > + - reg Add: additionalProperties: false > + > +examples: > + - | > + i2c1 { i2c { > + #address-cells = <1>; > + #size-cells = <0>; > + clock-frequency = <400000>; > + > + shtc3@70 { > + compatible = "sensirion,shtc3"; > + reg = <0x70>; > + sensirion,blocking-io; > + }; > + }; > +... > -- > 2.20.1 >