From patchwork Fri Apr 21 09:38:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matti Vaittinen X-Patchwork-Id: 676029 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 92184C77B7E for ; Fri, 21 Apr 2023 09:38:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229554AbjDUJil (ORCPT ); Fri, 21 Apr 2023 05:38:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232073AbjDUJia (ORCPT ); Fri, 21 Apr 2023 05:38:30 -0400 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 061829ED9; Fri, 21 Apr 2023 02:38:24 -0700 (PDT) Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-4ec816d64afso6486954e87.1; Fri, 21 Apr 2023 02:38:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682069902; x=1684661902; 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=+puYzROBtSGvQ+bB1lDEXoa3ZhtBvmdV2BDyw8+XGDI=; b=kDA0siLwuDxBz7jmiKRO6O5bcpU/j9MIy81WG1OJXhrQz440tOwWGjSuyfdn+IcMDL ynakRNHY9D3w4cuO2ERLCUxGOj9ZdBlZsASI1kthkFr1Ak0cfS6MkO55lxMoslcQBxe1 NIAaGFnwoR++8WMhAz6OOv7fAAHwYAT7DDqrqqJiPZIhQj9rI1dSwWMocSPC1jvfxG8K gkKlb4rXhzN8b045zgtUDakfB4CAmTYCorjbUgfxHiILnuMjeZqIelN+wM5JM5teqVtm V+Dr9+GgWrbC+Lqaxts2EhTnn8iLX1FUsWCjthqID8UUj2tPzC3o4Cnsk1P8CIhqeGUe BuEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682069902; x=1684661902; 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=+puYzROBtSGvQ+bB1lDEXoa3ZhtBvmdV2BDyw8+XGDI=; b=aCBfCYd4Sffusz3ptRp2be7mjSl66djDI72MVP3XAzg4kueB/lkFgpsu92994aFOdA izJ6KZ3k5hPuMbat5QX2pnocDFDocC8Ny68TXMN5tZYki5DKoKVnf+O12eHR9hE0t3RP QlhPvmERg9MxXAMzYXkQtkAhaN18Ymr2d7mQ8En2laXKtc+zGsEasmUZXWjmAoyWJPWe H+tBuR3uf+861TomwdByNq/HDRRWIX1j6jiWdy8atSpKJ5qxli3pnGUNW3dpzBspfab3 ejiVJrrroBIeReWngPyzjwm9cCRkFkb2Fz9YS/TBcwJ0bTOmO+eJLyQSQzo2pr6WVD6i G+EQ== X-Gm-Message-State: AAQBX9exdZgFfr9A/efAmtbceVB1+Yx4hc8PxS1MaHtCCc2ifc01/j1Y 2nX0+d7Sw/T/gOlEof0qSja0BX/yIlw= X-Google-Smtp-Source: AKy350amIvjk2h7dze+LRP9A5Hz0YQ28O13F49yYY6qSZgJNu7w8kPRzsn96xcY/8HVF1zsHHoMRXA== X-Received: by 2002:a05:6512:1081:b0:4ec:9d13:9d09 with SMTP id j1-20020a056512108100b004ec9d139d09mr2729509lfg.34.1682069902230; Fri, 21 Apr 2023 02:38:22 -0700 (PDT) Received: from fedora (62-78-225-252.bb.dnainternet.fi. [62.78.225.252]) by smtp.gmail.com with ESMTPSA id v3-20020a056512048300b004ebae99cc1dsm497134lfq.159.2023.04.21.02.38.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Apr 2023 02:38:21 -0700 (PDT) Date: Fri, 21 Apr 2023 12:38:16 +0300 From: Matti Vaittinen To: Matti Vaittinen , Matti Vaittinen Cc: Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Matti Vaittinen , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 1/3] dt-bindings: iio: light: ROHM BU27008 Message-ID: <30daff0d94cd4d05de0194808ab9a6984caf78dc.1682067567.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 --- .../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..d942c2817680 --- /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/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>; + }; + }; + +...