Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp1687805rdb; Sun, 19 Nov 2023 06:31:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IFv+0LZ1p2d5ifrnsmVtsecNWiBsnDufXGNLIKQSIJyJ40hnw3g6VCooMCKn1oEbLDKL0KK X-Received: by 2002:a17:90a:8b01:b0:280:f534:6b9c with SMTP id y1-20020a17090a8b0100b00280f5346b9cmr3134551pjn.21.1700404292404; Sun, 19 Nov 2023 06:31:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700404292; cv=none; d=google.com; s=arc-20160816; b=i+wfPil9nABSae6zbTRwVE7PDdJsWcHw3qvFzpA/2iuj5HnUsOnCvsE8lam/7oHX0C jNO9daRnETe/5zCsrIoIRFkoYfbvtx1X9qFMdGxRtJtwQnCO2pUVHmwo8SjGU+fOpMRW MW/E5ie5un1rgD5pl3RcJYZzGxj0NW+87L0CJtqPYide96sLTdS66PDGwYnx17lKqk8/ fNdOvv24BHehIAkKHtr7XTlQx+BQr7cOT3bRt47n5wdM7jhVr0ewvy4AClzCm8BGefO8 ETyHEtEBjTW9fxspf7O9JhP+NAWlmE2EKv8Op1lzhrw7Pz6JcEVwuNbix/Hb9Wmnz/r7 DU1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=zkWk1QIYfonBO7UQnh2fJeLmim86BZId8hGdvgxsdvU=; fh=WFctVS/hjsRT9aDevEulWP2rqJ2dsHRqYny57R4XUhk=; b=sMmySOQwEPvUj++PbbPXpuXYFHh2vX9UMcx5t60m75/NmJ4KhzflBw85eD8oWLnsvi 8pJdfZx5DeLdMAsFjjP53J5+NUE7sF4NfBr2N0utggumLKj7lpNkl8PiUKZZl7vFUBIS 5SvP9H/OA4Sr4pFCvgddYJ2Ra0/iigRa0TOXONEaW+Rw5uSmLaiS9lXm/2kE98VtZCF7 tepEZxvqsQIoXBjgBB8LasO0Ew+rkxKVNQBwV8iiVH4GhcOiAaW17Ej8qiRPQkFwZm0F 9KMtUB6FrY/ShLEG/BpPwXF6HRiQmPDQYQCldyRSEl2hvAYwJMsjFSmzdMOOh7w+zvur xwLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YzHxS9Eo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id my13-20020a17090b4c8d00b0027d54b9f379si6623159pjb.123.2023.11.19.06.31.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Nov 2023 06:31:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YzHxS9Eo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (Postfix) with ESMTP id 49613808682A; Sun, 19 Nov 2023 06:31:02 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231213AbjKSOap (ORCPT + 99 others); Sun, 19 Nov 2023 09:30:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36042 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230027AbjKSOak (ORCPT ); Sun, 19 Nov 2023 09:30:40 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE757E6 for ; Sun, 19 Nov 2023 06:30:36 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B83B8C433C8; Sun, 19 Nov 2023 14:30:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700404236; bh=eOMs0R+u0SwhjuMi1iHFc1y5jybj049QsB5U6zvo1ks=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=YzHxS9EojFktpb2cgsh3ypQjf/0Q/oJXIW4Vjk/U3YTiSL9PjhNqsqGMOqVJA4pcO 4AjzclOu6PJoxdmOfOWS4dlaYsnQro8pA4IKifjGXEc+AI1V/fOBaEa3F9TMI0PWoh X5UbGcuJI7pJb42FD0IJJ6dzjIy8ilUT+5LvMhcSw+0/iSCQF9lsMFXm97u0w0TRcR hDSgJ81/0Zq2GbdnDX+wvesmxWJj66yYWWgPy0YMMp7vRLpeSDnPX06gH/CfFpnDMl BQ0bBSn8YEZp/b4VVNwH9+seTSwfTWM7X+3A65VL6wx9dfOkxczVTx7sex/1GV8KXg NEv6e/vVPNaZA== Date: Sun, 19 Nov 2023 14:30:28 +0000 From: Jonathan Cameron To: Javier Carrasco Cc: Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH 2/2] dt-bindings: iio: light: add support for Vishay VEML6075 Message-ID: <20231119143015.205c0219@jic23-huawei> In-Reply-To: <20231110-veml6075-v1-2-354b3245e14a@gmail.com> References: <20231110-veml6075-v1-0-354b3245e14a@gmail.com> <20231110-veml6075-v1-2-354b3245e14a@gmail.com> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email 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 (fry.vger.email [0.0.0.0]); Sun, 19 Nov 2023 06:31:02 -0800 (PST) On Sun, 19 Nov 2023 05:58:04 +0100 Javier Carrasco wrote: > The Vishay VEML6075 is a 16-bit digital UVA and UVB sensor with I2C > interface. > > Add bindings and an example for the Vishay VEML6075. > > Signed-off-by: Javier Carrasco Hmm. This is a very simple device and we have a bunch of similar vishay light sensor bindings. One option here would be to combine all the binding docs and add an explicit check for no interrupts being specified for this compatible. Perhaps that should be a follow up patch though given how simple this is and a desire to not slow down merging the driver. One comment inline, Jonathan > --- > .../bindings/iio/light/vishay,veml6075.yaml | 40 ++++++++++++++++++++++ > 1 file changed, 40 insertions(+) > > diff --git a/Documentation/devicetree/bindings/iio/light/vishay,veml6075.yaml b/Documentation/devicetree/bindings/iio/light/vishay,veml6075.yaml > new file mode 100644 > index 000000000000..f8e2db29af42 > --- /dev/null > +++ b/Documentation/devicetree/bindings/iio/light/vishay,veml6075.yaml > @@ -0,0 +1,40 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/iio/light/vishay,veml6075.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Vishay VEML6075 UVA and UVB sensor > + > +maintainers: > + - Javier Carrasco > + > +properties: > + compatible: > + const: vishay,veml6075 > + > + reg: > + maxItems: 1 > + > + vdd-supply: > + description: Regulator that provides power to the sensor The description doesn't really add anything. vdd-supply: true is sufficient. > + > +required: > + - compatible > + - reg > + > +additionalProperties: false > + > +examples: > + - | > + i2c { > + #address-cells = <1>; > + #size-cells = <0>; > + > + uv-sensor@10 { > + compatible = "vishay,veml6075"; > + reg = <0x10>; > + vdd-supply = <&vdd_reg>; > + }; > + }; > +... >