From patchwork Mon Mar 27 11:27:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matti Vaittinen X-Patchwork-Id: 75356 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1438755vqo; Mon, 27 Mar 2023 04:35:49 -0700 (PDT) X-Google-Smtp-Source: AKy350Zt1elcnvutpnviYtfGOA8Hi/8yd2Gb9C3lKrADLrjODGGenSEPjn0FizSeY5hNOa1SlNbv X-Received: by 2002:a17:906:38b:b0:8af:4120:63a8 with SMTP id b11-20020a170906038b00b008af412063a8mr11486942eja.68.1679916949243; Mon, 27 Mar 2023 04:35:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679916949; cv=none; d=google.com; s=arc-20160816; b=BA6MSe3S3LSaSrJkZC5n1pSQDHKn+JuumWX1oxjcMivLiXGBFq3+5qkcedoTHpxoAm WHzU3sCELM1xGmUkZxFUEaP38K2f4ONlOoY02HsquesGdT9qfR2u6fXfGoZh1jtyJOEE wipkCI2Yk6jM11f3sigey9Sny8gS+RBPwJT8Df1Qny6lqVkZs8zlncxmNkoCmy8Uwr7P ZXigS8DebAmdJwU3+OSI8FFBB80AoqCGvD6CnBGdIaE3hk1lFKVZzwbbJjObMP1v8R/p f5ne3HGKkgDR8OSjX/wdKXnb/O9vcW2+ZpMDS2G3tEu6dOinR9DlLYUGz7zA33X8EgRe KzQA== 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=OQC5OuYYB5bXTGsTSu+XARSUI0pqTHor1aKx4p1f4tg=; b=E4SbAEJMDgKAkGZzs18uC7yBFe8m/QbAD73y3V67uyPSzL0hN8auHPXlcrkREBnqBp U6jiPEXKJXVP+B0vRjAUmE5zDPlGMDyX5eakfI8zc7vLs8qEhCEEVWmAWBmdhKBvNFEa VY/ljo4RriXkwAXfJmb9i0XhdN+AAN9SHBpHolGx2e6U/Wl6fmVXtB5FSfRWmjYdvhFv Xi9+RkcOyAxx/SzQPIFdZCfFI2JczhsURRjBJa9ncOT6KW5TjY4SGlGYaO8QD6i6rxQJ zD2U/NboDkQAyZZsq3i7E0MvZwlIrlDUPMENM8K9xPYIO+l+b2lt6yRNCtsbHnd+f3wr oflQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Q87CmO0t; 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 a11-20020a1709064a4b00b008db0f267ccbsi18789677ejv.874.2023.03.27.04.35.26; Mon, 27 Mar 2023 04:35:49 -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=20210112 header.b=Q87CmO0t; 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 S232091AbjC0L1o (ORCPT + 99 others); Mon, 27 Mar 2023 07:27:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230089AbjC0L1n (ORCPT ); Mon, 27 Mar 2023 07:27:43 -0400 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4ED4444B8; Mon, 27 Mar 2023 04:27:38 -0700 (PDT) Received: by mail-lf1-x135.google.com with SMTP id j11so10917599lfg.13; Mon, 27 Mar 2023 04:27:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679916458; 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=OQC5OuYYB5bXTGsTSu+XARSUI0pqTHor1aKx4p1f4tg=; b=Q87CmO0tyG+0j+kCyK7VxNkBm77Qy3pEHP2bsbaBgcC5tLC1JHf5WYYrorV6wIWfsE S81ERDvbPWithU3KVVqyUCydJ2uLePIQJpX9qRgvr2GXS5CPAypnHBXdgnpoDkg74zj8 CHHbUsA8+FoNanaPBRHEky9Mk2h9TlWvdVEvSx9ahhjk94HhCtPZkbqEU1Q3AIuUjTiP BJfGyvDcGxmJIxMfAjtf+2itagbG/wR/auJHombJ5uoZA4WPqZ1eVN6iVr7ajWZQTYJa X5oRx3DvlHBUaFtT2D0+EsQareS9nPpVc24V5j3IFyosT1ebPAkThWUkrTbOgwS46C9r mXfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679916458; 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=OQC5OuYYB5bXTGsTSu+XARSUI0pqTHor1aKx4p1f4tg=; b=SrBU+Nq6/OVW2mntn9MZYic9ivrahUxCzocW+ToZfSplWk08p91nbkKHD2kt85IP9O f8ozjIb9KOeyJc6QGwdPV9zs2EZQ1rNQvx65+RpX/OzmRtMeSYmM0PrZsvRTk3tAqvJF yg/TTigc5YlPDKoFvzFb1ZwzHPFPdiyZag/dtcSrsdJK9xM40ArNMnmy0xw+S2iCeztu SxoWZjZh5mZoRpZjr++IEHbyyphEVI/kF9ibu/xO7p3pqPlrz20eSMzPY70qQy5WvWsU tEXDg6g9L+L86b4rFFMkTOBxXp3bTXEt7uV6zWVW3Q5Lot+RjxKVkk5Vys7sSm2kFvpi MR0g== X-Gm-Message-State: AAQBX9fSzjKRze988I99IoVcS9H8bVuRekF753DkmZnCfaiYZtNYbxdG +AZNKToZ1/Re7TYoyItuFOg= X-Received: by 2002:ac2:5085:0:b0:4eb:d20:b2ad with SMTP id f5-20020ac25085000000b004eb0d20b2admr1515705lfm.63.1679916457757; Mon, 27 Mar 2023 04:27:37 -0700 (PDT) Received: from dc75zzyyyyyyyyyyyyyyt-3.rev.dnainternet.fi (dc75zzyyyyyyyyyyyyyyt-3.rev.dnainternet.fi. [2001:14ba:16f3:4a00::1]) by smtp.gmail.com with ESMTPSA id e2-20020ac25462000000b004eaef4b51dasm2663450lfn.107.2023.03.27.04.27.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Mar 2023 04:27:37 -0700 (PDT) Date: Mon, 27 Mar 2023 14:27:33 +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 v6 1/7] dt-bindings: iio: light: Support ROHM BU27034 Message-ID: <8ae2e7ac3f2df981f5d424f4d1e5f2aa37020b7d.1679915278.git.mazziesaccount@gmail.com> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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?1761520594772266480?= X-GMAIL-MSGID: =?utf-8?q?1761520594772266480?= 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 dt-bindings. Signed-off-by: Matti Vaittinen Reviewed-by: Krzysztof Kozlowski --- v2 => - No changes Changes since RFCv1 => v2 - Fix binding file name and id by using comma instead of a hyphen to separate the vendor and part names. --- .../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..30a109a1bf3b --- /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>; + }; + }; + +...