From patchwork Wed Feb 22 16:14:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matti Vaittinen X-Patchwork-Id: 13149333 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 D669CC61DA4 for ; Wed, 22 Feb 2023 16:14:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232649AbjBVQOk (ORCPT ); Wed, 22 Feb 2023 11:14:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34584 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230406AbjBVQOj (ORCPT ); Wed, 22 Feb 2023 11:14:39 -0500 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 9B1415BBD; Wed, 22 Feb 2023 08:14:33 -0800 (PST) Received: by mail-lf1-x12f.google.com with SMTP id s22so10613433lfi.9; Wed, 22 Feb 2023 08:14:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 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=l5JBDHjdN3MXwiI4IvjYTThifirf1TjzCClQnfsSE+U=; b=C4BKH4vzq1IF/vkpPcXc7b3H47gB9h+zS9yBv4/O8gLdjbjqoFn8PQJZgXhgmqakTC BpE3h/J0uiTvINLApNIwOethrvNsMtNikrgXePg+2LV0PMy/KxV/iw8da8FKuyVYk6aJ HFkFjM3BsXMFkr860SpA1ExHxyADvZTiWipbB6nm8Gk6zjfekwOslY8jtRgjkMiBO8h1 2jOJ2bMMjrR4yXr6ecCqsElNCb2mI70NhUNCOpFJE/fEtlRP0ePAb/d2pWC7W50CLaPY 0iIN1G8mIYd2/QdOpjkHiQ5ShGaMDXXoN8f0hcWs1Ag93sIq7z+AAZWXtx6ONpU6mlqZ VxiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=l5JBDHjdN3MXwiI4IvjYTThifirf1TjzCClQnfsSE+U=; b=HoLQwuKUfEHNRzpljJUtYv/htr3/R/6RFIqRoI38pdbRyW/siMix+LPip7n6CiYYMU S9GLko0tWlcMMy5hgfwr8Fo1CV+pAzWIKgCZhQSvafy/uq6xjulYBV/uMtBoC35ltW8T CCfSZusqhvYa/NnUC3//iilrBZHel35V2rpCgCmyKQHSts10SFu2W5l2a6BNN4j4BM95 4pflj3/rt7idD6cELRNwP5l44dlRGF6xIGnjxbAiVAIYepH3ED4fnMeU5Km8/xaycez6 lFNQiojizIiDKXUeKAlzhAvRoxvcp7NUkC4PLmAKz82zduCsQkNF+TwjQl6yZQQDZugT BvGw== X-Gm-Message-State: AO0yUKW4VP+TT1RpKDXwkvJ8snhUJpn9EkKTdhQeun4Mxizo0H/K1qLH /MVW9As8oUOlyhXRJooOJFk= X-Google-Smtp-Source: AK7set/cyqYcHBeoYVP4mLuHnE2LUNKTG5gTdN+PU5U9ATeZRhRW5bSSbnQpK3fzyEOWvFXjATIhKg== X-Received: by 2002:a19:c511:0:b0:4b5:90c5:281c with SMTP id w17-20020a19c511000000b004b590c5281cmr3400591lfe.19.1677082470939; Wed, 22 Feb 2023 08:14:30 -0800 (PST) Received: from dc75zzyyyyyyyyyyyyyyt-3.rev.dnainternet.fi (dc75zzyyyyyyyyyyyyyyt-3.rev.dnainternet.fi. [2001:14ba:16f3:4a00::1]) by smtp.gmail.com with ESMTPSA id y10-20020a19750a000000b004d885a44789sm2211833lfe.66.2023.02.22.08.14.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Feb 2023 08:14:30 -0800 (PST) Date: Wed, 22 Feb 2023 18:14:25 +0200 From: Matti Vaittinen To: Matti Vaittinen , Matti Vaittinen Cc: Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Matti Vaittinen , Shreeya Patel , Zhigang Shi , Paul Gazzillo , Dmitry Osipenko , Liam Beguin , Peter Rosin , Randy Dunlap , Masahiro Yamada , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RFC PATCH 1/6] dt-bindings: iio: light: Support ROHM BU27034 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 ROHM BU27034 is an ambient light sesnor with 3 channels and 3 photo diodes capable of detecting a very wide range of illuminance. Typical application is adjusting LCD and backlight power of TVs and mobile phones. Add initial dt-bindings. Signed-off-by: Matti Vaittinen Reviewed-by: Krzysztof Kozlowski --- .../bindings/iio/light/rohm-bu27034.yaml | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/light/rohm-bu27034.yaml diff --git a/Documentation/devicetree/bindings/iio/light/rohm-bu27034.yaml b/Documentation/devicetree/bindings/iio/light/rohm-bu27034.yaml new file mode 100644 index 000000000000..a3a642c259e8 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/light/rohm-bu27034.yaml @@ -0,0 +1,46 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/light/rohm-bu27034.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ROHM BU27034 ambient light sensor + +maintainers: + - Matti Vaittinen + +description: | + ROHM BU27034 is an ambient light sesnor with 3 channels and 3 photo diodes + capable of detecting a very wide range of illuminance. Typical application + is adjusting LCD and backlight power of TVs and mobile phones. + https://fscdn.rohm.com/en/products/databook/datasheet/ic/sensor/light/bu27034nuc-e.pdf + +properties: + compatible: + const: rohm,bu27034 + + reg: + maxItems: 1 + + vdd-supply: true + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + light-sensor@38 { + compatible = "rohm,bu27034"; + reg = <0x38>; + vdd-supply = <&vdd>; + }; + }; + +...