Message ID | 30daff0d94cd4d05de0194808ab9a6984caf78dc.1682067567.git.mazziesaccount@gmail.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp947781vqo; Fri, 21 Apr 2023 02:59:51 -0700 (PDT) X-Google-Smtp-Source: AKy350YbrG2zbLCAb9O+2/BEpapK0wML2LYCxxHKzxhjH4yIbtpWnp2vyK6gB9ZG0Zh37e/8paYu X-Received: by 2002:a05:6a00:2196:b0:63a:5bcd:e580 with SMTP id h22-20020a056a00219600b0063a5bcde580mr6006885pfi.9.1682071190779; Fri, 21 Apr 2023 02:59:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682071190; cv=none; d=google.com; s=arc-20160816; b=TTvY93OfWbVdB+Ho9g+sCLPWK5Ttxosv5e4WO1icUXGogW9TvAtVsxOfOOR7vOfeRZ zciP7xV36Kv1KDXtqgmPlLFkA5wgm4MOfRr9F5eQDnsJTlSRBfn6y8jeDi1gLG6sBdGg ShLhd9bwcYP7BsXS/Stzca6mSxaNPdgLZSaTpiraOFvJJNQIViW7QLdVR/5AQFdgDqSX mnoo33P2R4PHjPT+ZU51ZtvSY0ohBAz3udJhBD8xmiNeiPqB+hOnC+EEDPkftbIYRp7F gCjIxKwfPaGPCLOpe+OgJ4Is3uIWUtKYI+yUmha4jBSUH1JStFO7393AjMZXPIFhZzK4 BxKg== 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=+puYzROBtSGvQ+bB1lDEXoa3ZhtBvmdV2BDyw8+XGDI=; b=UtUw2dHPryDbS8n5qgwXjb1VkkOquHD65Ts/y1i/TAMnlFThVdltmeoamWmRHVan7s 7MOVBtMHbsgKC+uPooVOeCqxR+Tdp1zbwY5zYBfyJAPYf9vaX21dKETw/W4N+FAwZr1S bqsPDZ+cBBAXPPQxch1HZwOgfI8C0You0BBQ1nrzeSwgJ31IKYYduVhELYkREHEjwq1s OnANRSuBjlFcrPcrtdtCN13e4kwCXFOxOLNplSlrYvDUwwf32ffsBEJ6rSj2YinbWDHX 03ZiK2Qq2osF3mPZfNzPQ8+H6alte5Nk47kph1roXSuZ1x7ttOPRie/17LLa5clUhYBu Pufg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=kDA0siLw; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w82-20020a627b55000000b0062dbc05a323si1046142pfc.298.2023.04.21.02.59.36; Fri, 21 Apr 2023 02:59:50 -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=kDA0siLw; 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 S231386AbjDUJio (ORCPT <rfc822;cjcooper78@gmail.com> + 99 others); Fri, 21 Apr 2023 05:38:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232073AbjDUJia (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 21 Apr 2023 05:38:30 -0400 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 061829ED9; Fri, 21 Apr 2023 02:38:24 -0700 (PDT) Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-4ec816d64afso6486954e87.1; Fri, 21 Apr 2023 02:38:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682069902; x=1684661902; 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=+puYzROBtSGvQ+bB1lDEXoa3ZhtBvmdV2BDyw8+XGDI=; b=kDA0siLwuDxBz7jmiKRO6O5bcpU/j9MIy81WG1OJXhrQz440tOwWGjSuyfdn+IcMDL ynakRNHY9D3w4cuO2ERLCUxGOj9ZdBlZsASI1kthkFr1Ak0cfS6MkO55lxMoslcQBxe1 NIAaGFnwoR++8WMhAz6OOv7fAAHwYAT7DDqrqqJiPZIhQj9rI1dSwWMocSPC1jvfxG8K gkKlb4rXhzN8b045zgtUDakfB4CAmTYCorjbUgfxHiILnuMjeZqIelN+wM5JM5teqVtm V+Dr9+GgWrbC+Lqaxts2EhTnn8iLX1FUsWCjthqID8UUj2tPzC3o4Cnsk1P8CIhqeGUe BuEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682069902; x=1684661902; 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=+puYzROBtSGvQ+bB1lDEXoa3ZhtBvmdV2BDyw8+XGDI=; b=aCBfCYd4Sffusz3ptRp2be7mjSl66djDI72MVP3XAzg4kueB/lkFgpsu92994aFOdA izJ6KZ3k5hPuMbat5QX2pnocDFDocC8Ny68TXMN5tZYki5DKoKVnf+O12eHR9hE0t3RP QlhPvmERg9MxXAMzYXkQtkAhaN18Ymr2d7mQ8En2laXKtc+zGsEasmUZXWjmAoyWJPWe H+tBuR3uf+861TomwdByNq/HDRRWIX1j6jiWdy8atSpKJ5qxli3pnGUNW3dpzBspfab3 ejiVJrrroBIeReWngPyzjwm9cCRkFkb2Fz9YS/TBcwJ0bTOmO+eJLyQSQzo2pr6WVD6i G+EQ== X-Gm-Message-State: AAQBX9exdZgFfr9A/efAmtbceVB1+Yx4hc8PxS1MaHtCCc2ifc01/j1Y 2nX0+d7Sw/T/gOlEof0qSja0BX/yIlw= X-Received: by 2002:a05:6512:1081:b0:4ec:9d13:9d09 with SMTP id j1-20020a056512108100b004ec9d139d09mr2729509lfg.34.1682069902230; Fri, 21 Apr 2023 02:38:22 -0700 (PDT) Received: from fedora (62-78-225-252.bb.dnainternet.fi. [62.78.225.252]) by smtp.gmail.com with ESMTPSA id v3-20020a056512048300b004ebae99cc1dsm497134lfq.159.2023.04.21.02.38.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Apr 2023 02:38:21 -0700 (PDT) Date: Fri, 21 Apr 2023 12:38:16 +0300 From: Matti Vaittinen <mazziesaccount@gmail.com> To: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>, Matti Vaittinen <mazziesaccount@gmail.com> Cc: Jonathan Cameron <jic23@kernel.org>, Lars-Peter Clausen <lars@metafoo.de>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Matti Vaittinen <mazziesaccount@gmail.com>, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 1/3] dt-bindings: iio: light: ROHM BU27008 Message-ID: <30daff0d94cd4d05de0194808ab9a6984caf78dc.1682067567.git.mazziesaccount@gmail.com> References: <cover.1682067567.git.mazziesaccount@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="A7z/K2sA5slhMnG3" Content-Disposition: inline In-Reply-To: <cover.1682067567.git.mazziesaccount@gmail.com> 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1763779481176789548?= X-GMAIL-MSGID: =?utf-8?q?1763779481176789548?= |
Series |
Support ROHM BU27008 RGB sensor
|
|
Commit Message
Matti Vaittinen
April 21, 2023, 9:38 a.m. UTC
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 <mazziesaccount@gmail.com>
---
.../bindings/iio/light/rohm-bu27008.yaml | 49 +++++++++++++++++++
1 file changed, 49 insertions(+)
create mode 100644 Documentation/devicetree/bindings/iio/light/rohm-bu27008.yaml
Comments
On 21/04/2023 11:38, Matti Vaittinen wrote: > 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 <mazziesaccount@gmail.com> > --- > .../bindings/iio/light/rohm-bu27008.yaml | 49 +++++++++++++++++++ > 1 file changed, 49 insertions(+) > create mode 100644 Documentation/devicetree/bindings/iio/light/rohm-bu27008.yaml Filename like compatible, so rohm,bu27008.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..d942c2817680 > --- /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/bu27008.yaml# Does not look like you tested the bindings. Please run `make dt_binding_check` (see Documentation/devicetree/bindings/writing-schema.rst for instructions). > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: ROHM BU27008 color sensor > + > +maintainers: > + - Matti Vaittinen <mazziesaccount@gmail.com> > + > +description: | Do not need '|' unless you need to preserve formatting. > + 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. Best regards, Krzysztof
On 4/24/23 13:12, Krzysztof Kozlowski wrote: > On 21/04/2023 11:38, Matti Vaittinen wrote: >> 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 <mazziesaccount@gmail.com> >> --- >> .../bindings/iio/light/rohm-bu27008.yaml | 49 +++++++++++++++++++ >> 1 file changed, 49 insertions(+) >> create mode 100644 Documentation/devicetree/bindings/iio/light/rohm-bu27008.yaml > > Filename like compatible, so rohm,bu27008.yaml Thanks Krzysztof. I should've remembered this as you told me the same thing during the bu27034 review. Feel free to kick me atthe ELC-E if I do the same mistake with bu27010 as well ^^; > >> >> 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..d942c2817680 >> --- /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/bu27008.yaml# > > Does not look like you tested the bindings. Please run `make > dt_binding_check` (see > Documentation/devicetree/bindings/writing-schema.rst for instructions). > I actually did. But I did first run the dt_binding_check without filename - causing it to check all the in-tree bindings - which took a while. So, I went to have a lunch. When I came back I re-ran the check with the filename (DT_SCHEMA_FILES=...) - which gave me no errors. I _assume_ this is because running the check for all bindings had already done <add step here> generating the warning, while re-running the check with the filename omitted the <add step here> and no longer displayed the warning. In any case, I missed warning from full-check, and checker missed the warning when re-ran. > >> +$schema: http://devicetree.org/meta-schemas/core.yaml# >> + >> +title: ROHM BU27008 color sensor >> + >> +maintainers: >> + - Matti Vaittinen <mazziesaccount@gmail.com> >> + >> +description: | > > Do not need '|' unless you need to preserve formatting. Ok, thanks. I'll fix these for v2 :) Yours, -- Matti
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..d942c2817680 --- /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/bu27008.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ROHM BU27008 color sensor + +maintainers: + - Matti Vaittinen <mazziesaccount@gmail.com> + +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 = <1>; + #size-cells = <0>; + + light-sensor@38 { + compatible = "rohm,bu27008"; + reg = <0x38>; + }; + }; + +...