From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f172.google.com (mail-pf1-f172.google.com [209.85.210.172]) (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 34F17469852 for ; Sun, 11 Oct 2026 23:14:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791760485; cv=none; b=He7Jp69zx/qBJTy/KWQ1EV4UPL+JFBkcIYVBWWQKmP5L3ovaDE0A+Wep0XlEyjHlkywMnoMCm/0ggmAW0oTzp0iOASD4yNpkg4CGD6T3dZGWFKhtHLNNZKrc/ro8tIz7AAbBy2DgESBL/LaqaVHz0OXtaDVh6f9ECPawipx6jkk= 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.172 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-f172.google.com with SMTP id d2e1a72fcca58-890d52c7c7bso1121196b3a.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=ButeX0oMADnXg1/fZbr+4Gq7TmgEuQnU/WY6jGad18xN8bYrw1+0L1QwNs2yFJZMsm 4bVP0hHrmM89Bclt+ck66/LphILXuwO9IEGEg84mmkcOqt6HlXZOikwQwD9p/4QWs4zk lbqyq7tN+GU0ywhGzyTZndTHpbqqwCHszLTmeXQQ0WQHbwI8COZ3Evh7BR3JjaQf6Hin u7kHmBrF+/5kiq+TRIrqT4bjIY2wjgQ8fkwET9BEo2bmGm/ULqWi8djg/EPkMToGxqkG unSLYGfMSZYs33GnTC5hXDs2jsXbc4eUqLy2nHEQDwGESxIqj8WBEhxKfN3YWeTJjcr9 HKQQ== X-Forwarded-Encrypted: i=1; AKwUvBw3hpqtobUFzYW7dmBfK29FTT/9F7dR20ZinXxZtiZkJBdOhSX5UCPlK3BKxy8HcJi248u0+UKLW/2N@vger.kernel.org X-Gm-Message-State: AFq9FYJwlsW9R8r+qPVb9eyKyhk7cSGkWnXlaXSNRUJhWadRLcQqzhe6 xA3Lm/ckT1RxkiI9BcwjACDl3GcVpvxsTukZ6OshTTGAh/kBouBvyMbj X-Gm-Gg: AYBFou3hnj3mTnRdDrMn/P3kWhBGaUFT3SbwISrrRsHSraW0myLcR78f4u/UFp8t/nw M9apCf4T7bnpQrb92m3pEXR3boioWgYmIxCrCwurMuYwIPXXTreTKG5o28cIzfzge1laSBW0dhG BF5Z8tXBQmHQKJ9zTTX2tWaXNUri4vey5oJQ5WtS6L60JnnhzzgfcCWUWwTHwqe2eiUU8baOTa6 OCotEcR926FWF65Md/Ljd64EsoVlvDyOv4XWN3D8MBwxrNw/00/6RevkYWdr0WqqfzqJ0nxCBIU 2bnqdvLhgNi5M3jTtIKiNc1GzLL3vTas7qNdR0K7x+7QN7Gtm7+4JK0CMljrm1D4BouXIQjqQls JaGDIknExxm/OWESFga9or+8+o/eB6l3RG9b61Eewf68r1njECZNNOyzS8CpICZmyDI3Kbb1Sx6 uf9MJh67ZjsZvwPXV62ZueNGJAj5HYJG5D+BMqWjHROb9jQ2dEyoFlSpL6K0CZ7o36f8m5l2deY EeuoSn5TGu61/zgbIbQwVTXMryyI7io1msYSYlcluOdva6+3sx0olP3rkaNHP1X06tDljRKD7GN qHKB8pU= 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: devicetree@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