Received: by 2002:a05:7412:7c14:b0:fa:6e18:a558 with SMTP id ii20csp136313rdb; Sun, 21 Jan 2024 21:55:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IF3mAgVi2yZVkxKyyVT+Po1fbdSgyVshkGa7u4Ae6T0A2cXGfBqcwg/EBISMzJaeq6/om9P X-Received: by 2002:a05:620a:37a3:b0:783:49f0:2bc0 with SMTP id pi35-20020a05620a37a300b0078349f02bc0mr5054354qkn.143.1705902954041; Sun, 21 Jan 2024 21:55:54 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705902954; cv=pass; d=google.com; s=arc-20160816; b=uMJwryzgwOs2HvngGeX2byyPBuIeFY7K3uInotRxHfw7mpuFFmsXL6hEBuXiloE+Vo TxyDPOZw5fB8Vq1Z7oeH41dQSHKxI+AlqkCBNcsb4Rh/dLDI1437ACw7/xqnZYBS6ZQU VIT47jag7sQ0PHGrnxIG6RyRbbWiHuaRwOslWLwtm0YRknc4TfGZkF1aJilMDdszhHy6 md9294Fo5R4NctqMG2KjgAYs+gFVGrk77oYb97ufzbbZzyne/aM+m3NV7FekWZaCaqYU NbUlNw75ZVOX39pbG8ArSGOVXdeXfWE8wxwLfDtdGKC30/eJ7zGmUgeKIk/7pZbceVtB 9Aog== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=IbZe2AzIkKy+l4ATOd5FQ3m1RMu6EicdGaUIFG7TJls=; fh=UmVHA2HXJwJd6uESM8v9C81mqF3XC2ufORF7x4MKwek=; b=pj5PtjcO3H+WKfkX1+VWwMqvTHWLjQ8H5RalhMrWFcX5KPL19Pkfdg5KRRw+zIL3Ip Akdy6U/fSTv3vISx/pKC9LoaFZ44uNTrGwF3/XRX9OeZUBnvZxyFpCMVWWmqTP5D8/YF fWokbth2+2ZuYV1oyZguff/6DSV+59Fep8PlsFmW0EMWSBL7RoIoerwZyshMkM0yaNtE KRA7VSh6OPLVXQcvNoRDKjXD1YDjSBbAd/62R4WO1r7Ayf6J/oVb4uCWMr6BUUKOulAV wQefRH1ydwybK66xqupHDZuihKx8AR/wdNckywGlbt9O8M/Mr6UvHe7EhpJMQlA4nWdc icHw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@tweaklogic.com header.s=google header.b="HU/Tvzsn"; arc=pass (i=1 spf=pass spfdomain=tweaklogic.com dkim=pass dkdomain=tweaklogic.com); spf=pass (google.com: domain of linux-kernel+bounces-31968-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31968-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id j16-20020a05620a0a5000b00783a280dd83si323377qka.592.2024.01.21.21.55.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Jan 2024 21:55:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-31968-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@tweaklogic.com header.s=google header.b="HU/Tvzsn"; arc=pass (i=1 spf=pass spfdomain=tweaklogic.com dkim=pass dkdomain=tweaklogic.com); spf=pass (google.com: domain of linux-kernel+bounces-31968-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31968-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id C32FA1C2179B for ; Sun, 21 Jan 2024 05:18:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6253B3612F; Sun, 21 Jan 2024 05:18:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tweaklogic.com header.i=@tweaklogic.com header.b="HU/Tvzsn" Received: from mail-pf1-f177.google.com (mail-pf1-f177.google.com [209.85.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 40F983611A for ; Sun, 21 Jan 2024 05:17:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705814281; cv=none; b=lH0HAMKTmzJE/wMjL/di4DFFExFznl89IjkLOeJEgWgzKg/Aq9lZ4bFsZBPYqMtjtDf+vF+YwrwxQMn8DytJ45hIstXlVyic4rU9DbmMqqsEtHAWqaKS+2OeWKV2N/WLJ7BcYD+Afpa3pAJQ+IbwjYaYU/zehVtWK+5de2CoMtI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705814281; c=relaxed/simple; bh=9PPgyl4c02AhR7tsdj/3jHF5jJWRSgTdQEG0MfhuJW4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=pR6V5hforp+TUpkmN0DXhMTvATmOX/kZvszvpz5nKlD+KmFM05dp7sb9+0hgQTvE1TPcPvXYOMYQXWQ+oA/sHfzUCPGkg6z3vFlAKJLDjRYqG35j1uqDlczVH77E0WXofjQ9Tiew6M5FvGa0s+yMWu3dTGrKUIaXPhDmQe20nVs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tweaklogic.com; spf=pass smtp.mailfrom=tweaklogic.com; dkim=pass (2048-bit key) header.d=tweaklogic.com header.i=@tweaklogic.com header.b=HU/Tvzsn; arc=none smtp.client-ip=209.85.210.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tweaklogic.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=tweaklogic.com Received: by mail-pf1-f177.google.com with SMTP id d2e1a72fcca58-6da9c834646so2170812b3a.3 for ; Sat, 20 Jan 2024 21:17:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tweaklogic.com; s=google; t=1705814278; x=1706419078; 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=IbZe2AzIkKy+l4ATOd5FQ3m1RMu6EicdGaUIFG7TJls=; b=HU/TvzsnK5Fq+1Re4RIUSjQogNCvsbQ/PcWz66oY/FNGgUZkO6WYaALZMeTH5uMHp4 BcnGJ12iXlEjsD5Ck527bHmP8wMyRIWUGSlXC/ToZFyhL92Yqk8JDhQGSeWrbEv82ZN8 dX8etNCuRenb+Z4qWmcZh6Be4OFXV/vm2Bed1vYJ+NnI8Awf5V5g0Pzh4ivSSkVovDsj arA0i2CuagxyoSq0jjh5hMyn3eohYk5dFkvxLIaGLsE2j0HH4cGvd1A82lcSH2CQKJHz DPftZ9/SX8tJgn+B/MEFrI3hHHE0QhaGFu73Ubz32F88jXrDmkoPgW2OhguH7rzMle+O 1NYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705814278; x=1706419078; 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=IbZe2AzIkKy+l4ATOd5FQ3m1RMu6EicdGaUIFG7TJls=; b=M08jbZ+c8aqXg1YmyS29jwfGrdgDCSvNqx4hiNC+zeyzw+WqOpfx21Vi0LwaAqau/Z MgRLd8HFkVNMHBPd5fJxX9+HcbR2tz5hRE2sk0KqNxIfbyBRN4y85FcILlwKUMOl0Y45 blWr9eson+G4OgZZoCkumML2HGAjtb6TAPBcHB1lqf0RDAU9dQm4oiTe2Ihhd37jR/FP 8WW+q8sfYwCSgg0a1qlUPJ7uZQtiBQ3iWSu64wF21PpaIWFjfGJ0ZmdmeTW/HaNMhQ70 qGnNDgMWfQqx4wna7Q65hgpGMxN5O4UeAAWUeJ5eXPF9rzzbgG55LAsc5Q1JxzLsdRnW BiQg== X-Gm-Message-State: AOJu0Yxr5I5BdSCoEWDuElYWcJQucte0D0YPxt+j43KXHzgsyK+xsV81 uxe/dQZ+CFdVPDiUZN9o6i8DSQG9cJjMM1yVNlZl3BqRAfLmSzOMBvyF9n25g20= X-Received: by 2002:aa7:9d1e:0:b0:6da:b959:3782 with SMTP id k30-20020aa79d1e000000b006dab9593782mr3416555pfp.35.1705814278565; Sat, 20 Jan 2024 21:17:58 -0800 (PST) Received: from localhost.localdomain (2403-580d-82f4-0-3fa1-f9ce-6074-3bab.ip6.aussiebb.net. [2403:580d:82f4:0:3fa1:f9ce:6074:3bab]) by smtp.gmail.com with ESMTPSA id f6-20020a056a000b0600b006d96d034befsm7547196pfu.30.2024.01.20.21.17.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Jan 2024 21:17:58 -0800 (PST) From: Subhajit Ghosh To: Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matti Vaittinen , Andy Shevchenko , Marek Vasut , Anshul Dalal , Javier Carrasco Cc: Subhajit Ghosh , Matt Ranostay , Stefan Windfeldt-Prytz , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v5 2/3] dt-bindings: iio: light: Avago APDS9306 Date: Sun, 21 Jan 2024 15:47:33 +1030 Message-Id: <20240121051735.32246-3-subhajit.ghosh@tweaklogic.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240121051735.32246-1-subhajit.ghosh@tweaklogic.com> References: <20240121051735.32246-1-subhajit.ghosh@tweaklogic.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Adding device tree support for APDS9306 Ambient Light Sensor. Updating datasheet hyperlinks. Adding interrupt definition macro and header file. Adding vdd-supply property. Signed-off-by: Subhajit Ghosh --- v2 -> v5: - Implemented changes as per previous reviews: Link: https://lore.kernel.org/lkml/20231028142944.7e210eb6@jic23-huawei/ Link: https://lore.kernel.org/lkml/22e9e5e9-d26a-46e9-8986-5062bbfd72ec@linaro.org/ --- .../bindings/iio/light/avago,apds9300.yaml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/iio/light/avago,apds9300.yaml b/Documentation/devicetree/bindings/iio/light/avago,apds9300.yaml index c610780346e8..bee73a590424 100644 --- a/Documentation/devicetree/bindings/iio/light/avago,apds9300.yaml +++ b/Documentation/devicetree/bindings/iio/light/avago,apds9300.yaml @@ -4,19 +4,21 @@ $id: http://devicetree.org/schemas/iio/light/avago,apds9300.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# -title: Avago Gesture/RGB/ALS/Proximity sensors +title: Avago (Broadcom) Gesture/RGB/ALS/Proximity sensors maintainers: - Subhajit Ghosh description: | - Datasheet: https://www.avagotech.com/docs/AV02-1077EN - Datasheet: https://www.avagotech.com/docs/AV02-4191EN + Datasheet: https://docs.broadcom.com/doc/AV02-1077EN + Datasheet: https://docs.broadcom.com/doc/AV02-4191EN + Datasheet: https://docs.broadcom.com/doc/AV02-4755EN properties: compatible: enum: - avago,apds9300 + - avago,apds9306 - avago,apds9960 reg: @@ -25,6 +27,8 @@ properties: interrupts: maxItems: 1 + vdd-supply: true + additionalProperties: false required: @@ -33,6 +37,8 @@ required: examples: - | + #include + i2c { #address-cells = <1>; #size-cells = <0>; @@ -41,7 +47,8 @@ examples: compatible = "avago,apds9300"; reg = <0x39>; interrupt-parent = <&gpio2>; - interrupts = <29 8>; + interrupts = <29 IRQ_TYPE_LEVEL_LOW>; + vdd-supply = <®ulator_3v3>; }; }; ... -- 2.34.1