From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f176.google.com (mail-pf1-f176.google.com [209.85.210.176]) (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 08FA61B4156 for ; Tue, 7 Jul 2026 01:46:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783388770; cv=none; b=ky+qWbds5rcVDTC+s+oTo+PuDELtsr+8H4o7Ks0PJpBIJE+rzOI1XGHZj7v1XCLN1tYpHK04+KI2JFDbJmCUo0yipncYQ7mmeHM98+AvLNtzy9P1dZq7nJNHy3z9TwL8Sb7fedcm3yAcdi0dI+vm9MEpBIbZAmrZqQqCUN25WMs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783388770; c=relaxed/simple; bh=vgU8I3i5fbxFbPui0chOgO4hzLDJFniEdqgCRKD2a+Y=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=sVCkGAFOhXBWmNJlGeLEycxmsE3We5QtRNW92lEe1vb/JXcKCIW8HJAgeloGjIG84XnspqnycPrhOBUIx/8C9apaTVa3+Ngli8YRypj2E8gnwLxta5O9SuVcCZQBxInQGIp3mOYxt6MlJng+f9hLuLQsijMKJP+a6DYuoOPr36o= 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=b4jsgsw7; arc=none smtp.client-ip=209.85.210.176 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="b4jsgsw7" Received: by mail-pf1-f176.google.com with SMTP id d2e1a72fcca58-84592b55832so3569467b3a.3 for ; Mon, 06 Jul 2026 18:46:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1783388764; x=1783993564; 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=l0i+/j/bfcPk03DKuYUjCyKBjIDP+ErpyRxJSaeYrl4=; b=b4jsgsw7h7r0KtiseTN5H/mPMExscEjyMwn3Ob2DURB+MwixL99Pn/cugRiQRYJ8Pm FsbLlCTdn92VCZU+jUf74JLEetemMgxFe/Mk3eR1EOGCcY7PRgm4hclS4Yuh5B1eLN2F Cn00naFcfjMkgqk3mfKp46per8RnWEi18/eF42gka8eWQcd6aiX060DnHpPDYMhH5SbL SaxswauXOsWSouI4cycDZSKkgpEfJQclm1/pIee58sPTI7KFiU/sJoWzI3WxFwhB0b/K 2m4VZ6/SiX3UXS+/IcBP0b92zYyvk36OK2IwZUdyzYE2713G6JE2F0FKDdkFWVtsvTyc s+RQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783388764; x=1783993564; 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; bh=l0i+/j/bfcPk03DKuYUjCyKBjIDP+ErpyRxJSaeYrl4=; b=dsqPO5f00ESUAivRRwfbFUs2+BV9xlC5vr2Rb8jNQBID7o5IF6LV5Tc2PgUJxzDYZ3 dTDtVFB9LvcctBwICaypeAJsSH836603/WYiTd+7c+nX2OtLxTZ7HxrgQAvAnEHh/gel xl3v1A9RFWxfp5G8/JerQNGdWK481vHDlXG2Y1deiwuFEbURQrjRo2JTOm00VuLVMjcg FHYBLFJ4pVC9M2Y0QDnSwLADwPziCAs+mO+niEVE/39OEDhJ20M7eBD0NUHXpMmKOx54 IiZliPci/pQ5QdHyXNFGWiZCR6f7w9HWe5BJRmOji6RQM0RhXf71fdhox8djhNL3e7eT wn3g== X-Forwarded-Encrypted: i=1; AHgh+Rohij0FyFxpnGSsTRjSpbGTwhs5BdwfbEU2uDsYBohrpmBiLueNPIw//oiOF035LMW4kEwmLndUEkE=@vger.kernel.org X-Gm-Message-State: AOJu0YyxSRgTDisBW3IXNy8UWcuSxI9i4yB/V6VqhH+SFppDGk5+qDn1 17SfkafFuZrCg27IrnVDTKb3FAYw3bgInKEpr3fv0NMi2yWo6SMQjv9E X-Gm-Gg: AfdE7cnDoYH4LF0USFquzt0pP1HvHsGcU5RAAgvmwKl+LQAo/8X+gHnCVVSkTIhPelO CgIPEyg8ks83j6TDv7YZAfVNLOcAM0S1CP2KK0DZcLZR252gqUxkDhkoVduI0zoCcBBtXBAwbzo QNTmGk6Y8bfXuBrwToC5Rwx1A7YX/ANS72aQIMIlgf4X274gSwVO2st+EyOGZXUA7Fm4mP7MAFk vWhnFJ8dt+TZBH3v+P7ly/2uhzdlUq+uHsC+VKbjpc7c4ma2GIxWfg/GF/zz/h4y9QvVMXIbngO nl8BPuIA914Jiw82IhZR1mBzatvuK/YWd/7CdC66ZLvXYpsnrVx9Ii1cJuCQpRH6VUxoJOXymTL ah7rlugZMnMbs1OHycPmFaB+yqqwyQV8ReO6ZB0aA2xlbkAS7ASJhar2WL7tBUsL4o+/H3MTi0Q z5gEMEGC0YRDMMcMu+duSZNDDbawqQFzpJAvWA82G6HfJtshy09gZIxFHvSw+1DLUaIBPKiySPe Qmgb8ymhdZKJ3rL1ghAZ9Ewt/Fi X-Received: by 2002:a05:6a00:b83:b0:845:344f:ef1a with SMTP id d2e1a72fcca58-84826be9d43mr2994044b3a.15.1783388764346; Mon, 06 Jul 2026 18:46:04 -0700 (PDT) Received: from DESKTOP-G3E0OSP.localdomain ([112.172.255.242]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-847f6d4e741sm4645653b3a.28.2026.07.06.18.46.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jul 2026 18:46:03 -0700 (PDT) From: Jinseob Kim To: Jonathan Cameron , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: David Lechner , Nuno Sa , Andy Shevchenko , Andy Shevchenko , Jonathan Corbet , Shuah Khan , Jinseob Kim , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v7 1/5] dt-bindings: iio: add Open Sensor Fusion device Date: Tue, 7 Jul 2026 10:45:21 +0900 Message-ID: <20260707014525.1015-2-kimjinseob88@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260707014525.1015-1-kimjinseob88@gmail.com> References: <20260707014525.1015-1-kimjinseob88@gmail.com> Precedence: bulk X-Mailing-List: linux-iio@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. 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 000000000..399839082 --- /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 28784d66a..88172d4a4 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml @@ -1237,6 +1237,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 c2c6d7927..e4df9d8dc 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -20011,6 +20011,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