From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f170.google.com (mail-pf1-f170.google.com [209.85.210.170]) (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 322E63939AE for ; Sun, 11 Oct 2026 23:14:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791760486; cv=none; b=LTbUM/2+9u4Y/ox20OiDHEefn97H7kV5kLwnCteVTF1mJ0I8LGC2NMAQkmKrq4Q1+N9ycugQ9rncBFMf080fHM5MBvibCIB7/LFOA3lzFRlf1x4NSTlsPGXP8v6saeaiZ3YvqueOxpWKpRnkJdNMLykETJcClni9PUzQ2RILmIM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791760486; c=relaxed/simple; bh=mY7Smke+Kwz6EOpYsROmGVCMz5vFf4N6N8Iv6WYNPIc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=VET2kVA66f81ntTOu0sWfHGwxOpyKUpQzrzvQandHaX86Ygm1bomDgrf9IvOkcIQQKzTRhi45b0In6kmeRPdC8UERWMEWl5S2OY0Hw4UGdhNRCUCsCiw1yiHdFjdH5UDyDX0muQ6nA0MCoINJUXWxsTH27/2X8dasE1hrstuab8= 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=EjDIH5Fq; arc=none smtp.client-ip=209.85.210.170 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="EjDIH5Fq" Received: by mail-pf1-f170.google.com with SMTP id d2e1a72fcca58-890d52c7c7bso1121194b3a.2 for ; Sun, 11 Oct 2026 16:14:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1791760483; x=1792365283; 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=BFBIQXoG2aeGkZzB3O/CnVUwpPtY8AGILGw7slNAgvA=; b=EjDIH5FqKkwkZGkN/wIOe6mir4IU5XwjRBX+NFeRwSrdZYhKJ4b60FnqNF045a8jYG +EfEpf+EhT/YLCNuBNPPBVCFbQT48cPFgsEWCaUkuzPovlg3eEw/IrNQTckNKM2BQKAZ +D30gIGEVg89X1RORSGp4hRFcbYKo9X0A90JWGTgsyOfCFpoONWzfCbIwxNDlGpZ/5vW djsNeYPpUH141jB/YWDywZfOsIVB6oDNhQ2wfGP3VgX6EIeHMuB60ckpWgHbkoCSssZj YUlzBGVMVQ1B2O9QnEH76ytsVLTXG6SBLwfSPbPoVCPkPVBJ5iYNKGTJ0MFDgsXJ/TnP Mi9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791760483; x=1792365283; 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=BFBIQXoG2aeGkZzB3O/CnVUwpPtY8AGILGw7slNAgvA=; b=ieuVsfPkLqYLPQ0lNvOcIXCEgqgsVaGP9qZ01Xl/RLpKL5Rl1To8lPju0LF6/0PF5j EHAla8/u8gSmUarJbdzfJi20ISpT83eF2EntQOZMW9LIWyeVPDsMST+cbIZMap6+WhLA x1xXGCSTk3f+dMgtxiWFdaoPyGJc0pQ2F3XErqg8BjSBlAHeB3R46rJ3QlUQoAcaf3CB hX9hrdhP4zEJdvFO2mYGay+ub931eufagtYhkmYA6pCCIGt1CiFvpSO5V7+JN7na7XXf 7f72AeCja/UKulab4FIWIGg97+RK1e6Mt/2N8J6cPk3vO1Y3EDrHGkI7D9BxnCesa5GR /RGw== X-Forwarded-Encrypted: i=1; AKwUvBxdrXxYgkvGO2jXfpT+MUKK6WuVPMSqwsUUeH8nyCZyHgvcexQsKcG3rIsqBtcv8+0+48Jrn6OOcqrba9g=@vger.kernel.org X-Gm-Message-State: AFq9FYIKvoPimzk9uvHjQ7fb3kpGiascAjaLfkOWFzV/vOpqZRb1EVmd MW9T9VujD5atBRO2LEBFQOHdMchJRRurfdjmoou6v61Y8deviRs0x6MH X-Gm-Gg: AYBFou3tYNjg17Q0zRx1QFcDxMKT41z0k09wqvegjzsj4PJTk0JPGi6ybpYl/+i44Ch JesR31xBttQKygweIs08iWJsJRpx6b56qybX+je4YWcO9+DsBdqczzBaF82x3JexFbgTbuNN4vX c+2BFTpeM773JKSBRGYEl9CdClYtIYQgkjXk8aKdsaaP00mjw8IgW9Qy5DHvJYR5R00Wo53Cd9I 3uuWMXV1CKtJgLOL8D1NpWzs6uW4AK/LgdBu/D+KR7JdQaTHH+S55rwUarWLUkz5z6ukExwyS7v 7s/H1UUcIhy/pG0NiqXLHlAfS3vJSUvB6NkJQMtL/atkx1z+yCJ5bjOU+E2GFBn0xMBTRQo2Asx +NtK1HEGBGq1dXfXErIEn0Elp/+HQiBw0D3EjPFhCnxYyRUCzvX3ViPtzXCttC06TMFi3gTvwvA xlLtG7QsHAtEcjGXKBu6rlm+v/wYPHCr1Zvx2ewiUNZXckk7UzHhPEWk+r5OQIHTSf5VMT3E/ih RE9XNFH0hGNR1jIJZMRWpfdeIvx/036omhQyQlf7AwkPqZABvVFegUcB8565irWvl83ftX5ObIf yGoXDR4= X-Received: by 2002:a05:6a20:e68c:b0:3e0:e513:3ceb with SMTP id adf61e73a8af0-3e16beacademr6278189637.53.1791760483534; Sun, 11 Oct 2026 16:14:43 -0700 (PDT) Received: from DESKTOP-G3E0OSP.localdomain ([58.224.60.243]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-896c48945dcsm3188917b3a.54.2026.10.11.16.14.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Oct 2026 16:14:42 -0700 (PDT) From: Jinseob Kim To: jic23@kernel.org, linux-iio@vger.kernel.org Cc: kimjinseob88@gmail.com, dlechner@baylibre.com, nuno.sa@analog.com, andy@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, neil.armstrong@linaro.org, andersson@kernel.org, prabhakar.mahadev-lad.rj@bp.renesas.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, corbet@lwn.net, skhan@linuxfoundation.org, rdunlap@infradead.org, linux-doc@vger.kernel.org Subject: [PATCH v11 1/8] dt-bindings: iio: add Open Sensor Fusion device Date: Mon, 12 Oct 2026 08:13:33 +0900 Message-ID: <20261011231340.42885-2-kimjinseob88@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261011231340.42885-1-kimjinseob88@gmail.com> References: <20261011231340.42885-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 Describe OSF GREEN as the current hardware model with a generic OSF host-interface fallback. OSF hardware variants may use different sensor configurations. A model-specific compatible allows future power sequencing, errata and quirks without changing the common fallback. The current Linux driver needs no GREEN-specific handling and matches the generic compatible. Sensor inventory and protocol version are discovered from runtime wire frames rather than encoded in the compatible strings. Assisted-by: LLM Signed-off-by: Jinseob Kim --- .../bindings/iio/opensensorfusion,osf.yaml | 55 +++++++++++++++++++ .../devicetree/bindings/vendor-prefixes.yaml | 2 + MAINTAINERS | 6 ++ 3 files changed, 63 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 0000000000000000000000000000000000000000..c180c6e41008ee9443411a88c234ae1c19b8de2a --- /dev/null +++ b/Documentation/devicetree/bindings/iio/opensensorfusion,osf.yaml @@ -0,0 +1,55 @@ +# 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 Open Sensor Fusion GREEN sensor hub and its + generic 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: + items: + - const: opensensorfusion,osf-green + - 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-green", + "opensensorfusion,osf"; + vcc-supply = <&vcc_sensor>; + }; + }; +... diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml index ba2002969373433b1f48118872c46cf7bcfff276..0ec4e481c64bc0aac8937c4fbd0d96dbb359b0fb 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml @@ -1267,6 +1267,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 3a2dfd1a4fd84ccb068332035f054ac77dada814..edae5bf594fc3c72fb39e14b797c7b2eccc11471 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -20537,6 +20537,12 @@ F: Documentation/process/maintainer-devicetree.rst 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