Received: by 2002:a05:7412:b101:b0:e2:908c:2ebd with SMTP id az1csp3307407rdb; Thu, 16 Nov 2023 06:16:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IE9TUDo2kN5ZHv+Km7M54j50+Fw2GB2elaNVrTcAx29vLhH+VeaLeRgnNNOVTQaTBdW+5TF X-Received: by 2002:a05:6a00:2d24:b0:68b:c562:da65 with SMTP id fa36-20020a056a002d2400b0068bc562da65mr15182932pfb.26.1700144208511; Thu, 16 Nov 2023 06:16:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700144208; cv=none; d=google.com; s=arc-20160816; b=Cgx/wwS0qm6uMLCejKsXDSzTbiighMgjAvx98Z8IXjwldl4A2YvkG5dprFSTKJod4x Fhx7T7FR8J7TmGNbdUM4MjF950bOi0BvnX6GYE1hsxfopdkAsVXEKrguoBcLbBFiNyU+ 1lyuCqXi8WLZmhPCb94Q9ykBBPfLg54eexNsn5+X+75YfJFDPoOoOALlIZE+OOoAZrdm yMW/V0f5Z6CscgwIA7V2g/Sv6hdoORnVgjoV4x+lab1T853ZugNedS+xbL5cGGcH9JZr lV9EWcQARk+3acbL1oROWKygZTe9SDFCy0WWhFFWZQgaum0V8iUrh+NLTD1/hpav7TPO Yi2g== 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:dkim-signature; bh=9TfiefQy8rW3l+dAyp+hDrT77MWpjENDmClrFSzMmGM=; fh=3ZCt9qrjiWc8VJdfMrAgk0oe8m8WmwlIn942TnB7z2Q=; b=w0i2G4lvAGNCdKV8plt9q91FDu7tCIfzB/w5MsB4J+TSe3porgYIDc3dtTSjINuv81 IB4P3O8Sy9qOQ3dw2shJjxDciKf3ElY2VdiOtjq7BC5uxllE3hhpk/+HE0zxIy9Idou9 FOK26jVJGysYPgk0epGzXbNRhJkpLsX3+Tw24DH2D0DstcItxr3k/YHv9aZe4BLOQHkB Ah9l5CS2tuthgiLESBKRRVxhJzMkKxtRpU8F0Rm6aAt7uqzxGbb0NxKUO8RyaYg0YF1J WGPLM/Bh0ytsG5otTDhnVi1KyZM/784LpGr6RVfp6rc8AzQy6kd+a8e++prI/QmwycA1 C1Nw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=O7iLLyr6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id ca10-20020a056a00418a00b006be1fc3ee73si10692703pfb.358.2023.11.16.06.16.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 06:16:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=O7iLLyr6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id DA26280B01FD; Thu, 16 Nov 2023 06:16:15 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235331AbjKPOQJ (ORCPT + 99 others); Thu, 16 Nov 2023 09:16:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231205AbjKPOQD (ORCPT ); Thu, 16 Nov 2023 09:16:03 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8088D131 for ; Thu, 16 Nov 2023 06:15:59 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 348A4C433C8; Thu, 16 Nov 2023 14:15:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700144159; bh=NqNngx7IGcQZOL1i4RZBel57M9UqE/S+QpP/P7tzoOA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=O7iLLyr6LioSjjzCjCGziuC79WrEY3vRI00z8amYxugxe24caU82NjV7DMCVcO/94 /AFtXQM/j2NS5CO4qVVGnV+SmpejgmBL3dllBXZVtGfFHvOqIbK0v/zLi2khPwNNGI P6XbSz5uSVhPTKhWFRGyHatRcpolH9loc9BxPGGOJOua6qmpZMcAHMDhsEy/PPpunD +ZYanRf9plGcO/bgEQ1kF/ZvWrET1xOWV05Wj1Vnx3UBE3B21OWLI4QsBUkl+C53mV EzWWz3vSkE2TNCZWMXGJzWKgmn6RWVRKPo+txnkoZPBDu8y/eng256Wse+6d+TmABc WneJheSwEnp7w== Date: Thu, 16 Nov 2023 14:15:56 +0000 From: Conor Dooley To: Li peiyu <579lpy@gmail.com> Cc: jic23@kernel.org, lars@metafoo.de, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH [2/2]] dt-bindings: iio: humidity: Add TI HDC302x support Message-ID: <20231116-shriek-retouch-6a367b2422a3@squawk> References: <20231116125433.13285-1-579lpy@gmail.com> <20231116131407.13860-1-579lpy@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="4A5WVN84xMuEuPuU" Content-Disposition: inline In-Reply-To: <20231116131407.13860-1-579lpy@gmail.com> X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 16 Nov 2023 06:16:16 -0800 (PST) --4A5WVN84xMuEuPuU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Nov 16, 2023 at 09:14:07PM +0800, Li peiyu wrote: > Add device tree bindings for HDC3020/HDC3021/HDC3022 humidity and > temperature sensors. >=20 > Signed-off-by: Li peiyu <579lpy@gmail.com> > --- > .../bindings/iio/humidity/ti,hdc3020.yaml | 48 +++++++++++++++++++ > 1 file changed, 48 insertions(+) > create mode 100644 Documentation/devicetree/bindings/iio/humidity/ti,hdc= 3020.yaml >=20 > diff --git a/Documentation/devicetree/bindings/iio/humidity/ti,hdc3020.ya= ml b/Documentation/devicetree/bindings/iio/humidity/ti,hdc3020.yaml > new file mode 100644 > index 000000000000..8015c4bb5b2f > --- /dev/null > +++ b/Documentation/devicetree/bindings/iio/humidity/ti,hdc3020.yaml > @@ -0,0 +1,48 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/iio/humidity/ti,hdc3020.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: HDC3020/HDC3021/HDC3022 humidity and temperature iio sensors > + > +maintainers: > + - Jonathan Cameron Usually this is you, not the maintainer of the subsystem, since you have the hardware in question and an interest in it specifically. > + > +description: | > + The HDC302x is an integrated capacitive based relative humidity (RH) > + and temperature sensor. > + > + datasheet is available: > + https://www.ti.com/lit/ds/symlink/hdc3020.pdf > + > +properties: > + compatible: > + enum: > + - ti,hdc3020 > + - ti,hdc3021 > + - ti,hdc3022 Looking at your driver, all three of these seem to be compatible? I did only have a quick look though, so please correct me if that is not the case. If they are compatible, please set this up to use a fallback compatible - for example allow compatible =3D "ti,hdc3020"; compatible =3D "ti,hdc3021", "ti,hdc3020"; compatible =3D "ti,hdc3022", "ti,hdc3020"; > + > + interrupts: > + maxItems: 1 > + > + reg: > + maxItems: 1 > + > +required: > + - compatible > + - reg > + > +additionalProperties: false > + > +examples: > + - | > + i2c { > + #address-cells =3D <1>; > + #size-cells =3D <0>; > + > + humidity@47 { The generic node name here should probably be "humidity-sensor". Cheers, Conor. > + compatible =3D "ti,hdc3020"; > + reg =3D <0x47>; > + }; > + }; > --=20 > 2.34.1 >=20 --4A5WVN84xMuEuPuU Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZVYkGQAKCRB4tDGHoIJi 0isfAQDx4UAz4ZKk6C7D0bkkz/wh9YVUhL1bnysGg+PaGTo17wD/Ul22ueR6jCtR DJhfPCD36Jj+R0FMeVN4l2bfg2z/Dgg= =uVyx -----END PGP SIGNATURE----- --4A5WVN84xMuEuPuU--