Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp4168032rwr; Mon, 8 May 2023 04:07:24 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ46MxUHMaS0ZcsslWRUhk69KQOUBL8Y2SufBhK5NKy/WhmFW4wXwXZtkTFKTpAmh19E89Ke X-Received: by 2002:a05:6a21:32a0:b0:ff:f2c3:c103 with SMTP id yt32-20020a056a2132a000b000fff2c3c103mr7114416pzb.18.1683544043885; Mon, 08 May 2023 04:07:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683544043; cv=none; d=google.com; s=arc-20160816; b=l/ElwCW2N7oHQoFyphIrJOKF65MMNWwZPWO7fCMwH04cSWh9vP2swZeMAg6psD/QoH OMjKWVr/Z67tCPJ4xtTpuyOtpPdpm2KY6CTJ/8V3G9bczpue5FwvVb4azneRZopVJ+cU CJp1Q1Tr/cThVpx5YN2c8r9AxDJLTzDikMKt50FgS2eDeR0zOJ3rmrPk3OguAEq1qWZc dH2N87LUejaM5t+gAAMncW+47eSOXJhe8GxyaHm6zjzBhi3frbFLg3OzxtRQXpY59fmH YNkat+I9xr8aQccHXDUxhnyE0oO+dNXB4GmovIlTfWozeYi+UtNNnQX8CQbrImve+XPw QfXQ== 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=93zNbjTNcKrAok96MTG4gq6AZxzn5Y2OQkYSIPAljnY=; b=Rm9hUiqwMC9wwwgkG+Q3b9Cj6tQ68fcCd1txcxmX9pzjP81YSfg3G1Xc2bIHPx0ytq pplQXYpafsPz02SeFTZuhB+e+3KH9TO3UH3JW1hNVvriiRE/nPhUyPkce3SfMZL2N0lV c6L6O7UdeQeLne3oH+wlizJWBYQyunkb9BsdF6tSMJ4+809kAx1Y78QL2sFGD78GWZoq bFPgWEPnZp4mrVIOlEYhAvCxmVwLW8QMk8sLdMeapms6sIN2lzSHuoZm8rV7PWCFi0R7 Jh5Hz0znkR2gg6GhjMM0L2+HiEQShQ0dFuoVDUfKEqE9hpCuz3Zpm6/3+KT54hHeKWbu 0J9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=RpUvQcm1; 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 m9-20020a654389000000b00528c2cf454asi4147384pgp.666.2023.05.08.04.07.10; Mon, 08 May 2023 04:07:23 -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=RpUvQcm1; 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 S234693AbjEHKbO (ORCPT + 99 others); Mon, 8 May 2023 06:31:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234679AbjEHKbG (ORCPT ); Mon, 8 May 2023 06:31:06 -0400 Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 67BD424A82; Mon, 8 May 2023 03:31:01 -0700 (PDT) Received: by mail-lj1-x22e.google.com with SMTP id 38308e7fff4ca-2ac831bb762so41743221fa.3; Mon, 08 May 2023 03:31:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683541859; x=1686133859; 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=93zNbjTNcKrAok96MTG4gq6AZxzn5Y2OQkYSIPAljnY=; b=RpUvQcm1Ym5kIE/Z0PQkqx3+jc7frv3FSAxUv6tCSCM2ugZIZy9A2Hcj38XmfAn6tb 2Idw4rsXNnNESuTjgMZsQUj1C6E97zBQaNaJVcbwUvJNBlXFmN7UcLp3fE0Da/xSkqGG Z/mwhVUPUCy4Il7EFmRP/v1TouGxhv1SJ4veZ24IIgUxRx21GkzoSMBqX2zKey3eT8du dBdcsRhmH4w8Mx8xRsfC1VC9MpxV54rgUtf4DhhB85S/dlZs5NeuuBOiO0i4KDCqdzBa zFa1v/1SLWuOo10qAMUjQ5h4xAWE7c/BOynzuMshWodbVoa32r8NUvoGx/N77Gq69wQC 7C8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683541859; x=1686133859; 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=93zNbjTNcKrAok96MTG4gq6AZxzn5Y2OQkYSIPAljnY=; b=V/Q7X/ZZd5bQYWe6a0U25J1wOq1NnTVouWdssf8eUi4r5ZLBouqVc4NS7iNPEqQIZ0 4+qi+miaIRJeytQUoj86zbEu9cmqt08VPzAVymnB5SJ4E1qhLnZioGQoTPAUtSxATMnU DETuWAa4MU0hw2j82jzfU751tMicUPcBOwGa5GBRnZhj0y3fpmFoaeH0o6xxzaaHGJWT xIuR6HYqUIC1viVmtrGey4iXlBE4uZXhunmUb2AoqunY4OKC9NJ+ITFMSqPXzXNpIz+1 ld29xa7d+XvruvYRoUW1Udm2qZxelTgb+iUzJLdUekZGk+FMVCMG5UTeCZ+GZZiPGSo6 uy9w== X-Gm-Message-State: AC+VfDwQwlfex8ZzuaHlJZtAQWKC0cYEmGLxVONvShZeb5WjpIlX+fvF 1fAxPozrt0pX/j7OrKMR/As= X-Received: by 2002:a2e:9008:0:b0:2ad:f8d:dea with SMTP id h8-20020a2e9008000000b002ad0f8d0deamr1840679ljg.11.1683541859282; Mon, 08 May 2023 03:30:59 -0700 (PDT) Received: from fedora (62-78-225-252.bb.dnainternet.fi. [62.78.225.252]) by smtp.gmail.com with ESMTPSA id b23-20020a2e8497000000b002a7853b9339sm1133053ljh.119.2023.05.08.03.30.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 May 2023 03:30:58 -0700 (PDT) Date: Mon, 8 May 2023 13:30:55 +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 , Paul Gazzillo , Shreeya Patel , Dmitry Osipenko , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v5 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="1L/NjY7a/ToVr2HB" 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 --1L/NjY7a/ToVr2HB 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 Reviewed-by: Krzysztof Kozlowski --- Revision history: v2 =3D> No changes 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.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 --1L/NjY7a/ToVr2HB Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEIx+f8wZb28fLKEhTeFA3/03aocUFAmRYz18ACgkQeFA3/03a ocVBYggApkZeXQ8JWJ+5z/52k15uc9Y2lflACQcUQJ4s8vyNg6gUjrXyy3gd8x/C pVes+xhjfQ74sSzPnByGmMK5dgcsYnLJRDTAjtGiRu6ru813TpuXtlgCAfT6EUzB qS3bxg/79zzoYQQGNUCIX/9jUoeanvUhb7iJ+odUIIj9uhz35Xmn6NxMf6qOBhIX QwkPGhUhWh0B756PaGnkGoQs2esp0CEB8mwF7QPlORxUedwhB1+scvNFqwoWL4P5 LooeYgOdx5niP9saWiWW9IyykfpufDGZLqsGhmBs9QnpNe0wCn1OW2aOP/T1z8Si rGJBUGgZnhdiB9jRm2EB/1YVdiYhDA== =N3C9 -----END PGP SIGNATURE----- --1L/NjY7a/ToVr2HB--