From patchwork Tue Jun 13 10:19:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matti Vaittinen X-Patchwork-Id: 13278293 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 4DD78C88CB6 for ; Tue, 13 Jun 2023 10:20:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239362AbjFMKUb (ORCPT ); Tue, 13 Jun 2023 06:20:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241203AbjFMKUN (ORCPT ); Tue, 13 Jun 2023 06:20:13 -0400 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 771031996; Tue, 13 Jun 2023 03:19:55 -0700 (PDT) Received: by mail-lf1-x129.google.com with SMTP id 2adb3069b0e04-4f658a17aa4so5629039e87.0; Tue, 13 Jun 2023 03:19:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686651594; x=1689243594; 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=ea+jMsMQ/htkjKLyTsdd7SMmdtpqccg73G5Yjc+Wabg=; b=WqSWnZPGE2rZnf/HFs6LcaRUDQZQU6r3o2NT0UveUZ58G+2A3EecxeeSmHmc9dOJF0 2ESIxKKnz0kloDiDveyFERofJQtI9+fOm7u/quPhv9q5aTj0mLMQP7LYN3IPJULSK/kp tRUH7uWVXlX/1jibwqiRadQFA57y15XIAEERcgj2KmpHDoIAkVHzw8m23HKm69mtjQyK BXDS/jao/9riLj13/atKBfkq8ro74seu+pIOTMdddDPZ4CTLPtTi/mM22aG3ck6I0xBK 4bAky6uhT8dLpehzRfgxM4+CN0YVvMg92HBp7u9XB73yiYAklrTQ+6LYGQOYSF+U8jVK 2rHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686651594; x=1689243594; 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=ea+jMsMQ/htkjKLyTsdd7SMmdtpqccg73G5Yjc+Wabg=; b=NqjptMNLMncmOI8yVYhzeAZdMu4DY2eg8Pmg45wrh/DaNo8Sh7dttljU1NZTzgwN+F EA5x5Qc9D56ks/5npzzEr5sCoq0jiqUWsK4FOcSvtRrbWuC1QLXslbypkGakvf0Q0FF3 uwhHzVONRF59m1smRg9LcnZAh64XAdWbdV2Zl06LRK6co0E9QmoxeMOMTMH+w4JbSU2q uKudkRNmqtXNg6TiSDkfWaKKm1RGYCZcbR+CWKIrd0mXYmPzptPEMuGbj+1j9l04tc+E wuBHWgj3yBOdRLWIyyZCxdS5r3pmLTIu7fVoahF020e04A/o837v+a2/pm8YJcQLveQj jBJg== X-Gm-Message-State: AC+VfDxcwOnbOY9JSWO0r7gv/OOts+VNNNhxj7pMLVq4kFDC54uxH9LT lzD1dXSRux7qnrsxbmh9ZSw= X-Google-Smtp-Source: ACHHUZ7KugAREAncyLDx0G7YLkWa5nDS7KoMFYgkfVRpzT++2fUm0JqFQ+1k5Vanj/zv++iUsUyPbA== X-Received: by 2002:a19:7104:0:b0:4f6:3000:4d5a with SMTP id m4-20020a197104000000b004f630004d5amr4530707lfc.38.1686651593412; Tue, 13 Jun 2023 03:19:53 -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 y3-20020ac24463000000b004f381a71f26sm1734715lfl.46.2023.06.13.03.19.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Jun 2023 03:19:52 -0700 (PDT) Date: Tue, 13 Jun 2023 13:19:49 +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 1/3] dt-bindings: ROHM BU27010 RGBC + flickering sensor Message-ID: <98e0b6fba7ff7515b541a517296d5b89dc73ce5b.1686651445.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 --- .../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..2bde9d2f1def --- /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 + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + light-sensor@38 { + compatible = "rohm,bu27010"; + reg = <0x38>; + }; + }; +