Received: by 2002:ab2:5d18:0:b0:1ef:7a0f:c32d with SMTP id j24csp110686lqk; Sat, 9 Mar 2024 02:52:07 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVs0Yx46ocfZvZ/PSYaCrR8ng16z8Ibu8HYnhsJVwg39iG/BgY33jbafFBq16iIiYaaWdCPos4LJBoe3yZZXjBKwRxXXpzNtnhR+EQRwA== X-Google-Smtp-Source: AGHT+IHm2RXEs5fBPHvuF4Hy/Snw7NPE6yKk+gkVVfufwar21t2gaEcIAC3/Lhn+EVE/kFgWl1W9 X-Received: by 2002:a05:620a:4d19:b0:788:2941:2a31 with SMTP id wa25-20020a05620a4d1900b0078829412a31mr1671574qkn.11.1709981527567; Sat, 09 Mar 2024 02:52:07 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709981527; cv=pass; d=google.com; s=arc-20160816; b=x+GJezel5crVGTDtjdLp0UxIDi3fihRfe1By1hkG4YJGRwH0+elxUqgwwVUsp5kzoJ CdXaR+oVFRN/mChUImBOFYMMQchQhwi623p1p3ippiuQLJZvtZ68JKwWIfORfzxh9Er2 p11EEb3XhxlyYkVbKOLESHbL6UWuCPDe87bf9xYoZdEZsRXao8w1/I9MnjhlFmNmO0K8 6pXTH5Nx/6ruvbtNnPmveZBXohASOg4u3rlrKI6eCQnNVwUE1dUksiiqnq+wyg4GDSrx isc2tH+rLetyxJEeO8y/dG08mlSD1KIxZUhs/YgkOWOzZZFFc2FUMd4+MLfoMX0mdKlw P3HA== 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=ChW2BCmij4u5H9wErfx88Juqp6RMsFgTqdJYy2yRPmw=; fh=tIvi2y10ssrGGlNoQZs+ABnFSAndrmjgVKiAcXcqDKQ=; b=omNq0JsNrH+6D/IiE06UrT0MXRSeaX15tGrIw70WDHuez9xk5TsgoUYz9azCl9Fp5w zOQUOnX8lezqlB1Lg8Ug228DBwWOg08lQg7hMvX9gEuD/mQRinXIASOVbZbB7AXdqQ76 SbzhaOwRfUiUO9cPucBdBi2Ywx7BO9RppUZUN0+P7enZAF6KIAA7hLazSsH8nN6V5GVn PxpZ+qvCMeIOaSQHUFbMyTtD1ehFW0QStms7EWR3ae6LhXZw3ILKcJAVArTxqIF/3NO7 PlzUqdr9+qoQ6FrfVbrn7YOZPuFkbUd0QUWjMqDdU+g1rT32kUZV+OpLwr0GCef24vry DxNQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@tweaklogic.com header.s=google header.b=Cg8DcmjA; arc=pass (i=1 spf=pass spfdomain=tweaklogic.com dkim=pass dkdomain=tweaklogic.com); spf=pass (google.com: domain of linux-kernel+bounces-97858-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-97858-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id od10-20020a0562142f0a00b0068fa24e579csi1347716qvb.555.2024.03.09.02.52.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Mar 2024 02:52:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-97858-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@tweaklogic.com header.s=google header.b=Cg8DcmjA; arc=pass (i=1 spf=pass spfdomain=tweaklogic.com dkim=pass dkdomain=tweaklogic.com); spf=pass (google.com: domain of linux-kernel+bounces-97858-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-97858-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 3FE361C20B4C for ; Sat, 9 Mar 2024 10:52:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B4D0E2DF7D; Sat, 9 Mar 2024 10:51:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tweaklogic.com header.i=@tweaklogic.com header.b="Cg8DcmjA" Received: from mail-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.169]) (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 493D6381DD for ; Sat, 9 Mar 2024 10:51:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709981509; cv=none; b=QFsfULzh7tGXgzk/cKQiyV2Q53yAsqH78KB7GDvOCE7K5wcuYTOq72GrhFXg0PCDq9df1JQVQ/CDGGRDsQFXBsOHMuvhRaryuO+OIOPMGBxTySRfM5TZoPhcdQmDFazntJHky6gmU5ajrRJcwtJIZv4e207y8nCa8fCk2o9NZeE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709981509; c=relaxed/simple; bh=k7EL7I8iMzIIPRV/KSU7eMMp45PZgVy1NNbbVouy5oA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=bWFbAD+ObFt39Qd/TMs83P+0hy4sRb3jOYxJC3z+HJiTsCSvwrIlYfjT9x/07xmqaZzsV+iwSxQ/L1CuajRPEjs4TrWnisjzXdpSTb9v/DQ9a1HSmzK4NzDMWiJOJcR1mGQWIXxVr5JS7MJeuxnhwZtEzQmPXP7oGaSpzORDJ94= 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=Cg8DcmjA; arc=none smtp.client-ip=209.85.214.169 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-pl1-f169.google.com with SMTP id d9443c01a7336-1dd6412da28so13791825ad.3 for ; Sat, 09 Mar 2024 02:51:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tweaklogic.com; s=google; t=1709981507; x=1710586307; 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=ChW2BCmij4u5H9wErfx88Juqp6RMsFgTqdJYy2yRPmw=; b=Cg8DcmjAuUvhCx9hmCOm3KmIU2awGSgv3MFQzJoOjzD7O/duIWYrZh+uB5bbig5nro 8pb2ZHcvnVy4A3f9X51q/Wy94fr8p3jPFkBd0prjSrkDmmgaJBMuQlDu3th1IFsVqc9c qK9u8t3AaQwJkal8lddNBKJPF9VhsLG44/rShxTtPy2D0kaU2cpArHL7QUl30fHauhEo b72i9Gc2fDvx56ymMbDddjKlc05NGMRTqqf2gWGXP4DqdZx3NWhm+BbsGN+0tPSawyvt V3RzFyM4XSWPa9jyYyia8Ah5H4Q6HCc2UHtgx72Aku9nmrP0puqXhe7JTMJYzWr6k4+i n62A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709981507; x=1710586307; 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=ChW2BCmij4u5H9wErfx88Juqp6RMsFgTqdJYy2yRPmw=; b=BGfpRGNbgVaE/s5Lmy53xSXM73qZS2u3HRQFYoDmyxX8v9RLECuZWaRkZMl4tzOuol NCyEdQurtMMp2x5w7wD6hApTSVE6AwCxN8wnHC8A3+Zdh2uUZTO2lpRdM5sJTy6d7f0d 0GTlzC8+F9RHMj8ef+EowZJTF6stFRSTNg5N9II4g1yhRzNa0JLrE7PJqQYBVepu9PMH qBgobStPuWzW5vm3jW2fuIaCqTjn/hKxsD5m9Qmv7NB8kVrusiwfig+4qPK+NthGcNvU 62KqRclwMfSt+liWPNVgIrf1vOZ+TNL6XoIDnvYwRatEZr5tpazFbJPj90zjExwvvbz2 qn/Q== X-Forwarded-Encrypted: i=1; AJvYcCVAY8T98zn7pbGyLDizK2loxhD7zXD6NsKbvSOiD9bMXv1juPD31MfSxkJvwO2sxrFRx6/AE5QrG84JSsqF3dOnsGn3lsQocBigvTOA X-Gm-Message-State: AOJu0Yx+b1bvIxQWnSRCbYYHQI4iuCxiZbFeY7UHGtzHu9MjhIquv5E3 TNIGvJZcm+9JTpEkv93JFuNQ8P6fyM7b2aF0vZSOgSHw3ZGI6I06ExmguqxvLLM= X-Received: by 2002:a17:903:11d1:b0:1dd:7920:428b with SMTP id q17-20020a17090311d100b001dd7920428bmr1640598plh.2.1709981507670; Sat, 09 Mar 2024 02:51:47 -0800 (PST) Received: from localhost.localdomain ([180.150.112.31]) by smtp.gmail.com with ESMTPSA id l8-20020a170903120800b001dcf7d03824sm1070608plh.55.2024.03.09.02.51.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Mar 2024 02:51:47 -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, Krzysztof Kozlowski Subject: [PATCH v9 1/5] dt-bindings: iio: light: Merge APDS9300 and APDS9960 schemas Date: Sat, 9 Mar 2024 21:20:27 +1030 Message-Id: <20240309105031.10313-2-subhajit.ghosh@tweaklogic.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240309105031.10313-1-subhajit.ghosh@tweaklogic.com> References: <20240309105031.10313-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 Merge very similar schemas for APDS9300 and APDS9960. Suggested-by: Krzysztof Kozlowski Reviewed-by: Krzysztof Kozlowski Link: https://lore.kernel.org/all/4e785d2e-d310-4592-a75a-13549938dcef@linaro.org/ Signed-off-by: Subhajit Ghosh --- v8 -> v9: - No change v7 -> v8: - No change v6 -> v7: - No change v5 -> v6: - Write proper commit messages Link: https://lore.kernel.org/all/1d0a80a6-dba5-4db8-a7a8-73d4ffe7a37e@linaro.org/ v2 -> v5: - Removed 'required' for Interrupts and 'oneOf' for compatibility strings as per below 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 | 11 +++-- .../bindings/iio/light/avago,apds9960.yaml | 44 ------------------- 2 files changed, 7 insertions(+), 48 deletions(-) delete mode 100644 Documentation/devicetree/bindings/iio/light/avago,apds9960.yaml diff --git a/Documentation/devicetree/bindings/iio/light/avago,apds9300.yaml b/Documentation/devicetree/bindings/iio/light/avago,apds9300.yaml index 206af44f2c43..c610780346e8 100644 --- a/Documentation/devicetree/bindings/iio/light/avago,apds9300.yaml +++ b/Documentation/devicetree/bindings/iio/light/avago,apds9300.yaml @@ -4,17 +4,20 @@ $id: http://devicetree.org/schemas/iio/light/avago,apds9300.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# -title: Avago APDS9300 ambient light sensor +title: Avago Gesture/RGB/ALS/Proximity sensors maintainers: - - Jonathan Cameron + - Subhajit Ghosh description: | - Datasheet at https://www.avagotech.com/docs/AV02-1077EN + Datasheet: https://www.avagotech.com/docs/AV02-1077EN + Datasheet: https://www.avagotech.com/docs/AV02-4191EN properties: compatible: - const: avago,apds9300 + enum: + - avago,apds9300 + - avago,apds9960 reg: maxItems: 1 diff --git a/Documentation/devicetree/bindings/iio/light/avago,apds9960.yaml b/Documentation/devicetree/bindings/iio/light/avago,apds9960.yaml deleted file mode 100644 index f06e0fda5629..000000000000 --- a/Documentation/devicetree/bindings/iio/light/avago,apds9960.yaml +++ /dev/null @@ -1,44 +0,0 @@ -# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/iio/light/avago,apds9960.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Avago APDS9960 gesture/RGB/ALS/proximity sensor - -maintainers: - - Matt Ranostay - -description: | - Datasheet at https://www.avagotech.com/docs/AV02-4191EN - -properties: - compatible: - const: avago,apds9960 - - reg: - maxItems: 1 - - interrupts: - maxItems: 1 - -additionalProperties: false - -required: - - compatible - - reg - -examples: - - | - i2c { - #address-cells = <1>; - #size-cells = <0>; - - light-sensor@39 { - compatible = "avago,apds9960"; - reg = <0x39>; - interrupt-parent = <&gpio1>; - interrupts = <16 1>; - }; - }; -... -- 2.34.1