From patchwork Fri Jul 7 11:22:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matti Vaittinen X-Patchwork-Id: 700200 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 9B5FEC001B0 for ; Fri, 7 Jul 2023 11:22:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231233AbjGGLW6 (ORCPT ); Fri, 7 Jul 2023 07:22:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232577AbjGGLW5 (ORCPT ); Fri, 7 Jul 2023 07:22:57 -0400 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 264182116; Fri, 7 Jul 2023 04:22:53 -0700 (PDT) Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-4fbc0314a7bso2776821e87.2; Fri, 07 Jul 2023 04:22:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688728971; x=1691320971; 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=S63gsi41nElgut5giYC5sHXmkcKRI+eEyk/xCvZ4vzU=; b=PI0eFmI9HOWwTMQIZgWUhEWSsyOCdhR9nlSIj/ZT4vA5K3OEf72r32yrJG8qrUUrH3 kgWZdAcZJrjguHPDRqi1vvwiRSzqA2NyEU+WjIVv0pguY3P6DwmjMTPkKWkQ5vu6FdwX XafQbi4fp3dBvKybUJdxVsYvEma2+AzjrQ5YkbqgG0jMcFFp7x71bdUi+e+Z9ez5RSsS WiIRf0UHAY4kCehKGgRBd5ie1NTGLvXPeMSjeZXEZrZpLucJqbwJOT77DKirBsMw9sKf qVdvNoIUUEsAKPBgozA2IouxIUvCDSQepFODY+DBdmxwyW4RArzY0pF9lkp10sEZw25u WjTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688728971; x=1691320971; 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=S63gsi41nElgut5giYC5sHXmkcKRI+eEyk/xCvZ4vzU=; b=G0hu9V0BuzZ95TesHy/frLi3O3zcZqp/sHf4mddfZZmT1uMzqrzIqbeMdpWMNr3PSX HYGZoiBWCIzx6dY0P4FSfi+ppF8HNHhRMJxFv5c83IxPbMa3QmgzOE5rKCcfiEaUyEnm G8MweclOGfrdxYsxAQbMSogHGqCWfqjq6QnBB1gKe6Cj53kLQFf8sFUzordx08nNt+jZ UwmobtDfvpN/1LkzQoc6FHf352xIFNGkYyQciV9iIfUvq7ctRFlxn3ATBh78ZEoxyE7J 6xs8alECqjKGwzgofpBwhjyIbinJUIaP03ts67UmHLcpuzG7an4ka4HqIfOFvVw92tsX Ah5A== X-Gm-Message-State: ABy/qLaBDoQodIc7xlRZNw+Kbu4J8ec0dPFSvUiARO4vr0UWxqGS4qK9 Q7eXgYsDoMZeTfVTOmdMYZo= X-Google-Smtp-Source: APBJJlGMQF74LWOpArnqyLQiE8MXRT/yHZ6i26veZJudiFy186T+yy8CJ4I8eAOKu3y7O3ihfR44og== X-Received: by 2002:a05:6512:6c7:b0:4fb:8eec:ce47 with SMTP id u7-20020a05651206c700b004fb8eecce47mr4167458lff.58.1688728970968; Fri, 07 Jul 2023 04:22:50 -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 b25-20020ac25e99000000b004fb75996493sm638537lfq.284.2023.07.07.04.22.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jul 2023 04:22:50 -0700 (PDT) Date: Fri, 7 Jul 2023 14:22:46 +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 v2 1/3] dt-bindings: iio: ROHM BU27010 RGBC + flickering sensor Message-ID: <7b2bb4647be8ff7c551d8efcbe160914bceee669.1688723839.git.mazziesaccount@gmail.com> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: devicetree@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>; + }; + };