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 6EAC9342CBA for ; Mon, 10 Aug 2026 19:21:46 +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=1786389708; cv=none; b=lH7j3vkeh8m4MiAtB1jGKJQ43JIGiGyT20gCatm0Mxpb+teQOodg7xEhEBCwWIo3N/ZcM66XcO0rUqxzTCqG8IzXIYa/cxF2WipTHGSuFxp2whfta7IgcjTqt/GWWuhhh1cj6Tw2f0xvWDEuW7fGvbgi1rH3Lbe/T+IaSycHn7o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786389708; c=relaxed/simple; bh=uD1oO4cs8uZhXoXFc8b/g7W+blWteUgwWte21V3SUJY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Lds6obApyCQz/1wsXcHCJsfzLKfE5Tp9Hfnf8oBqjl45qhPkgCBG8FVAvi2MtvA4aCiH7OtP6m6GNRpBIqdwq+oKx67Lv8J1DVrAbvMaI0Zaa/YiKl0P0wBiE2DdSkF6SWiXclbaKsgc/Bw+sNpbuUT+4eVp89Brx65Q2ugUv6c= 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=Dr54znNp; 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="Dr54znNp" Received: by mail-yx1-f50.google.com with SMTP id 956f58d0204a3-664db84f074so2828237d50.0 for ; Mon, 10 Aug 2026 12:21:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1786389705; x=1786994505; 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:content-type; bh=EuRXCZdD9fwaj8LGoLIYzfFtr1/F5wEoiyIlug7kGCM=; b=Dr54znNpnJ9lSnX/BPN0mrLom8wrblMKURKpffQ6kpe7zumzu6wzfeaUVfmRlHiaaB 1Htf2+Iji5VHNiZR75CLbioHeoJSev21d1oGxo7tCJ9iz2pFzKq1/pWh1q9qWsAXGh/2 yC689Wg3CtYL/SRlTYe89kyTNN/OY9TaCXNGyulm34nDApXGjrsejDgMfcXvvHLjajhO hcsBFdNGppqPEXL8sF3ty5Gn479xqznxj3gvb4hHHc3eQNUq6OK0yCH3cnP4EarTTf3y CL5Caq+PU6WUbhg1t/gfilAnUegeN59XrDbvhSa5l61Ijmh7LwjQjVaIjUg/nxMXLgul 7WVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1786389705; x=1786994505; h=content-transfer-encoding:mime-version:references:in-reply-to :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=EuRXCZdD9fwaj8LGoLIYzfFtr1/F5wEoiyIlug7kGCM=; b=Sx+QJNZpiEjurc9MF7UE/DER/oFsYN2Jpq1EcqBvP8vUA3FpYYWB8OcD7qzNqNRWoB PAtBy2IsDmfYVXj9FnI9L1oLNXjvWTgotkFm3vXjRb0f6gnmb+kY0+aQzR5snnl2amER XLiW8zZ9N3QTbWhEaTV6nxHW4zDZb9xHOuXLUelGMenGtz2eNWzZC+vE3rluRIR4zVH3 QqOTa1/iVbPqKZnChTUkKkmLUet1pWUzcmWDlK7a3AkYETb61okGViWwiEK+YSAJ6+qv b8IPu9yemKO+LV9lff/vMejXQQN1i8EvOlcKaTFep+0Mz4X6zPalk6HlIrZ2NLrhR+fT f9QQ== X-Forwarded-Encrypted: i=1; AHgh+RpZwnZRd5RgeQWCZm9yEgchNsH7TVa+tFnQYZ8pkmS+2alRAitcE7s2D2AY1c6w0rbMvUUrI1gxJt5Vq7Y=@vger.kernel.org X-Gm-Message-State: AOJu0Yw5QilHgaEeMigBKMHDEe1YTevHwHCtjDv0DO9+CFqdH3UqD7Fy 1WKKmQwEXQC8HK72hV8pkC2qeflBjsImc6kIbdR+IeYa/e4WRcSsxQmT X-Gm-Gg: AR+sD135PNJI6yMW9diqU7kBzPBCYJtgJt3H+9p+PPTx2h6uLRx0a5ZcP/bRKkejMBw B/54gLac9yCPXwEaFHyzUdPWZUL4OqFDXY+tYVZTjwyoF24yd05/DTj1jUbUZ9AgyRw+CTgbBQm /PrnB1tYZ3o3dBjeak9zvuw0yYfqddf4fIwAVoscTP8DRClu3+kjLrfQyr/xXx5J+ruyLwNRCjF pu4PIu1g6NYpTEr2UMvjpDxWSymuh504DkBnaIwkQ1UibwXqORmEBtg6+aoqhslo9pM1tYStQWl 94eIOaAmckqh5+Aatte4t9xk5iQPti1Ul0olAH+qB8RMCw/sGAGZ+yVJQrdSOhiyMYtbn2ijbQZ NdiTJpQ8dIS2eufcCd50M/mN8GTmHRvQLlap7JFFGHtDBEZX2uN80beExfvdXxaY7UehfUX0Ah7 YgeC5k34uMRYDyByIhtN4wvE/2NDxEgwDsEdjIv55wafwevMR/qPLCpoOc8J184Vk+YFaPfj8nT prOyaNNbnLfuKddru2iwmpYhUzYxTFhkja5NcWZgzGYDrhyZ9rz5Pc= X-Received: by 2002:a05:690e:4850:b0:667:b57b:8689 with SMTP id 956f58d0204a3-66b122c09cbmr2012592d50.15.1786389705290; Mon, 10 Aug 2026 12:21:45 -0700 (PDT) Received: from localhost.localdomain ([2804:14d:4c64:82a2:5c54:b9f5:beef:8bf4]) by smtp.gmail.com with ESMTPSA id 956f58d0204a3-66acafa90basm6928863d50.16.2026.08.10.12.21.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Aug 2026 12:21:44 -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-kernel-mentees@lists.linux.dev, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v5 1/2] dt-bindings: iio: proximity: move LIDAR-Lite v2 out of trivial-devices Date: Mon, 10 Aug 2026 16:18:40 -0300 Message-ID: <20260810192131.153495-2-rodrigo.gobbi.7@gmail.com> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20260810192131.153495-1-rodrigo.gobbi.7@gmail.com> References: <20260810192131.153495-1-rodrigo.gobbi.7@gmail.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 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 mode-control pin can trigger acquisitions and report the measured distance through a PWM signal, entirely bypassing I2C. That usage is bidirectional and non-cyclic, so it doesn't map onto any existing binding for describing pin behaviour, and is intentionally left undocumented here. The same pin can, however, also be used as a plain status output while I2C remains the active interface, which is described through the new interrupts property. Move the device to a dedicated binding file and document the power-enable, power-supply and interrupt properties that trivial-devices.yaml has no way to express. Signed-off-by: Rodrigo Gobbi --- .../proximity/pulsedlight,lidar-lite-v2.yaml | 64 +++++++++++++++++++ .../devicetree/bindings/trivial-devices.yaml | 2 - 2 files changed, 64 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..e19c8d166b81 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/proximity/pulsedlight,lidar-lite-v2.yaml @@ -0,0 +1,64 @@ +# 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: | + This binding covers the I2C interface of the Pulsedlight LIDAR-Lite v2 + laser rangefinder. + + Besides I2C, the mode control pin can also trigger acquisitions and + report the measured distance through a PWM signal, without using I2C + at all. That usage is bidirectional and non-cyclic, and is not + described by this binding. The same pin can also be used, while I2C + remains the active interface, as a plain status output signalling + when an acquisition has completed. + + Datasheet: + https://github.com/PulsedLight3D/LIDAR-Lite-Documentation/blob/master/Docs/LIDAR-Lite-v2-Docs.pdf + +properties: + compatible: + 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 + + interrupts: + description: + Mode control pin used as a status output, driven while the device is + busy performing an acquisition. Can be used to signal completion + instead of polling over I2C. + maxItems: 1 + +required: + - compatible + - reg + - vdd-supply + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + lidar@62 { + compatible = "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