From nobody Fri Jan 2 22:24:29 2026 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 7DDA9E95A67 for ; Sun, 8 Oct 2023 15:49:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344917AbjJHPtd (ORCPT ); Sun, 8 Oct 2023 11:49:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344921AbjJHPtb (ORCPT ); Sun, 8 Oct 2023 11:49:31 -0400 Received: from mail-oa1-x35.google.com (mail-oa1-x35.google.com [IPv6:2001:4860:4864:20::35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CAA9EB for ; Sun, 8 Oct 2023 08:49:29 -0700 (PDT) Received: by mail-oa1-x35.google.com with SMTP id 586e51a60fabf-1e1e25ab32bso2637387fac.1 for ; Sun, 08 Oct 2023 08:49:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tweaklogic.com; s=google; t=1696780168; x=1697384968; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=iNFoZA1zZW25lllOuroNi5vtVqqnAR6Pi3h82umCIA0=; b=K6A4z8acZrpTvMv+zgaMPMtkTpBQM9Rm36Sc6Q4X/2rgtkJ7QHbOMDPjs1dTYLWc/r 6EuyDKs7c/QMHb+OEdxnLkYfuUbXihSqnhWq4RDA7zR3Oa+RW5CGr3kWkG+yyqvHi4gu ElG+NUzEEOPaYpcCHrZIhaPp8CEtHfuqgh7J+PJMQG4EBx16c81DrGZ8ho/QtjZyCThe jEodg4SkgP59Bgi5jzcsdETpvHW1KJnab40q4OzeOegosGRSCjmMUYoQ/CfoJQTXtBq+ 5yf8JbPWqkt2QJmjXDn21JkIWVBmEuk1+Y1UXdzs195SeXxhRFm8UAEMpWut6U7r5FjW AYbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696780168; x=1697384968; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=iNFoZA1zZW25lllOuroNi5vtVqqnAR6Pi3h82umCIA0=; b=dvrNlUzzuSlfXs55KARK02FuZLGbMsUKVQzs4YVcvkB+X0ewd7ej3YYPA/C8R+qkAD ZSLeX7FK+eVMzcNJnXfzubLzStSMHAKqUKMeFuu1Y8j5TKBc+56Bd+qxiWif6ZKenlPA Mnrg3kcTsha2Fs+V8hxmmZv4VJBIbQtwOarPhnycPs3TOSK9Bd3caB1uco127063rSRw POOvOioYEJAkU+j3b8zozo19fAws6b0IhwN4wHO2CKRtAz8Uv1wNVtQQQYtjlAsSj3jE e4E0irFqoOsjHybn//nZm1R2d+xTdynK/mNLUhVvwIN4vk4TkCbGE11UN8wowy6s3Qpl 3OGQ== X-Gm-Message-State: AOJu0YyQPh2BYcXPwTx3wo1J1nmW/F5SGkGoe8VwZDg6T/yRtletBJOg jZnslkMPs64Kibg8aUhr3nUNKQ== X-Google-Smtp-Source: AGHT+IFQLOBGkaHMmZgK6g6hooHkbLkh4BWJb0cto5MVI65HbfqcrKyNxGXFRUlDTYP88drtI+AZHg== X-Received: by 2002:a05:6870:58e:b0:1bf:e1e9:a320 with SMTP id m14-20020a056870058e00b001bfe1e9a320mr16195606oap.13.1696780168680; Sun, 08 Oct 2023 08:49:28 -0700 (PDT) Received: from localhost.localdomain (2403-580d-82f4-0-65d1-409f-dd8-4287.ip6.aussiebb.net. [2403:580d:82f4:0:65d1:409f:dd8:4287]) by smtp.gmail.com with ESMTPSA id n26-20020aa7905a000000b0068fc48fcaa8sm4723374pfo.155.2023.10.08.08.49.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Oct 2023 08:49:28 -0700 (PDT) From: Subhajit Ghosh To: Jonathan Cameron , Lars-Peter Clausen , Andy Shevchenko , Rob Herring , Krzysztof Kozlowski , Matti Vaittinen Cc: Subhajit Ghosh , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Paul Gazzillo , Conor Dooley , Stefan Windfeldt-Prytz Subject: [PATCH 1/2] dt-bindings: iio: light: Avago APDS9306 Date: Mon, 9 Oct 2023 02:18:56 +1030 Message-Id: <20231008154857.24162-2-subhajit.ghosh@tweaklogic.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231008154857.24162-1-subhajit.ghosh@tweaklogic.com> References: <20231008154857.24162-1-subhajit.ghosh@tweaklogic.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Add devicetree bindings for Avago APDS9306 Ambient Light Sensor. Signed-off-by: Subhajit Ghosh --- .../bindings/iio/light/avago,apds9306.yaml | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/light/avago,apds9= 306.yaml diff --git a/Documentation/devicetree/bindings/iio/light/avago,apds9306.yam= l b/Documentation/devicetree/bindings/iio/light/avago,apds9306.yaml new file mode 100644 index 000000000000..e8bb897782fc --- /dev/null +++ b/Documentation/devicetree/bindings/iio/light/avago,apds9306.yaml @@ -0,0 +1,49 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/light/avago,apds9306.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Avago APDS9306 Ambient Light Sensor + +maintainers: + - Subhajit Ghosh + +description: + Datasheet at https://docs.broadcom.com/doc/AV02-4755EN + +properties: + compatible: + const: avago,apds9306 + + reg: + maxItems: 1 + + vin-supply: + description: Regulator supply to the sensor + + interrupts: + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + #include + + i2c { + #address-cells =3D <1>; + #size-cells =3D <0>; + + light-sensor@52 { + compatible =3D "avago,apds9306"; + reg =3D <0x52>; + interrupt-parent =3D <&gpiof>; + interrupts =3D <6 IRQ_TYPE_LEVEL_LOW>; + }; + }; +... --=20 2.34.1