Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp5560698rwr; Mon, 24 Apr 2023 06:08:48 -0700 (PDT) X-Google-Smtp-Source: AKy350beUSZ+/FtWUCx7LSmBKCiQr4C4JxR8sOeyJTFJDrm7jdBRkQvT0QX4IljAr7zkT6vJq35N X-Received: by 2002:a05:6102:3a62:b0:42f:e944:7ea0 with SMTP id bf2-20020a0561023a6200b0042fe9447ea0mr5406421vsb.6.1682341727917; Mon, 24 Apr 2023 06:08:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682341727; cv=none; d=google.com; s=arc-20160816; b=os+VSOBpUHV75HXcw+YhTqymEum2eBwMQ8SzFRoGNi5V+A1BzdKTwxjC5V9pnujQrC OTSkIfoS6iLlDi9DVjMxiJFgY1QARJbx6XV3cgMbbfKJpM6ttdJgrtmZGlO1N9THnb5U l/usv5YupL/SanQK3s3nIQSC43wo2TpSPoSobwlp+wMZN0cfPqVR0J8P8Nfnstq+1b7R Q6mL4xWk0CcVpSoC8YuzNpFhFsLal+l6A/WFI1TzgCiEKTlJ37xruLnkayComORxCxL2 u5Qi5FEK59V4Yvwv8qxeSAyQWQo8/bFX/zFRh+gpV8rQIU9S18VV8eqUHiR9U+I+5AHl kQvA== 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=I6femOnySKNTiqjlHMDrxwe74ekz6pLAJiaQJ5/km8I=; b=tHy+AawWEi3k4fMQdmBHGLYHLmQA8XIXabxU1bINDU4ZvSw6Uy8FQq5Ssf8UhvTFnC 2A/9fkAgJ/OYAZJkuEi8FFboQxRq7TxZlTR5syyvNsBDYdqqKWm0XFfm2lVq7smBQ+mV 4CyPuBlpKTRUHKxrbk1S8HW7N35f1UCbKs+qlBhm7IKjok+RCZ0N/GQton5nTe1ycg4V kyHQy2pcw6VUQMRPoMBO3thNxz+2Vd4Dx9S/+I5KdkDf6dDgwRXaP2Dy5uVYx3V/Phqj vt8TV/RiGAH3gzmx0Rmv1gY6LIFA2FjCKgAKnUaQzz7xwRouZMUnQ96awHMFa1TNWGEt SktA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=DsBIs1MU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f24-20020a056102151800b0042fefd2151fsi1885948vsv.39.2023.04.24.06.08.32; Mon, 24 Apr 2023 06:08:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=DsBIs1MU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231781AbjDXNIJ (ORCPT + 99 others); Mon, 24 Apr 2023 09:08:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231785AbjDXNIH (ORCPT ); Mon, 24 Apr 2023 09:08:07 -0400 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 367E13A94; Mon, 24 Apr 2023 06:08:04 -0700 (PDT) Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-4efd6e26585so2571593e87.1; Mon, 24 Apr 2023 06:08:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682341682; x=1684933682; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=I6femOnySKNTiqjlHMDrxwe74ekz6pLAJiaQJ5/km8I=; b=DsBIs1MU4P+VNHqd6N6xMaAtkrzAcuPgpkeeVNuI3+jEmi8Gc0ZIAxqIQM4e3wgT8B vD/tam9+dfkf3s0lGCcfKedqKaY7AdmDxG1zG+aGAEmzpomvaFRzWCYsiDkpuhuSVX5H dk7ma2AjL7Zg47DtL4zuXkgyFDDSEscH2xNnerSZwRyTOTSwQcV0vgkNLrg1cgTqg+f7 K39R0WPxQjbgjTXpA5Jbp3LcwVfRTkJSz7/nQT9emJ48KL6VBTzbkz2Dk4yhV5oUIC8J q71KwpOFArC4ku8QApFEO2xEmFECZqFNasSdCagqTR08iWTy8sPVYVscNg16uWxtDrip a3Og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682341682; x=1684933682; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=I6femOnySKNTiqjlHMDrxwe74ekz6pLAJiaQJ5/km8I=; b=hTakThds0GI+f/7xPavWF4JkUDm5lmOJAQGWeS/EWktFCEv+1+TE7Uc61a8WWu4RPY /e0vHJp86/2DdcsovtOU73/2gTIkMjh2Kd5mq1gsPDEbhF2Y+CCbD+p/0MB/n07m2xWa ovulHAIbDbX26ECwAHmTN7Y4bOe0trFqambqutIWif44rft2W3kvba42Zi/Z+XBLJBdz PrbZVIYI/eTsjllIVjdp0SXNXC9w992L0aaaDkfZZ+jXmDJf/JHminYe/22jwwRFekUq TQhyffZcC/EuAO98vtyQ8KbHz6MpVVk4jEXUFPl6tB7+hIcg2gSTovjaUH05jEAjTA6+ AIkg== X-Gm-Message-State: AAQBX9czuoUWQKAt3IdrBZjvdb9Ef8v0KY7Oi1es5nLyhmQt0FqI7H+y pvrUpodPOxq+3wQKziGrtzE= X-Received: by 2002:a19:f611:0:b0:4ef:d3f3:c421 with SMTP id x17-20020a19f611000000b004efd3f3c421mr2617436lfe.4.1682341682550; Mon, 24 Apr 2023 06:08:02 -0700 (PDT) Received: from fedora (62-78-225-252.bb.dnainternet.fi. [62.78.225.252]) by smtp.gmail.com with ESMTPSA id p15-20020ac246cf000000b004d8546456c6sm1651913lfo.195.2023.04.24.06.08.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Apr 2023 06:08:01 -0700 (PDT) Date: Mon, 24 Apr 2023 16:07:58 +0300 From: Matti Vaittinen To: Matti Vaittinen , Matti Vaittinen Cc: Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Matti Vaittinen , Andy Shevchenko , Zhigang Shi , Shreeya Patel , Paul Gazzillo , Dmitry Osipenko , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/5] dt-bindings: iio: light: ROHM BU27008 Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="eQ1QSQkWWvAGy3fT" Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 --eQ1QSQkWWvAGy3fT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable The ROHM BU27008 is a sensor with 5 photodiodes (red, green, blue, clear and IR) with four configurable channels. Red and green being always available and two out of the rest three (blue, clear, IR) can be selected to be simultaneously measured. Typical application is adjusting LCD backlight of TVs, mobile phones and tablet PCs. Add BU27008 dt-bindings. Signed-off-by: Matti Vaittinen --- Revision history: v1 =3D> v2: - fix binding file name - fix binding id - drop unnecessary '|' from description --- .../bindings/iio/light/rohm,bu27008.yaml | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/light/rohm,bu2700= 8.yaml diff --git a/Documentation/devicetree/bindings/iio/light/rohm,bu27008.yaml = b/Documentation/devicetree/bindings/iio/light/rohm,bu27008.yaml new file mode 100644 index 000000000000..4f66fd47b016 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/light/rohm,bu27008.yaml @@ -0,0 +1,49 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/light/rohm,bu27008.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ROHM BU27008 color sensor + +maintainers: + - Matti Vaittinen + +description: + The ROHM BU27008 is a sensor with 5 photodiodes (red, green, blue, clear + and IR) with four configurable channels. Red and green being always + available and two out of the rest three (blue, clear, IR) can be + selected to be simultaneously measured. Typical application is adjusting + LCD backlight of TVs, mobile phones and tablet PCs. + +properties: + compatible: + const: rohm,bu27008 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + vdd-supply: true + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + i2c { + #address-cells =3D <1>; + #size-cells =3D <0>; + + light-sensor@38 { + compatible =3D "rohm,bu27008"; + reg =3D <0x38>; + }; + }; + +... --=20 2.40.0 --=20 Matti Vaittinen, Linux device drivers ROHM Semiconductors, Finland SWDC Kiviharjunlenkki 1E 90220 OULU FINLAND ~~~ "I don't think so," said Rene Descartes. Just then he vanished ~~~ Simon says - in Latin please. ~~~ "non cogito me" dixit Rene Descarte, deinde evanescavit ~~~ Thanks to Simon Glass for the translation =3D]=20 --eQ1QSQkWWvAGy3fT Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEIx+f8wZb28fLKEhTeFA3/03aocUFAmRGfy4ACgkQeFA3/03a ocWtbAgAtdJKk1L7K5vQ+BbqtRExoYxcQMW9b/4txxP7elXDEcJNVrh9S+9MZxM9 7SgDamCH+DBpErDIQavyDtSd+QCmvVrpBMiPGItc7ipIaqtVbRBgLl9kEcUY5Bri 7wFBoMofWoaqOzHN48fnFZ3uwPQlsp3b6jBb5IeciCodLASKH4zwsxB3QQ9l1O1u eRXTBLwK6aje8ZNJ3aphMgOD3u9vAm3n8feM9Ta/BxDvRlI3WZOf17+jb1ECEo5S a8mJ7+lKg8xC9NUTlMCJU6KLmYXwBLIExZOba2TJXbxg+zUaiBsrA58uEsSSB+xj Z8xndlbcBrVlQQq4MF/ATpW0deHavg== =cBYC -----END PGP SIGNATURE----- --eQ1QSQkWWvAGy3fT--