From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-yx1-f50.google.com (mail-yx1-f50.google.com [74.125.224.50]) (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 ABEE7418A2C for ; Tue, 14 Jul 2026 21:54:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.224.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784066084; cv=none; b=t9LRJEKxxin7FQLPuEeMHabZz3syKeS76y7pQIHtwPp5FxUngIOD/mT3NJhrdWuvRcIk9CWEu3dlWtbTUjrLRk1H6OoaWNgEw+PHZwUUs1eO2eu84Tnz8khcVVovRq17bV5HLSyaQFmQZVIDbQaYzdAgRKGgylmiAYVH3WV/LXs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784066084; c=relaxed/simple; bh=2fRnUTnOxq4qo8Xgzr8H3mWLUn8au9hOu6H8KuFMv34=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=VR1ouyYCsBMWO8uOmUMPhmtSTjfYVEsi47rvvHfX7w1s/qNsMxrzuDf7QLAkSsEgN4mrV/C1SJPosmSWGTFqgZZMlMl8GtC/UGZQq+duu93Da1s72gTvA7I0hUe7pplB2pPEHD5iTMS79Z1VnwzS4ECJ1/5vywfr/A7xrfWjOMw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=IjiY2bEY; arc=none smtp.client-ip=74.125.224.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="IjiY2bEY" Received: by mail-yx1-f50.google.com with SMTP id 956f58d0204a3-667923d86a7so2467006d50.0 for ; Tue, 14 Jul 2026 14:54:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1784066082; x=1784670882; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=LD1fSzo5RQ5ZA0kbdHkEYjYhopbXbN0iGXXs945C6dg=; b=IjiY2bEYiPRPztNpzhpOBkpDsH3Bq0sBllQjP/wh7tMy1IVWaFPbPgVAvJSO50EqnX V9FWq0DPlDyMJSOe8BW/aCIkcobnpyFpYXgNZ9cqezz7WEL+MHK08ecunySjZsAT6wP2 GazSFTlf33c/Q1K1dFWDCGQUV9OjSCqQck+0Y6Zt2rvypprOdPTDVEOjAlYIDrssrlad phAhbJHPnpFzKXZTryoXsVcPxmxXYU7NPBjS6+p0/FHy+spdSZIO//VFO5IAMINvFU/i M5PqSZFecACUN3yY5brSOzJywX3Siyvx6bwXL2HDMoG8lLEwYqWcujBHLntEaxI4lpqm WK5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784066082; x=1784670882; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=LD1fSzo5RQ5ZA0kbdHkEYjYhopbXbN0iGXXs945C6dg=; b=e+xHx0RPRziOb4TVXRfOydg/mDXEsVO7RdA/3QNv8kQvGpWu8pcflfFCMdqwfsF3Hx cddv6vHiJpJ4cSUTRHkA+iWwOaA3Zh5YSO9pDMtB3GrQrWx+RKi56bRtSQqAsNkOo1yu HnCiKbAX2ep7f7giG+6dwJij/TIh7laQa7TympWd3fRJesZQCKhyppg3n0lJD/aZERyb BtdPBoHlvpi522moY78hTgqf1uvRi/qlGKgRwZjg/OCOzhXtvpbqhO8Swjoq09aDsUD+ xD20I8u3gWB23lV/0n8D6EMESghS7vGvWkqgw8ZZRXqAvRb1zMIPHYPA1ZLlT39/tcVB 0Nmw== X-Forwarded-Encrypted: i=1; AHgh+RrO44KAt8IJCkHay2aip0v278BaHzcevFn4wdWZAQJJsDoH8sVIK652betrADw1GrjnW9TNTu+L++5PjwU=@vger.kernel.org X-Gm-Message-State: AOJu0Yx1+Swm21W8uzWEWT394Wj5G8QyWK1eUNLTTIxdwyYWX4/ErWgO Z6J+K2JdHdLT4s0/Wr3eZ5epT/F00myHfaoGfLboerXfdWMBwo92n9E8 X-Gm-Gg: AfdE7cnw0Z47y/FE8t1MemW0tk9Qe83Q/eQUk9Mamw3T4msGEfRnkU39XVrX+Y+4dqQ W2rUU2xQf6enJuwFH1+yfHONQcjGZIU4i8U/7Xscl9xrX4ON4P/y2H6oPTfG6F6LB4m+tJPylkq tVr9AX+VAVkglYMbReUyRbOtZp1pln0hFCfi6G89Fphdonzqu1CBSVUVUKqMBll1eECrG4QGm5I 14AKYGdlC93iUfIKG+WGJqndrr+XxAGVgBKqUhyUDmlRGpQruJAKohoYwzjLeXLJg2BfTlRd49G Z2nXs2RAuAoB0Z9I1Abr4WEL5IC4gix8ytO4aMZ8i+nmDEFCbKliPXJM4kXyKzwmCzpGkDuobNA G5I570RQOltfneVu5t7BC7o43K64CXgUOnelTbcmuNplE/AYjGMWTdVwoC/zbhjXVeG/0hPOgn0 Tvi1DgXhwEep9ebYPXKpe14BeFoONScKn4dsGleEm6w7ez8stEAe1ujHQb/RE0VZFByQ== X-Received: by 2002:a05:690e:1581:20b0:665:2045:fe47 with SMTP id 956f58d0204a3-667c5a65848mr10794815d50.7.1784066081644; Tue, 14 Jul 2026 14:54:41 -0700 (PDT) Received: from localhost.localdomain ([2804:14d:4c64:82a2:a510:f4e7:1a8:cf71]) by smtp.gmail.com with ESMTPSA id 956f58d0204a3-6678775d505sm17359640d50.1.2026.07.14.14.54.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Jul 2026 14:54:41 -0700 (PDT) From: Rodrigo Gobbi To: jic23@kernel.org, dlechner@baylibre.com, nuno.sa@analog.com, andy@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, mranostay@gmail.com Cc: ~lkcamp/patches@lists.sr.ht, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kernel-mentees@lists.linux.dev Subject: [PATCH v4] dt-bindings: iio: proximity: move LIDAR-Lite out of trivial-devices Date: Tue, 14 Jul 2026 18:30:20 -0300 Message-ID: <20260714215433.41259-1-rodrigo.gobbi.7@gmail.com> X-Mailer: git-send-email 2.48.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The PulsedLight LIDAR-Lite v2 is currently described as a trivial device, but it is not one: besides the I2C interface it exposes a power-enable pin and a mode-control pin (the latter also used for the PWM distance output). Move it to a dedicated binding file. While at it, document the LIDAR-Lite v3: it is sold by Garmin, which acquired PulsedLight, and is pin-compatible with the v2, so add it with "pulsedlight,lidar-lite-v2" as a fallback compatible. Signed-off-by: Rodrigo Gobbi --- Hi, all, This was on my plate and I didn't have a chance to send this before. The vendor change is not a typo: see the discussion at [1]. Tks and regards. [1] https://lore.kernel.org/all/c39a2980-f5e5-44aa-9fd3-20e0658f62dc@gmail.com/ Changelog: v4: unify patches rather than using a series to keep the tree bisectable; rewrite the commit msg, naming the devices explicitly; v3: https://lore.kernel.org/all/20251102221643.9966-1-rodrigo.gobbi.7@gmail.com/ v2: https://lore.kernel.org/all/20250801224112.135918-1-rodrigo.gobbi.7@gmail.com/ v1: https://lore.kernel.org/all/20250701223341.36835-1-rodrigo.gobbi.7@gmail.com/ --- .../proximity/pulsedlight,lidar-lite-v2.yaml | 54 +++++++++++++++++++ .../devicetree/bindings/trivial-devices.yaml | 2 - 2 files changed, 54 insertions(+), 2 deletions(-) create mode 100644 Documentation/devicetree/bindings/iio/proximity/pulsedlight,lidar-lite-v2.yaml diff --git a/Documentation/devicetree/bindings/iio/proximity/pulsedlight,lidar-lite-v2.yaml b/Documentation/devicetree/bindings/iio/proximity/pulsedlight,lidar-lite-v2.yaml new file mode 100644 index 000000000000..60e60b7769ba --- /dev/null +++ b/Documentation/devicetree/bindings/iio/proximity/pulsedlight,lidar-lite-v2.yaml @@ -0,0 +1,54 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/proximity/pulsedlight,lidar-lite-v2.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Pulsedlight LIDAR-Lite v2 range-finding sensor + +maintainers: + - Matt Ranostay + +description: | + Support for LIDAR-Lite v2 and v3 laser rangefinders. These devices + can use a simple I2C communication bus or can operate in a PWM mode using a + mode control pin to trigger acquisitions and return the measured distance. + They also have a power enable pin, which can be used to shut off the device. + +properties: + compatible: + oneOf: + - items: + - enum: + - grmn,lidar-lite-v3 + - const: pulsedlight,lidar-lite-v2 + - const: pulsedlight,lidar-lite-v2 + + reg: + maxItems: 1 + + powerdown-gpios: + description: GPIO that can be driven low to shut off power to the device. + maxItems: 1 + + vdd-supply: true + +required: + - compatible + - reg + - vdd-supply + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + lidar@62 { + compatible = "grmn,lidar-lite-v3", "pulsedlight,lidar-lite-v2"; + reg = <0x62>; + vdd-supply = <&vdd_5v0>; + }; + }; +... diff --git a/Documentation/devicetree/bindings/trivial-devices.yaml b/Documentation/devicetree/bindings/trivial-devices.yaml index 435c4baab436..74b640c48598 100644 --- a/Documentation/devicetree/bindings/trivial-devices.yaml +++ b/Documentation/devicetree/bindings/trivial-devices.yaml @@ -396,8 +396,6 @@ properties: - onnn,adt7462 # 48-Lane, 12-Port PCI Express Gen 2 (5.0 GT/s) Switch - plx,pex8648 - # Pulsedlight LIDAR range-finding sensor - - pulsedlight,lidar-lite-v2 # Renesas HS3001 Temperature and Relative Humidity Sensors - renesas,hs3001 # Renesas ISL29501 time-of-flight sensor -- 2.48.1