From patchwork Wed Aug 2 07:36:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matti Vaittinen X-Patchwork-Id: 13337777 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 70E38C04FDF for ; Wed, 2 Aug 2023 07:37:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233181AbjHBHhP (ORCPT ); Wed, 2 Aug 2023 03:37:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232908AbjHBHgp (ORCPT ); Wed, 2 Aug 2023 03:36:45 -0400 Received: from mail-lj1-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A04131BD8; Wed, 2 Aug 2023 00:36:40 -0700 (PDT) Received: by mail-lj1-x235.google.com with SMTP id 38308e7fff4ca-2b9cdbf682eso80079951fa.2; Wed, 02 Aug 2023 00:36:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690961798; x=1691566598; 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=ks/KTYo6jSIDV1y3oZOeXYuFFSikXpxViVhw62BI5Fk=; b=kg0rjkLilhVj2qjZ7k7MQGECKs+1T9NQ65qC8QARjPbq6sJ5mvdV4S1L7T5UlbthFO 0diLoFl/9QumjB1i10+h8rWjLsfV2joGSYOYGlyhm0+7lGAr7Mosv0Fn/SdZ0+P9iYFU xZboUF0sjwTflOJk5gwb5lIgUWwTtxebYUvE5JJgTQNNqz0MsgFrlc5SdiOZJmWyBN/F PFrGZCRBfkVucs81yam3h06Ey4Jl5Fnp8Dt0xETHU7ouzCZotxVbFnSnElsZ9ExGX1U5 QC+XjnVUv9aQ3B3zBZaVLtyz99MxYx4Tzy3T3hN/xodHb0qLavOCq6HErNTGYc0GDhr1 RE1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690961798; x=1691566598; 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=ks/KTYo6jSIDV1y3oZOeXYuFFSikXpxViVhw62BI5Fk=; b=IOxDvTxheDopNOckif62EBdNqSSDUz2qFQpgMt4LMkCoXZVI8GUg9fDDJ5WTpZ3W+M FSAAAIIUTauFgqb0z2SmNopDgAkpt1fv7EGHIh0uZGFJAWtUaTgcWXAn/BET2rm6XYJJ Re9WQ9/F7Rxl5ZjJXB7wkdwRt7NnfDoSHeyzybE3cdIcKn6ESIRNKPCtArvt9PIdciKX KHERKskYGH6hcWkUZZGlUB1TkTRc/H4KrPSmfdjCBS4oCSox65+xWd+hJ+cDmoVr0RCx pWT2fqpL9ZfQ1SZSXHt4Wswe6N2hhjGbO07JC7R2lOVYA5rTmPfbAm9ldk5YpyRJwUIF qgwA== X-Gm-Message-State: ABy/qLbmqHun/OEY9OS3AglJ+FA1p+APM/fAWNnCkCNLkEygXBicYm88 TKcUSHpAf+ckqccNRJJQM+I= X-Google-Smtp-Source: APBJJlGp99FodpqVg/i9/V0BOSQZ/stkdWR5S1K5GMJqJ+M2Cec52KZfnz4z/1Zayr9qJhw+uMCaXQ== X-Received: by 2002:a2e:9852:0:b0:2b4:7559:32b0 with SMTP id e18-20020a2e9852000000b002b4755932b0mr4305066ljj.19.1690961798559; Wed, 02 Aug 2023 00:36:38 -0700 (PDT) Received: from dc78bmyyyyyyyyyyyyyct-3.rev.dnainternet.fi (dc78bmyyyyyyyyyyyyyct-3.rev.dnainternet.fi. [2001:14ba:16f8:1500::5]) by smtp.gmail.com with ESMTPSA id z8-20020a2e7e08000000b002b70aff9a97sm3453357ljc.16.2023.08.02.00.36.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Aug 2023 00:36:37 -0700 (PDT) Date: Wed, 2 Aug 2023 10:36:34 +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 v3 1/3] dt-bindings: iio: ROHM BU27010 RGBC + flickering sensor Message-ID: <717d30694ba6864b8c28772d7478bed93ea10138.1690958450.git.mazziesaccount@gmail.com> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org 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 Reviewed-by: Krzysztof Kozlowski --- Revision history: v1 => v2: - Drop trailing blank line - Require VDD-supply - Fix subject prefix --- .../bindings/iio/light/rohm,bu27010.yaml | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/light/rohm,bu27010.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..8376d64a641a --- /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 + - vdd-supply + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + light-sensor@38 { + compatible = "rohm,bu27010"; + reg = <0x38>; + }; + };