Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp3016614rdb; Tue, 6 Feb 2024 05:01:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IHxK/fNed8pjnUrbbejKm7sxhiw0jR8lqbRAj/g4hA2qvCc4AmRweP6eXMBy1EKGrqWr5zh X-Received: by 2002:a17:907:7816:b0:a38:371c:f645 with SMTP id la22-20020a170907781600b00a38371cf645mr782722ejc.51.1707224485263; Tue, 06 Feb 2024 05:01:25 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707224485; cv=pass; d=google.com; s=arc-20160816; b=JWsftdlVVORvQ+2lbRPvfq7A3zJeioLjwj3JgROMtoLorKD/moIEM1Ly8N6HFlUYEH M4bAPLLawXbZiiQjycIYa5YcFZ0Q0fChNvnFJFK6Q9JpyK3i045NEy5n6rsE9QLm3pZ+ kOo7LzetcWV6AvGuues3eQyO2PqniS7zGlgR2hcVVIcqhvJ00B0pBcuHqAzpawM3aVoP S2mE28CXK4eQuECdZUOjQg57oroBTZQKPJT44ohgmnGiwwsHlbKFOCTdGr8OZrnmdsUA kvfsv0ZBrHF0nhLcM9XTAOo7ygU2hwU4KNiPAW+0kXd1J3RtykaHrZZ2WsUGM8cyKv3O ADTg== 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=NnMGYg5SKIByePnZTVg3AFDTX9DCKuF3p//SMkS6JHk=; fh=d+A2y4J0Go+zd6hbYon4RIXRB1MIdWh+hK3YBpUrl/k=; b=HjBMajxJLIGLSoKIiK011fpcDZVEtd/+MSubmyQl7A1HFu+hhs2VNd8RM6ZePQRhCG YWhPHwEK61jYboN5cbAWvHZQMMeDZ8TngS4z2poq85k76v8wzJ/I5fZcxSLyngumAsOX W0WfQ4t35uL+VXI8N5BlZNWnWAuI6oc/BQTzcldUKUhUKPPfdWKy0Nf7XcWkWxH2Zw9I 9i/5vyVkVIgQNJUAkAmTEpdYXf2jT+bztCtMoQNPsbZLWVWZWF4W1j+AGqA8hpBcHfMT QymcO3MH90l62RKgKAM8X3kgp8rzN1pHTrhUozQa4+OhExOgg1ilROaEdNTKXVvSh4Ob McLg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@tweaklogic.com header.s=google header.b=O1hqOhci; arc=pass (i=1 spf=pass spfdomain=tweaklogic.com dkim=pass dkdomain=tweaklogic.com); spf=pass (google.com: domain of linux-kernel+bounces-54981-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54981-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=1; AJvYcCXLSUHOxiP6/9QiRVOOVPQIF25IS4RPC6sU8AzwlUqZ9Z2WsDV6suCsVIeaojp4xPOQ0d8O4SPRqQxhKFVb93e7r/2bBn+/XyDTltpxfQ== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id d8-20020a170906544800b00a381e72bce0si767269ejp.694.2024.02.06.05.01.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 05:01:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-54981-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@tweaklogic.com header.s=google header.b=O1hqOhci; arc=pass (i=1 spf=pass spfdomain=tweaklogic.com dkim=pass dkdomain=tweaklogic.com); spf=pass (google.com: domain of linux-kernel+bounces-54981-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54981-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 am.mirrors.kernel.org (Postfix) with ESMTPS id EE5521F267C0 for ; Tue, 6 Feb 2024 13:01:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1F67D130E3C; Tue, 6 Feb 2024 13:00:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tweaklogic.com header.i=@tweaklogic.com header.b="O1hqOhci" Received: from mail-pl1-f171.google.com (mail-pl1-f171.google.com [209.85.214.171]) (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 A6C8612F5B4 for ; Tue, 6 Feb 2024 13:00:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707224451; cv=none; b=oqmNZhvAtrWLirRpcggVPvwKiyoSIlQccQas4qiln0zwEpb4jwAgNrAdQ8O7PJRYEZKpZmc2UXE0IsKASpUlzo4/kMxGK7C4gH2eKMNzbx0uJBJks0OjWzip3ofnrs88kl4cwKccvJAwu22OIa7qlljNPs8q4FYon+wuXBhQGdI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707224451; c=relaxed/simple; bh=2A1nbKwdDQ7tKewCNcRe1gsXajnatEyAUF4Sd29ET2w=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=thu19NRcLFhjgwYh63/Z03rkh7tVW6jkgRPsI2FFbzWIs7/UHqKyaIGsU9cO4tKF45n0fP+PaXGaZ339+BzKlo56w4146eAnP8PU8cvW/PdSoyxyNQe0XwqzqiVu1wSo543PWe78/BerSmYx5AOlVVINBcrMF8+FFruUZZ1he6E= 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=O1hqOhci; arc=none smtp.client-ip=209.85.214.171 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-f171.google.com with SMTP id d9443c01a7336-1d76671e5a4so44644155ad.0 for ; Tue, 06 Feb 2024 05:00:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tweaklogic.com; s=google; t=1707224449; x=1707829249; 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=NnMGYg5SKIByePnZTVg3AFDTX9DCKuF3p//SMkS6JHk=; b=O1hqOhci+T+U0X4N3GlDfA0bEeRV8MXTxmzKOA1q5zbWIxTaqvq6I57nEKaJxBUJHA JdqSE+sTYZ+b5YzsduFDFJ0wHF3t1Ui785OtaC5l/DWGHnDM1T/bmUbLD2zX4qWCbcyt MTcjWUcIqAyR6wDjv1o1T4v87fB6keVdEsg010RI+/ZiHkORiB0/TjvU2+f5k3QJA4KD Cel9oe5lYecs2yWUVLHKFLXksD2Ik6xHMxcpbCjZf+QF8yinwcqhl4YdU/FeWP0p+UNx 2d5Y1+ewjVSAyVYcqsF4DyAPQ8uTmjc0e7sVRQexJ/2cyhx73ANorcOnqklzaJbouLIo bwIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707224449; x=1707829249; 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=NnMGYg5SKIByePnZTVg3AFDTX9DCKuF3p//SMkS6JHk=; b=nbxUW1HlVxw6WTs2vURmbnRhaoLZKZWzLLQphlVsUJ+vZ87tfckcPgGfMpvB5oExce LpTJm80QW0sw9pxhY8pD+qSV39YmfRnCdaBQIhq9xlisyMgEdwA9wtWsKisgiWf2zhIw a5JCNYDQ25sR8x6peHWU3Tfy1B9C4DtU16FerF/UHONj6dq7zhiYYPo+rXa4NikIvLEW 7Rkiv+w/m2EzN902PrDIMvWogFlVsvn/SmW3whJqZkH/OP4LaOPJKD6KUlwHgek5J0uj hTSIjTTBr6ZR/sTf1NfJxJ2t4t3+8WO7nzS0dw86HXPVApHHsMcDbqxQcSrfpoZgppWd T+NA== X-Gm-Message-State: AOJu0YzwKRzVJ4iKGxhljqVVLMVrv7mZE43mZINyOfnZtdsIGC8LXv1+ 4jBVCm+qyoh5Cb2/HiSpKsbjUXfa4DVJUyvx9dkerC1eOFS3xL3FTJhAVx19OJw= X-Received: by 2002:a17:902:f691:b0:1d6:fe15:b588 with SMTP id l17-20020a170902f69100b001d6fe15b588mr1608965plg.64.1707224448696; Tue, 06 Feb 2024 05:00:48 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCU9AIXsjlcEgmDluJXEvvPUxUvpeZXXo7NZU6blkj8DfKQmPdCgOZ4ErsncnBj8YN8jApgac3oVkDNGbI6oMp9YmBxU5yQDM0QrQLyk7uMZtKoyw2S5Fvha2EW58wzt0Pdt7WN5C+/aRzqoonOyBs61b6W4sDbRWREjI6wNpwVZ7+QKDRnY4wPBrR+1LfU8Dp3aj13pafNf/B3vjH1+lsLyHiHZG+lA7b93L384kiTgWHQIQeWzG9okNcGbddyHzqfpT8VikMOOvsEEtgZ3jFEkKWQTqXAEKvqLhUiqSp/zw13+2ZrrBJ44CR6LYavvSJ+z6JJcUv8+nPRklujRCiZxniVuY+zlk4TONFdUblBW+Xv8kk9M4MIKk4j6cJgqFwzALDUs0Lu+sNJls8g8lrZzUBF96ZFMvWUz79EEgM5uW6fkknune/TreThSdzf0jpTvR3N0CT5+mBkE0rQJbpX5MoX1v2pkfj/Q8jKSj/wnc04tJKchOBU3Tm6LFiCG2r8A+ZaliHajBc0pubMHrBoouWbJE7nYrnJQ4CtJ7Zuu3ahLOvOb7RVKN3L2qETyDB47wda7 Received: from localhost.localdomain ([180.150.113.62]) by smtp.gmail.com with ESMTPSA id s1-20020a170902ea0100b001d958f8ab2bsm1782167plg.107.2024.02.06.05.00.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 05:00:48 -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 v6 1/5] dt-bindings: iio: light: Merge APDS9300 and APDS9960 schemas Date: Tue, 6 Feb 2024 23:30:13 +1030 Message-Id: <20240206130017.7839-2-subhajit.ghosh@tweaklogic.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240206130017.7839-1-subhajit.ghosh@tweaklogic.com> References: <20240206130017.7839-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 --- 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