Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp2240883rdb; Fri, 8 Dec 2023 02:24:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IFNTIji1ak8nykK5nJSJgplXEcgeppmUOEBwheNYYHbeA/68zrDUL5vzxDzimzU1G48O6HD X-Received: by 2002:a05:6358:720b:b0:169:57f3:7551 with SMTP id h11-20020a056358720b00b0016957f37551mr3367929rwa.23.1702031084380; Fri, 08 Dec 2023 02:24:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702031084; cv=none; d=google.com; s=arc-20160816; b=O8kc7KngyiVgZi0Top6AAXuIxcSaV1VWpjmyHfj7Ec/wTplUaraBGqQFYJ1IME3ANy TYNV4DfdJpiZOfaH+kbhb0pblg8+UzokVRHw53qlqapJcj/uRWKf4gqxdOSd6AtkFiHN 19oatffR34v2PQ5DyGranaDLmc872hYtFzNHzPaB6Z4/h+aFD6s/21fOuwmkPY0Z2Z5Q 78Di+PolVrdYPtSTBZoX8Xcq4cC2J58eS9KnTiohBwSKDud0TqS8VCLCN8qcC/14aZnK w3pRtwMc/3v8xeB5jN2ZAlsCCds3O03ZdpH4GtCQQ5ku3PeQsmxVnz81TTM0doLvx5H6 pbYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Qh6Ho7FMXEpXQf4LtvO8/eRoMKW6RHIURVqHusV8P5Y=; fh=RpGf0/vqKu95vQ072ampk46/LrjgobZlK22xD+SStgs=; b=reRym8dr2GT/n1sHFLfFnsGHaf+96hO4UviUsHHhgZzdmGjZjgsMIjtCtCkEytrY4M zqjLNkmsRljjFGJgJtsBoyAI/oLPXOMG6zV0t+Zb/KCvoyey0W6BQa4t3XqfRLwhNFty IVQv2FEnngMerMlmKZTXZ6kByBhg4D+udvdlm5a9gHj1YkYlRy9xjU84XzwAr/yzZT0f sVRwqyeN9vSxymDISX1FzBTvx6xhID4UygdEmakAZfRzyhvUsPPac4xZ7esscmC3xZ+U Ord6Ewppw2N/qpyKqYbjy8Wtzf0lZhKT7yqZ3cOo2oD2+VSvHLKs92GmaH0zGeGzK5Og dCkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="cySM/tv5"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id m66-20020a632645000000b005bd03d2fda6si1290330pgm.350.2023.12.08.02.24.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 02:24:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="cySM/tv5"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id D15168374B91; Fri, 8 Dec 2023 02:24:41 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1573499AbjLHKYV (ORCPT + 99 others); Fri, 8 Dec 2023 05:24:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1573489AbjLHKYT (ORCPT ); Fri, 8 Dec 2023 05:24:19 -0500 Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7411C121; Fri, 8 Dec 2023 02:24:25 -0800 (PST) Received: by mail-pl1-x634.google.com with SMTP id d9443c01a7336-1d1e1edb10bso17413255ad.1; Fri, 08 Dec 2023 02:24:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702031065; x=1702635865; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Qh6Ho7FMXEpXQf4LtvO8/eRoMKW6RHIURVqHusV8P5Y=; b=cySM/tv5ESiFGu43qChqBqeTaP/X9zz766X55vdVyRHGnZJnaKLdEyH5WFxtU12yVz gk3MCGBX/iU+lPAfDb7yq7NpZh8qB2uyUeGYIVr3KKpeUunVP1rFSGDVkg/Mg/TX8hsN vTcCiyrojhvCp25u+rjCB3XQ8WW9a8AXpqk65JW6P4MCazmTk13GJhniao6FmZM4DddF E5ytcQ2hPULF5UiZbr1b29xGBeE1F7EKxgsSZIdetMEkm9Xc5WVzQz4ghcetUq7uzKG1 mNbxKjNGduZQ2IDcPiy54m5BwX4rH/9tiOnVO2JnrYShbwWHlud8+nIusfHBtnindpdG C1ig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702031065; x=1702635865; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Qh6Ho7FMXEpXQf4LtvO8/eRoMKW6RHIURVqHusV8P5Y=; b=djiB9SskmqmNZL0R/wIRWixl7v7gKT6BRc87c254Warzo3u9I8OaLKJpyP4vVs5j4R YHvgyWR67RO3Yj0z24qJrMl107nnUG/vXXvbMPuqBanX8LOYhr+SwiULK0vOcJcrpCbq V2SmQPwKbT2Hkz2Tkk7BRSvBPmn1QG42EHBFx+iFTu5ZILLZjftmxA0uJPqEqXHO51+Q bpse5e7gkaJsw54Wbk4XfND0XpReOQfl9oaWyPkaUnD5gXJhHcpMwR/XbBDb4ixbyM3q xeVHOyLODMD9l8Mgm3tjgILoOkubchglvLOXDx5plS0vLqtjyZh2DSkWD8uCLb54sMyF 4wiA== X-Gm-Message-State: AOJu0Yzc7JGRw4ZOO+MRD4beTwI7M1noivgjR8UAvPV+qSmRfzTGJU+u zZ9y1WP1F54TnHjQHCHBhpIgp3+fAp4KhcNC X-Received: by 2002:a17:902:c950:b0:1d0:af28:4603 with SMTP id i16-20020a170902c95000b001d0af284603mr4862870pla.32.1702031064618; Fri, 08 Dec 2023 02:24:24 -0800 (PST) Received: from localhost.localdomain ([2401:4900:6277:8af4:45bc:8bc9:c94a:54d2]) by smtp.gmail.com with ESMTPSA id g13-20020a170902d5cd00b001d1d6f6b67dsm1337033plh.147.2023.12.08.02.24.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 02:24:24 -0800 (PST) From: Anshul Dalal To: linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, devicetree@vger.kernel.org Cc: Anshul Dalal , Conor Dooley , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , linux-kernel-mentees@lists.linuxfoundation.org, Jonathan Cameron , Krzysztof Kozlowski Subject: [PATCH v3 1/2] dt-bindings: iio: light: add ltr390 Date: Fri, 8 Dec 2023 15:52:09 +0530 Message-ID: <20231208102211.413019-1-anshulusr@gmail.com> X-Mailer: git-send-email 2.42.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Fri, 08 Dec 2023 02:24:41 -0800 (PST) Add binding for Lite-On LTR390 which is an Ambient/UV light sensor that communicates over i2c with an address of 0x53. Datasheet: https://optoelectronics.liteon.com/upload/download/DS86-2015-0004/LTR-390UV_Final_%20DS_V1%201.pdf Reviewed-by: Krzysztof Kozlowski Signed-off-by: Anshul Dalal --- Changes for v3: - no updates Changes for v2: - Added missing properties in the example Previous versions: v2: https://lore.kernel.org/lkml/20231117074554.700970-1-anshulusr@gmail.com/ v1: https://lore.kernel.org/lkml/20231109090456.814230-1-anshulusr@gmail.com/ --- .../bindings/iio/light/liteon,ltr390.yaml | 56 +++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/light/liteon,ltr390.yaml diff --git a/Documentation/devicetree/bindings/iio/light/liteon,ltr390.yaml b/Documentation/devicetree/bindings/iio/light/liteon,ltr390.yaml new file mode 100644 index 000000000000..5d98ef2af74d --- /dev/null +++ b/Documentation/devicetree/bindings/iio/light/liteon,ltr390.yaml @@ -0,0 +1,56 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/light/liteon,ltr390.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Lite-On LTR390 ALS and UV Sensor + +description: | + The Lite-On LTR390 is an ALS (Ambient Light Sensor) and a UV sensor in a + single package with i2c address of 0x53. + + Datasheet: + https://optoelectronics.liteon.com/upload/download/DS86-2015-0004/LTR-390UV_Final_%20DS_V1%201.pdf + +maintainers: + - Anshul Dalal + +properties: + compatible: + enum: + - liteon,ltr390 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + description: | + Level interrupt pin with open drain output. + The sensor pulls this pin low when the measured reading is greater than + some configured threshold. + + vdd-supply: true + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + light-sensor@53 { + compatible = "liteon,ltr390"; + reg = <0x53>; + interrupts = <18 IRQ_TYPE_EDGE_FALLING>; + vdd-supply = <&vdd_regulator>; + }; + }; -- 2.42.1