Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp1461991rdb; Sun, 8 Oct 2023 08:49:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGZjnR7bZL3smXS7UuNVT4JtevnXt6/NRhD22J7w9MtpE5ochJRJB4n3M3+GFKEwj7b1Bku X-Received: by 2002:a9d:68ce:0:b0:6bc:f5b7:77e0 with SMTP id i14-20020a9d68ce000000b006bcf5b777e0mr14827820oto.31.1696780186539; Sun, 08 Oct 2023 08:49:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696780186; cv=none; d=google.com; s=arc-20160816; b=odSffthleqToSdMhPoQuak9WiPipdBHvROS0TRbVq5BTBB5CJA7gtyF8MKe2CfoNGy WVlVXhwBP8Il7vnVg86i8XDZJI8GTmH3TAjSY/gdhzTQobxF/j1zsV1gdWeBj00Oy65O W/XBez5sqSR5rwBz2wL69UNeFaX0R9YgIJWUnFpOqmf22GEwki/o5IcCmlqxb8E92Upp C1xzRI+hqbiZlbFkpxKiZolCUkRquzZ0g1ZTRhW3+4Eiv39ZZEwJbzJPmGaE3FmSYwYt 1beFI5CMj+R4/wePWnnnAhpN+e6pW0N1uppuSeJe45Iy8G7uzL+3dlT3i7hnOYOFs/2Q GWbA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=iNFoZA1zZW25lllOuroNi5vtVqqnAR6Pi3h82umCIA0=; fh=vmV6bERWBx1rcO8Iu/4PU7SIIEQAqowjFItclqa+pak=; b=u47IBriJWU0lBJOra3u+ZYtPyKvj3075C26+wh6ohzQrA2d02Q4c8sfzCtInGYLoVY PCni2p5sVrSLO0A0X139nZu35K5lvcKKDwyupKA4Bw8SRQ5QvnjyvBopXZT4yeFojcxh hiWAKjk7CmKs6YxiKOBSr05a4fU43MwZCWcvFCaKoFON3ZSW3Eg3Vbxui4jU/ELO/4lR ADSiE3NCB+RoXmc4SBcErFLTqPDxzXd38hhBwjMYFX+VnomqWsrVmtKnIuXAGmZKWCVf fyDjLa2/sJMaHt9oYYiUvWunmcvT1AmrED64zhk7NcHGeQhq8lIDYF79xjOdFBuxu99L bd8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tweaklogic.com header.s=google header.b=K6A4z8ac; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id u185-20020a6385c2000000b0057c29fec784si7804012pgd.110.2023.10.08.08.49.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Oct 2023 08:49:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@tweaklogic.com header.s=google header.b=K6A4z8ac; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id E9DF780ADF0E; Sun, 8 Oct 2023 08:49:44 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344915AbjJHPtc (ORCPT + 99 others); Sun, 8 Oct 2023 11:49:32 -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-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: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, 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-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Sun, 08 Oct 2023 08:49:45 -0700 (PDT) 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,apds9306.yaml diff --git a/Documentation/devicetree/bindings/iio/light/avago,apds9306.yaml 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 = <1>; + #size-cells = <0>; + + light-sensor@52 { + compatible = "avago,apds9306"; + reg = <0x52>; + interrupt-parent = <&gpiof>; + interrupts = <6 IRQ_TYPE_LEVEL_LOW>; + }; + }; +... -- 2.34.1