From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) (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 B0BEB38644F for ; Thu, 20 Aug 2026 05:06:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787202403; cv=none; b=Z+8j/7zBnFhSLuql/ssxJvQs9QTXbJak4QAleEu20oOKWDp+0/b2VMmTUyoPtu3tpC/vyz7yCZTOYqBv8jnnnjTmhPVOnpj10XoOq5wTlR7w3NmWV0N3hIQlzGqhBP5UgsKMkiyPCSU8vtJ4ltiKk2f7hNZInajNmXV9s0tPbSw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787202403; c=relaxed/simple; bh=KkxZzMnZsUYISSTdErOkta5WRXqEbFAdRVIXpnFjHBo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=kL0gnwCxDv1T7zdISG60bNv5+Tfbw7FO5zSPeTw/RQHKryNqdEoa9nK7dQttezkYTy2biVZlaEnLMXGJwhCMhgtz0kcZfFtvoeT6neVkrmYuBHOvxwmawe3ouJIHOaXCrAXzupraDMkm//CUEYwyDNp7GiiXWjvf8xMIro8ZiQ8= 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=lF9OhIR0; arc=none smtp.client-ip=209.85.214.174 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="lF9OhIR0" Received: by mail-pl1-f174.google.com with SMTP id d9443c01a7336-2cc891373e0so21821975ad.2 for ; Wed, 19 Aug 2026 22:06:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1787202401; x=1787807201; 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=Ehvq9I2NEQVnVUVkqXgo8ZVG0AJoS+1+bAWaF+/RoEk=; b=lF9OhIR05pc/wrf/QVX8xxNdO4nX59FwEDB7GuDD0LzL+A3ToGsIgeEuM+wPZ7+CrN Q5Wqi1kIhnA3HU+In+l0/35zw7mB2euY7O6TscAvs0hjuV7BnmGuhUYjATGrb6LvFgc/ HIDQQnp06acgUSwsLXc/aDztA45j1A+dXe+28z5ljgLJT0FkIoWJi+PwEPSo2jc1Dafk l/+/xviqVv7CjPpQPXmpD49+sZMOkgTRnO815p9438F41zH9wbSOZNO5w9EMz/FvMa1H oM8yrRd+CdKtCP98/00sUCyFMYkFtCFlIYNDUPD+WKkERu6kPdrQXjMiTLHWwWXPtOq5 WVoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1787202401; x=1787807201; 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=Ehvq9I2NEQVnVUVkqXgo8ZVG0AJoS+1+bAWaF+/RoEk=; b=e+ZIaVZVnzsAK9uXTNQKwJhLKeRhlbM51kQZ2qzMSBDMlCUgXJy/Mq897mvsZCccld bnG0n1KPoIyWpckvzsa6uMSXDfCavHYM92VTwm2ObBg1Chb3ddszjVBju0Fpq+2RMVuP 0EOZ0tE31MOiVc92Qa8LACdlzaXSPPR4J5AzpQ6js/g+Jnu3n+yHtN2Cyc5WGZeZ866h YRHHzp9KIDPrcbl4f2m9VlBDcRHVKJXxgOby8np2GxQ95/E+F+2J6xe2zHMk02bq4WsB p7dO4FtTIOuM15RY95OIb2UsanVHPWSxG+9qMkoaOBB5RHckfkVOL71NP74vVbfuKIOd FaAg== X-Forwarded-Encrypted: i=1; AHgh+RpFr7AtBL4Px9vjfm3k+eMT/W0biOaAjXGv5YUj5GSWsnuHYatdwMfsUsztvTwK1CuDoMcadDt+zcmkGeY=@vger.kernel.org X-Gm-Message-State: AFuF++mXnEyDpCwHoN7umfzgeMxVDpMllH6arIAOW40NkAB/TL5SC8rd NGYPdhizhePBzC+W1TjijjcipanV3sqXqVgV4O7QIyQVeLTQ1aTqwRNu X-Gm-Gg: AR+sD10CYHAMnS8nrP9lc1a+9NiWz2VDTEp7DW1+PnkU5RCJYw7NYnjeeiB2Di+bIPN d8Iu/uicZHqEozYbEazg/d2zxfo9WT6YyxnLIikpp0E8hpMZlyy3qqopujcIhCFNe1Z4cZK0ees JeRlnJ17EMSiH4B/GgFkMS/qSM2SGcJUfWUg0zXNGmT1ADnkkY4XFkhUl0W5hpNhd20g1QXDwcm ldk721KI9FymwnJA6Ho+peffa1F9uBiocrg5sR1V70dphPg0oXBAgyL9Qh5Xq04AT+zyJzA/j1n VraQZaosmbQ6UdOVpXU7uBp1C8lE43LlDaFTi31l22DV6iRmIw1SIeh5bzHH9tU8gtb17nbHnBM frYMyIuw80NWWbdT8M6InWHzbJ7TwsZV0x5IUr7zB4Crp1NAZPraCT/sowHlVT1tV6r5YlXow88 9eDaghvdi1TYXKDvpXNaOzEHb/Hm+ozIjVRKFR8YBeMGiMM0B7DzwyidZGQCELXltXykVeUdqgp FeOQ2kUnugXHnEcYXUC3R1RBFCxVCk1+qjB4wA39U34hQrtWx6hb8N5oXKwVBHZnh75VeIzbxzl oF/Lx6nZaGo= X-Received: by 2002:a17:903:11c9:b0:2d0:8b28:517c with SMTP id d9443c01a7336-2d5fd5ff2e9mr175571935ad.3.1787202400875; Wed, 19 Aug 2026 22:06:40 -0700 (PDT) Received: from DESKTOP-G3E0OSP.localdomain ([112.172.255.242]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2d62d58a82dsm2040685ad.18.2026.08.19.22.06.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Aug 2026 22:06:40 -0700 (PDT) From: Jinseob Kim To: jic23@kernel.org, linux-iio@vger.kernel.org Cc: dlechner@baylibre.com, nuno.sa@analog.com, andy@kernel.org, linux-kernel@vger.kernel.org, rdunlap@infradead.org, joshua.crofts1@gmail.com, u.kleine-koenig@baylibre.com, julianbraha@gmail.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, grondon@gmail.com, devicetree@vger.kernel.org, corbet@lwn.net, skhan@linuxfoundation.org, linux-doc@vger.kernel.org Subject: [PATCH v8 1/5] dt-bindings: iio: add Open Sensor Fusion device Date: Thu, 20 Aug 2026 14:06:04 +0900 Message-ID: <20260820050608.5440-2-kimjinseob88@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260820050608.5440-1-kimjinseob88@gmail.com> References: <20260820050608.5440-1-kimjinseob88@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 Add a binding for the generic Open Sensor Fusion host interface. Open Sensor Fusion devices report capabilities and samples over an OSF protocol stream. Sensor channels are discovered at runtime from capability reports instead of being described individually in Device Tree. The protocol version is discovered at runtime from the OSF frame header. OSF GREEN is a product identity, and OSF0 is a wire-format magic value, so neither is used as the Linux compatible string. Reviewed-by: Conor Dooley Signed-off-by: Jinseob Kim --- .../bindings/iio/opensensorfusion,osf.yaml | 52 +++++++++++++++++++ .../devicetree/bindings/vendor-prefixes.yaml | 2 + MAINTAINERS | 6 +++ 3 files changed, 60 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/opensensorfusion,osf.yaml diff --git a/Documentation/devicetree/bindings/iio/opensensorfusion,osf.yaml b/Documentation/devicetree/bindings/iio/opensensorfusion,osf.yaml new file mode 100644 index 000000000000..3998390828cc --- /dev/null +++ b/Documentation/devicetree/bindings/iio/opensensorfusion,osf.yaml @@ -0,0 +1,52 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/opensensorfusion,osf.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Open Sensor Fusion Sensor Aggregation Hub + +maintainers: + - Jinseob Kim + +description: | + This binding documents the generic Open Sensor Fusion host interface. Open + Sensor Fusion is a sensor aggregation hub. The hub exposes an OSF protocol + data stream over its host interface and reports capabilities and samples for + multiple sensor classes. The actual sensor channels are discovered at runtime + from OSF capability reports instead of describing them in Device Tree. The + protocol version is discovered at runtime. + + Public project documentation is available at: + + https://github.com/opensensorfusion + + OSF0, protocol_major, and protocol_minor are wire-protocol details + exchanged in OSF frames. + +allOf: + - $ref: /schemas/serial/serial-peripheral-props.yaml# + +properties: + compatible: + const: opensensorfusion,osf + + vcc-supply: + description: + Regulator supplying power to the Open Sensor Fusion device. + +required: + - compatible + - vcc-supply + +unevaluatedProperties: false + +examples: + - | + serial { + sensor { + compatible = "opensensorfusion,osf"; + vcc-supply = <&vcc_sensor>; + }; + }; +... diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml index f88e595f7077..d746aadb994f 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml @@ -1245,6 +1245,8 @@ patternProperties: description: OpenPandora GmbH "^openrisc,.*": description: OpenRISC.io + "^opensensorfusion,.*": + description: Open Sensor Fusion "^openwrt,.*": description: OpenWrt "^option,.*": diff --git a/MAINTAINERS b/MAINTAINERS index 3c5084fec202..17652ba6039d 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -20293,6 +20293,12 @@ F: Documentation/devicetree/ F: arch/*/boot/dts/ F: include/dt-bindings/ +OPEN SENSOR FUSION +M: Jinseob Kim +S: Maintained +F: Documentation/devicetree/bindings/iio/opensensorfusion,osf.yaml +K: opensensorfusion + OPENCOMPUTE PTP CLOCK DRIVER M: Vadim Fedorenko L: netdev@vger.kernel.org -- 2.43.0