From patchwork Wed May 3 09:48:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matti Vaittinen X-Patchwork-Id: 13229998 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 6A981C7EE22 for ; Wed, 3 May 2023 09:49:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229764AbjECJtl (ORCPT ); Wed, 3 May 2023 05:49:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229538AbjECJtG (ORCPT ); Wed, 3 May 2023 05:49:06 -0400 Received: from mail-lj1-x234.google.com (mail-lj1-x234.google.com [IPv6:2a00:1450:4864:20::234]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C87BE49F2; Wed, 3 May 2023 02:48:35 -0700 (PDT) Received: by mail-lj1-x234.google.com with SMTP id 38308e7fff4ca-2a8a600bd05so50384831fa.2; Wed, 03 May 2023 02:48:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683107314; x=1685699314; 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=6DLhXL1SHK8zjmrz0XD00qubJN9V0QxBZCbEYgZPK2o=; b=HLQOpM+rJzcwbDmpuDNqG5rzSuWW7jIZwCve4iigYnrIBJsoJ2FsEHmt/h5PXG6ULB Wzd67qv/u56PgnhDX78QirqbzzfAemCtt0bIJYIPCHu2v78qrEknAjeSnyHpXCL1g1wS +0G/AvsfAJej/Pw3h1fn7M3bXLO6Qg606NxhijItefX7kpj+RRItKCtmwq3EMbm1DP24 wnuaXoKznrlC2gkNYxmQk36TG48tHBSbzUF3eFC/DDqAFRTv0tCRjt6mGeBeJUwIv0ij /4PB4uUBLImApFv6spGad+mP8OMyKVNxpwt49fh3jrVSdOZfBkynNbs2tz+6rDv94x5U ZhwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683107314; x=1685699314; 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=6DLhXL1SHK8zjmrz0XD00qubJN9V0QxBZCbEYgZPK2o=; b=M3cwZ1/QjjUQYlmvZzVBAykxjhtR97BvliMbSMuWD8q+vLN/IkYu0dmtPZ0mq1LWAm QXGNJ/1tPN0T0rkFSHTtRf5kntBBApUxSZBFzrdO9j9B2OQx35Q1X0W1NtZiKG/U14/b IvLhv3eLOxN/IgpUUIMbxeAmT6uTut3hV/W1wdMmj53TVLutJJJh8Wg9BMppDa1bemg7 DzrZI4BHlh0T+ZDVx1wOGIG3HYGBSHFhZhcXY8OMKaYJDnUPUbdLDuiVKXa76+KD4PUQ zeqseDihwyGmvo12bh4BKK78nmhSqwQb7gTcc0qikpVvoWR0VtV81w4aEW0i5HzQsfnG XJRA== X-Gm-Message-State: AC+VfDzth3dAyp7c7qfAvG5WocJK8/mZFJia6o4uWvT16byLJ7o0VnIa dT2FHFmU6sP7NxmbXOwkN5Q= X-Google-Smtp-Source: ACHHUZ555FDNwTrzYDDuzf8DHHczi7B/PTIMCc4taiw7yHHBp/E7LSvlYo67kkCCSg+vjyETJH4Gfg== X-Received: by 2002:ac2:414b:0:b0:4e8:3fca:4927 with SMTP id c11-20020ac2414b000000b004e83fca4927mr665829lfi.58.1683107313768; Wed, 03 May 2023 02:48:33 -0700 (PDT) Received: from fedora (62-78-225-252.bb.dnainternet.fi. [62.78.225.252]) by smtp.gmail.com with ESMTPSA id l14-20020ac2554e000000b004dda76fad5asm5877868lfk.218.2023.05.03.02.48.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 May 2023 02:48:33 -0700 (PDT) Date: Wed, 3 May 2023 12:48:29 +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 , Dmitry Osipenko , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 1/5] dt-bindings: iio: light: ROHM BU27008 Message-ID: <1fe50acb5223a2f1d882951697911f190391d546.1683105758.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 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>; + }; + }; + +...