From patchwork Wed Mar 22 09:06:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matti Vaittinen X-Patchwork-Id: 13183682 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 52D2EC6FD1F for ; Wed, 22 Mar 2023 09:07:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229754AbjCVJHL (ORCPT ); Wed, 22 Mar 2023 05:07:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230145AbjCVJHG (ORCPT ); Wed, 22 Mar 2023 05:07:06 -0400 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 76DC35DED0; Wed, 22 Mar 2023 02:06:46 -0700 (PDT) Received: by mail-lf1-x12e.google.com with SMTP id j11so22393413lfg.13; Wed, 22 Mar 2023 02:06:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679476006; 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=RpWtvat+StkevPGW04xskQmSfJfNqkv5jWGii5E8uF0=; b=YfSl6X/7MTipHzbnUsuKvYUBl0H04OevP2JE87g4LqCGpZa4wNQxyxAvNzqN6IWl3T fQ7xhiFM7rspuV/sm08o83nn8UCv4kP8SybTGri1Tg/VPpH/kV0aGEVvhEGTFkiyoFaA fU+Y4SQ6IqWL+r73n0kietkjxtcRtXl4g4VLHkk/ugovfzvfh3mb8Mp5GS8br/Yqrx3p VHI/X/soDd7KnEGX4TSq5MYH4vrBgXCY+a7+59zIzW1R2+jtAbFARYdLbxuYRCaYL7Up MoNfIxt84K3m9psgpt5I8/IlkunEtep0XKWU/VJRS1i/T7Wbq2EK+CzcvdZhbJMT5lXI YHlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679476006; 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=RpWtvat+StkevPGW04xskQmSfJfNqkv5jWGii5E8uF0=; b=OkWKgM7pCokh1dtlO+CKlhldn5Ew7N4ji+QjVxvKAjJCIQ26g0gErka9ZUz3ZS/Jx2 Yuhufdo9h1a9l/jD/PH9UjbkQ0DdBY3llWt0cS3iA5n+LcbLQncyMd/Lwqrbp11qF68X svzn5xPY0uQj1ZLOwwSQFR4iRnpBX/zH3wSaIMGH6GhO3BAOf82GYA9g5Eo26nBjlCyi yRXDZ9Mzwpo/TuWakZLkn58mmJppLLWyq5vuhlTXljbQpQpMJfG0+DmPmNr8v8pdvLXH E1QDNDiYdSm+rg2P6Z0AuYN1LwmO6HTQroSayWwzE/SxtccKQ1Nha9t4HVllKCLEnR/H awIw== X-Gm-Message-State: AO0yUKUzQC+fLgjY5ZeUi5hwdXKngWzn2afQQ54nLivryyRg/3I9A+nA RmhvY1brT4s3rCeNPEfhl3I= X-Google-Smtp-Source: AK7set88h3N0lgvPjjQ+WgtggFRrM5WBWQsWiVJatIohyOMMXuTuQNor1i2IAM2PWJScHdb0CMB9lg== X-Received: by 2002:ac2:4311:0:b0:4ea:5902:5af1 with SMTP id l17-20020ac24311000000b004ea59025af1mr2052906lfh.52.1679476005886; Wed, 22 Mar 2023 02:06:45 -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 8-20020ac25688000000b004d863fa8681sm2508837lfr.173.2023.03.22.02.06.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 02:06:45 -0700 (PDT) Date: Wed, 22 Mar 2023 11:06:41 +0200 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 v5 3/8] dt-bindings: iio: light: Support ROHM BU27034 Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org 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>; + }; + }; + +...