From patchwork Wed Apr 26 08:07:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matti Vaittinen X-Patchwork-Id: 677230 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 CF54EC7618E for ; Wed, 26 Apr 2023 08:07:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239827AbjDZIHm (ORCPT ); Wed, 26 Apr 2023 04:07:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34148 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239381AbjDZIHl (ORCPT ); Wed, 26 Apr 2023 04:07:41 -0400 Received: from mail-lj1-x236.google.com (mail-lj1-x236.google.com [IPv6:2a00:1450:4864:20::236]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E03AB1993; Wed, 26 Apr 2023 01:07:33 -0700 (PDT) Received: by mail-lj1-x236.google.com with SMTP id 38308e7fff4ca-2a8dd1489b0so65082921fa.3; Wed, 26 Apr 2023 01:07:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682496452; x=1685088452; 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=Yssv3P2DrAoOPk41LdEXWeC4Pr2ddQEWhBOO6bbwtPs=; b=H9KGVGDTsUVvOvmemzmLJL+6TTOPnYBNs0J8c2vD4we64VDLrlFF4Zmf9Bun6Mo32b J1/PcqdfxYyOXKhnzO2Tp//kuYiT+XA28MPs72tJEiXfg2YAtpBo6unF3jL3ikgQw9rB JwpwWtEZj85tuLKObuTDZ8m8INadztLYM7sUwkgCYEZJaXCs0ONji25LH/9bq+M9Y7h6 8AgjIJ2IlOpZ+3bel/ej4vUwpxqo8X5bbEIZcSvBhcSnQsbXPI+CiriuuVrdrdZAsNXZ WVE7k0I/Ff2dmNA5+AxRYjIY+6NJO3mBtfffnCsc8GFMg03l4o+ob+SXjvb0wyBhX4pZ b9Hw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682496452; x=1685088452; 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=Yssv3P2DrAoOPk41LdEXWeC4Pr2ddQEWhBOO6bbwtPs=; b=k6UDNon64ZS121iL3cj7Aek/3Xt3GMrVG6c2u0PY4Yc4ZpcbeC2kH76M0+s5k74LnE yMfJZn/4T8G4kDfwwA5VgmLlWvoWwaOy5GCDqCJmZ5PO2iJO4wqqJNVkQW1jgIDZWcA2 LMLL7XulSskRS3JelXpJDq+6uL+JuPEkqDvl6AQUX4phq4mZ9KiPcChyaLg0FzWlwj8d tTAq7MazCnmyZPziFRZxmHXhNmF1IyhmgR0oUkfYmzXIkGnxSdWyYdOuVaMxjLIBiVpC fqWfxbC3CJ/hFJlgUsPyESQSQyQfiCvm9yX0ToJo4fyPZLeDJYjRY3CaRgoc+QJYEsKg fq0g== X-Gm-Message-State: AAQBX9dm44/UNe+jfxuDxbnUPyqrRlljN3SFVUZQ4ot793YrdWnSF8QL 2/NX6wbaUYDfo3ntrm66rRU= X-Google-Smtp-Source: AKy350Y36NzrqqY6T008oWsFu+U7lCHlNArWcmmJKgUhDMAHf1pN8jKL3/r7E1QK7GGAsG8/38CHdQ== X-Received: by 2002:a2e:8210:0:b0:2a6:1681:81e0 with SMTP id w16-20020a2e8210000000b002a6168181e0mr4097295ljg.2.1682496451680; Wed, 26 Apr 2023 01:07:31 -0700 (PDT) Received: from fedora (62-78-225-252.bb.dnainternet.fi. [62.78.225.252]) by smtp.gmail.com with ESMTPSA id t23-20020a2e9d17000000b002aa43e06a65sm1913713lji.16.2023.04.26.01.07.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Apr 2023 01:07:31 -0700 (PDT) Date: Wed, 26 Apr 2023 11:07:27 +0300 From: Matti Vaittinen To: Matti Vaittinen , Matti Vaittinen Cc: Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Matti Vaittinen , Andy Shevchenko , Shreeya Patel , Zhigang Shi , Paul Gazzillo , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Andi Shyti Subject: [PATCH v3 1/5] dt-bindings: iio: light: ROHM BU27008 Message-ID: <16be2f3bbf44506e6e6754ad900ef8c289f07bc7.1682495921.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 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 => No changes v1 => 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,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..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 = <1>; + #size-cells = <0>; + + light-sensor@38 { + compatible = "rohm,bu27008"; + reg = <0x38>; + }; + }; + +...