From patchwork Mon May 8 10:30:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matti Vaittinen X-Patchwork-Id: 13234287 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 363F1C77B73 for ; Mon, 8 May 2023 10:31:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234678AbjEHKbN (ORCPT ); Mon, 8 May 2023 06:31:13 -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-Google-Smtp-Source: ACHHUZ5mnKbJoCiZ5FJ8NANBQGVFL/hqZQ4lSK4Gceo/UNOgi3EwJa2Uu8FN/Q6urGdLFOv21ee0uA== 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-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-iio@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>; + }; + }; + +...