Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp998477rwd; Tue, 13 Jun 2023 03:28:44 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4WlQwiJ8E82JUys05dF823oUGpt6UfDMBfLvp9wxYeDm11W+Lnlpi/pO+HbG6XAJ3dxzUh X-Received: by 2002:a17:907:3da7:b0:974:c32c:b484 with SMTP id he39-20020a1709073da700b00974c32cb484mr14361906ejc.72.1686652123766; Tue, 13 Jun 2023 03:28:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686652123; cv=none; d=google.com; s=arc-20160816; b=oU9Ft7uzsKxp8EK94MLC1yBqhIDNIMU7GaxVDBfc5yq634R1e67++6oiekGTTKghod cuYbO4vJf19u/XeJ/5kmLGt/OS3pd2vhIbxwGGz+aDH6pWxucBU+mORqxNR6AMYjmJZW NnLKI9oQHawTTULNnJdfBhm5LAZaX4L1xnLOalOkC5gf/CnVTsVgyx83xhRLqz9HcMmU 0wPclL/HJTOVhXo1kq4ObwaR4wmcB16oyNMRtTlNFUHEotuSWdyud60HPzYo6TrZKViG QOJngGYIGylbtdHo286aH4fIvu/PbcUGD+6D3TK3a5b9FwQaHGo5629gZwzkf2Fny3l4 dSyQ== 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=ea+jMsMQ/htkjKLyTsdd7SMmdtpqccg73G5Yjc+Wabg=; b=ObpdiccGtaVB4MsiZvQXRk/RXc3E5h8WsJcHLkiR9/ffjtcBOCVPtrCHK6my30p3VG M1cc/XJ0FIs4P2NN+HH8yhH9MX1qwSUhf4K4lH9UXEACBlRO2pIrSMSnmp+6dY1C6OFn JWl4rQjgFHzkyic0sRC4Hh69BH1OjdwOkbqAcdlp3b7asg/k1qal3Zx1MIKvhn+Usrcc oaWJpkgk+WpJMS8mT8boJDJPz5Q2hNEAIF2EvnNUXZlBqn1TmVO5aeevr0JUM5idkkRv LPZhJ8qfu4CtGUu2Wa7Zt5OXr8yeGS2KYS7ptuAf0Xq3M8gDzqXWJxW0qGrs/iYrfrdH 1CwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=WqSWnZPG; 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 r4-20020a1709062cc400b009722bcd89fesi6072858ejr.543.2023.06.13.03.28.17; Tue, 13 Jun 2023 03:28:43 -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=WqSWnZPG; 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 S240748AbjFMKUe (ORCPT + 99 others); Tue, 13 Jun 2023 06:20:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241203AbjFMKUN (ORCPT ); Tue, 13 Jun 2023 06:20:13 -0400 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 771031996; Tue, 13 Jun 2023 03:19:55 -0700 (PDT) Received: by mail-lf1-x129.google.com with SMTP id 2adb3069b0e04-4f658a17aa4so5629039e87.0; Tue, 13 Jun 2023 03:19:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686651594; x=1689243594; 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=ea+jMsMQ/htkjKLyTsdd7SMmdtpqccg73G5Yjc+Wabg=; b=WqSWnZPGE2rZnf/HFs6LcaRUDQZQU6r3o2NT0UveUZ58G+2A3EecxeeSmHmc9dOJF0 2ESIxKKnz0kloDiDveyFERofJQtI9+fOm7u/quPhv9q5aTj0mLMQP7LYN3IPJULSK/kp tRUH7uWVXlX/1jibwqiRadQFA57y15XIAEERcgj2KmpHDoIAkVHzw8m23HKm69mtjQyK BXDS/jao/9riLj13/atKBfkq8ro74seu+pIOTMdddDPZ4CTLPtTi/mM22aG3ck6I0xBK 4bAky6uhT8dLpehzRfgxM4+CN0YVvMg92HBp7u9XB73yiYAklrTQ+6LYGQOYSF+U8jVK 2rHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686651594; x=1689243594; 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=ea+jMsMQ/htkjKLyTsdd7SMmdtpqccg73G5Yjc+Wabg=; b=NqjptMNLMncmOI8yVYhzeAZdMu4DY2eg8Pmg45wrh/DaNo8Sh7dttljU1NZTzgwN+F EA5x5Qc9D56ks/5npzzEr5sCoq0jiqUWsK4FOcSvtRrbWuC1QLXslbypkGakvf0Q0FF3 uwhHzVONRF59m1smRg9LcnZAh64XAdWbdV2Zl06LRK6co0E9QmoxeMOMTMH+w4JbSU2q uKudkRNmqtXNg6TiSDkfWaKKm1RGYCZcbR+CWKIrd0mXYmPzptPEMuGbj+1j9l04tc+E wuBHWgj3yBOdRLWIyyZCxdS5r3pmLTIu7fVoahF020e04A/o837v+a2/pm8YJcQLveQj jBJg== X-Gm-Message-State: AC+VfDxcwOnbOY9JSWO0r7gv/OOts+VNNNhxj7pMLVq4kFDC54uxH9LT lzD1dXSRux7qnrsxbmh9ZSw= X-Received: by 2002:a19:7104:0:b0:4f6:3000:4d5a with SMTP id m4-20020a197104000000b004f630004d5amr4530707lfc.38.1686651593412; Tue, 13 Jun 2023 03:19:53 -0700 (PDT) Received: from dc78bmyyyyyyyyyyyyyyt-3.rev.dnainternet.fi (dc78bmyyyyyyyyyyyyyyt-3.rev.dnainternet.fi. [2001:14ba:16f8:1500::1]) by smtp.gmail.com with ESMTPSA id y3-20020ac24463000000b004f381a71f26sm1734715lfl.46.2023.06.13.03.19.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Jun 2023 03:19:52 -0700 (PDT) Date: Tue, 13 Jun 2023 13:19:49 +0300 From: Matti Vaittinen To: Matti Vaittinen , Matti Vaittinen Cc: Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matti Vaittinen , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/3] dt-bindings: ROHM BU27010 RGBC + flickering sensor Message-ID: <98e0b6fba7ff7515b541a517296d5b89dc73ce5b.1686651445.git.mazziesaccount@gmail.com> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="WmYTfxGs9jNxBRbv" 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, 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 --WmYTfxGs9jNxBRbv Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable The ROHM BU27010 is a sensor with 6 photodiodes (red, green, blue, clear, IR and flickering detection) with five configurable channels. Red, green and flickering detection 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/OLED backlight of TVs, mobile phones and tablet PCs. Add binding document for ROHM BU27010. Signed-off-by: Matti Vaittinen --- .../bindings/iio/light/rohm,bu27010.yaml | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/light/rohm,bu2701= 0.yaml diff --git a/Documentation/devicetree/bindings/iio/light/rohm,bu27010.yaml = b/Documentation/devicetree/bindings/iio/light/rohm,bu27010.yaml new file mode 100644 index 000000000000..2bde9d2f1def --- /dev/null +++ b/Documentation/devicetree/bindings/iio/light/rohm,bu27010.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,bu27010.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ROHM BU27010 color sensor + +maintainers: + - Matti Vaittinen + +description: | + The ROHM BU27010 is a sensor with 6 photodiodes (red, green, blue, clear, + IR and flickering detection) with five configurable channels. Red, green + and flickering detection 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/OLED backlight of TVs, mobile phones + and tablet PCs. + +properties: + compatible: + const: rohm,bu27010 + + 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,bu27010"; + reg =3D <0x38>; + }; + }; + --=20 2.40.1 --=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 --WmYTfxGs9jNxBRbv Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEIx+f8wZb28fLKEhTeFA3/03aocUFAmSIQrkACgkQeFA3/03a ocVBHAf/S6NOXltJJc4vDappg6HVyiJvKbPZRUax4mmP0cdOTVfEy3ldC+WmxI5z 3/JRXuPU3DUgR6NLZGhV30Ms2xBBm0pY4Cy7XYLXdBlVLHAohDyPYwQpd9/DDd3X fL9PU+Fur+3tEWNMHNv7DcYfmI8pQenizwZG/h737Ymfe7oxSxogkt6846TM7TFH swX7a9nqy6apb5vNGfslIutSMs7sxN4HLtV6/ymz41dPkI1Vf/XkAtS5TcXTVu7c WJGDV+8AhCRlrjvwC2FhgOwfupbSYO4sy5lUUGVJGgNMl7qWBOwA51Dj2LwJEWyj 1vcpjx5NKMQlecfWWQ1CV/DRHbI6XQ== =j9Jf -----END PGP SIGNATURE----- --WmYTfxGs9jNxBRbv--