From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f171.google.com (mail-pf1-f171.google.com [209.85.210.171]) (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 3F65646A5E3 for ; Sun, 11 Oct 2026 23:14:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791760485; cv=none; b=gokD83BrjSYE1eVExckJt53vdg4Azdgx2GlILVgw7s7qfZS4HOUkmZUsYEnxIGqmJaNDhsDz1E/eEN+PJ32NujnEUMq3xwIS8z3auCkj/Woi9FrMOrjKaD1LdTqYisMG8WhCk5EKT9fkpmkFCSIOrcg3BazY/mr7pH6jCV3SwGc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791760485; c=relaxed/simple; bh=mY7Smke+Kwz6EOpYsROmGVCMz5vFf4N6N8Iv6WYNPIc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=JGoJTVThDHPuTpDaOJfL1/KEZP9Ca837ynejAXacuha3jPOSm4VlIHp6x8qcMQxLS/xl2mY/RicOrlr2qiNyyKTNSH/CYfZPPRmxy1b6Pp9Gn5PuPpxxULipucnFoqFoEkXJWAgMiXC5UuvHOhoJNy5Ae5k7ZmfhUHaz3HKfojs= 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.171 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-f171.google.com with SMTP id d2e1a72fcca58-884062f3296so922854b3a.0 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=KGJmGjNKxVra6t7l/G5oVJKZVm0UGigcPBXsPDPOYbgT/tf78oA4fauGI16BLRb1Kk mD+Xi8cEDzjjMLNwfgT7A5aq9eIRG4DhoNTzoQceTmHWgAfj1dTwQDi/yFjPmlmkLfO9 /n0HNMUKcD7PqyQJpOSTkAzQGNMMCRlI0bneoJes5GSJlfMO7lfm6EsbMmiM6iQsWFSC AxBolRE2nanqQOckJ+eLZ7Q6NsD+g84Nz+UQSM5iSa16xh7L6UjPi6UV316rnxEEHX9i yRAToSYpc443DMUmoEXpRUde7JAdiMs9H5C4+21RWqkbYat85w4p7zDUVSW9WnilnMCV npdw== X-Forwarded-Encrypted: i=1; AKwUvBwEZPVKWypyT1fcqtSI2sd2vwvByEF9zTZVV+72quLTz+it5c2aTsi8hOINIP5c4Hxjmro/gMLDPXM=@vger.kernel.org X-Gm-Message-State: AFq9FYLif5PZ3qt2p9eAZFi8o75zRBGVuE5K/1NWj2KRQcP1Af0fxVjd FQ3HhE5Hqq6fFg5NO/kJHzETEBjGcBJQoC8z8+qiUHIBkWqJk3+DWgHO X-Gm-Gg: AYBFou0VSBcJ/36XdQQyz8rj4bc4V9iF/fJy26SXtJolhl9g4kEchdwloQyxjlXMFKz uILwXmBNm4tgX+vrToh27OgTVTmmJBXBUzEmyVE3JbMGSSM2iozZ5zsCVJbERucPeIIMp4aYlgb o+51i5Vxj6ioNeSOKPV3QxzNu1rNZBT3HPY1kTpH8oV6wUn3oy9y6SEyQv1n+nhJj7FaLvn5OS5 rdTRt9vRJlCUExBsbx5tOKJ4bLRz6lcthEEpV9t4D6wnBFMY3UoNZ/Bo3sR0VcKnBAsJhOIleO7 cRE/o2nHSeSQtRvK9yUsH8OQkSdMV5KKhchQG4l0aAvJ0j6Vh3ZfIHr0oE0/QOhtKrNjZP6+zc6 r1FQfUlN3J++KOlB8H6/K5cHLuDKUj08hENqYY8kVX1OTDIwlhn0UsY9zKQRxAqyykyPynsrXJe nN4mwYeYVK844G6l5TuXKiJo59loHh54ziojD9PT+KQneDPnH7R1s3ARyMtGj0L010yIAHZfDb2 G3Cr5ptZce4WLP9PfLnPAcc+Ev/D6JltItnMuW9XQdAV4KjFdPnoDoAhhV9JzUZWOOq1N2tj8Hd KVrE/xg= 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-doc@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