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: 89678 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1205076vqo; Wed, 3 May 2023 03:02:18 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6BLCLmB8Pgp+Uke9C0AD1N8nIL+nDSFnRPeHsBwymRr+yyjZ9QI1CtTCTXhMQ6DfN95MuG X-Received: by 2002:a17:90b:180a:b0:23d:15d8:1bc3 with SMTP id lw10-20020a17090b180a00b0023d15d81bc3mr20757546pjb.39.1683108137380; Wed, 03 May 2023 03:02:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683108137; cv=none; d=google.com; s=arc-20160816; b=VDNRKh+h191RJ/bCeWpoV1S/jWOKU8QAwQEXsw699ri2XxYbzrLO/AySbNIi1k7l0s T+g70Vn6gYzHLoWFwoHy2DmhzlU3jBy08UnBwvsiXwYXk4roJW0bGrUMwJGoeBZCMUbw GsYwaRpJbZ3x9OFDpfeULDdEFmosJsZ7JPViw7+8yAULQqnBoNDxXvkwR9dz91Ah/YSm /OJcS/CtDGx45+QNadTYb8CuuVcY9r2YyCeX636gzR2SNDIzzRGfv2KMtMieqW6S5gDN kGwSSzMFL3YK1BB6sNTmD0xCoSBujG+6FAXYmu9LB/XbEULad+MDOQjLYIF8OKjLtN87 BGhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=6DLhXL1SHK8zjmrz0XD00qubJN9V0QxBZCbEYgZPK2o=; b=Ar/g0FuLub5DjxWZeZ8bFn7hDOhB2WBvyyLnA+7FDFQgsKjdh6iaGL56zEIeAGf1jT Qh2aY8x1NJ1yoZbsjsWlgrVh5a5EyRG4W23ZS62bHYnaPXndL5GUlupYREwoiMbOm6cK hKDXipb5N1/dHwditAQfwtgz4FvX/JrErXOFMwyoO1xp0VAxnYnHLNxnlJurEXfUQUmw oTwF8IFEqh0J20RRgHQZgaYJUsoiR/Aarg8/lswdqOQvFABfab2B9l3I6B+/wDdMAw+h SGr7r8rqQ/UwAOif2dcnd6szDHUWrDTusojjisRDIo6E2Rbqa6UhFyi+PeLemuldNrbQ GnDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=HLQOpM+r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e11-20020a17090a728b00b0023418ec51f8si1161181pjg.136.2023.05.03.03.01.59; Wed, 03 May 2023 03:02:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=HLQOpM+r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229796AbjECJtm (ORCPT + 99 others); Wed, 3 May 2023 05:49:42 -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-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: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764866798094871565?= X-GMAIL-MSGID: =?utf-8?q?1764866798094871565?= 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>; + }; + }; + +...