From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj2-f42.google.com (mail-pj2-f42.google.com [74.125.227.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 048F85221D7 for ; Fri, 18 Sep 2026 18:25:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.227.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789755932; cv=none; b=h1aTEySaQ3UmA2aOCxtMHvSEqdh3bY6WUmdjWOKLXirEWmaQuAxyDKj5HA1bGPczBnjozcvHP12Oq9NHgX/cH0WL0axoBnWVAg9qkshBiwaoYDxSOCAMF0qj2VGLeQerRK+3P9kpwAM8y8Ca1hBMY0NW8rM7sG+O5j/WMFJq7u8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789755932; c=relaxed/simple; bh=FwBxD9C+mtpAY3FvuFjka8wR/91ggAo5qXxEvQFo4r8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=dCK6+jteX33+gPzQdcmE+2gccPFMI4CTwVB3sGpv22dxz1U4jNZ85rhUyXwTeawvnMDIETLd995ayaz6WMCKNdQCoVxlVzOwX6q7bK97IcfRKW5TSgcB8A8edxzQ/j+iRJyjtMnhrUJ4IaRWdmQocprdzAT3O0m9PVmaik7Yj1I= 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=iyCT3uuL; arc=none smtp.client-ip=74.125.227.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="iyCT3uuL" Received: by mail-pj2-f42.google.com with SMTP id d9443c01a7336-2ddb44ad1c1so11305975ad.3 for ; Fri, 18 Sep 2026 11:25:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1789755930; x=1790360730; 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=JoyOc8CCoSjGkrWB9rL6T/fUpbguLCUgVumFgPvb6SI=; b=iyCT3uuLPseT5dBjBbZdM+cfyLZnZQ0dLpT7vuP0AMM+DEWtKF8jcCvhynuxtAIfs3 RSmZ7PbmQyzvBr15YeWLtFlObWV0wqBacjuTR9qNtd2cXJEOvm+5uOOALoQP9at7gq3N p03t4BKl1qqcxPWUrneO0y60ub5fhcItYk4HulNctIodwimT1JXFd0SHyOGp3xDGxmGm cu/HT4xaecAYK+pYmibj3vMGD+rozvgzkVbsbtycH4pZWLTk4tZ/owB5bqTcjw8H56oa /wrrKJu6F7D2imhV0/+MY8Y/a/Noajd0pK5+6iakfP5ug8JSuXPL9FmcuntI2S72+6ak H1og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1789755930; x=1790360730; 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=JoyOc8CCoSjGkrWB9rL6T/fUpbguLCUgVumFgPvb6SI=; b=TRIx65HioO3MBbWdXTbMjo8CmvC58uu/U2uywJMnvfLw1t1lbDKU4qXrL7A6pQcryp NCEo6xQD7xVW2fQvsdtBHgX+siwXZeB91zSW91LGhPH+XrXrDBPPY2+OXqZUrGOT+gqM DfKztTfFdhMb23kyk1bTpa3gzZ4ywsqdK4vxpEQzgD8WGxC+9o6knXSh28Z16nTHEHlq KG/i61UAoh16MAXHByTviEFmH3+bkaJLt7yya/oOuWZax/DdrqWX+2XwDkgl2MQdXdsL CIcFkWxopPRzYo2itmQa4futnubgxDc89xuUyGauTXQ23VUOJokg9nUwiQxnpUUDva3P FB6w== X-Forwarded-Encrypted: i=1; AKwUvByCcjo5dbEpOp1HQLqO74bD5jpKgVAtTQGQL8DtWhd1tTxqnYmKB4L4EhMGTsLYQ2okcHcqmt5YVOdd@vger.kernel.org X-Gm-Message-State: AFuF++l/sx9k6Zs6vw0SpqZfAWBolsXCTJaudtYi1o47xEANgb9eKQb/ dz+LYggDCvwE8qxz2au3EnTw0Eyr9D92IgF3WNRflZ+ENw1lswv9UwCR X-Gm-Gg: AYBFou06CxtSv2KUSBDvq7jREOEvvaDEtxeUyK1+JvrBG4Hos9dOTXyqMtb0EhaWeUu hZyeCZeMUKaT1gHqEPaZVjYsQ9uum+UkU64k+GRyRbw6Jb8c4MH+57I/H6GJFj2fNr8h9cBFlNn lyxFPVoNlIEoiXRLVhzEcUsD10oVGdpSTyB3pibBqc7qfcTrgkQzikCghtbXojvbDnrVPDuqO+2 91aiqft2FTv32tt3b03yFbjqdpIXsFLfsguNUsbBpO/9oQWuNqg/ufI4bg3ziOe5Kd1dR+qzuNp rJMAonKdPlnKs5VfP0ggOXyCGcY/y0sNdOgkYxzxiOhYeNWvTL07JZfAXiEwl0oPOaX5EPwEVpW 76Xe51q1GlbTwsiHiDBsAMAdKDIqIrIS3eVAxyKzna3wMdvTqrXIFKRCa+M5aT6HQjINHopEv2H pmS3QohS0GD4SJsNMw2T2zhww3W1rPWsUEGWPZnYsEO5xuqmEKI+yMe2nibRWmbMmo/FtZ8MyGW moRvEYQ2uMuEUvlBOBP+5buc+BxYuo7Re6qPp8YLEYaPi6lx6qcz+iQ5esVxaeOSY877Kd3M7mV mS8KJvpN X-Received: by 2002:a17:903:1a0b:b0:2dd:7549:39d0 with SMTP id d9443c01a7336-2ddb1b86d77mr59804075ad.18.1789755929744; Fri, 18 Sep 2026 11:25:29 -0700 (PDT) Received: from DESKTOP-G3E0OSP.localdomain ([58.224.60.243]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2ddc16b49casm871895ad.7.2026.09.18.11.25.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Sep 2026 11:25:28 -0700 (PDT) From: Jinseob Kim To: jic23@kernel.org, linux-iio@vger.kernel.org Cc: dlechner@baylibre.com, nuno.sa@analog.com, andriy.shevchenko@intel.com, 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, devicetree@vger.kernel.org, corbet@lwn.net, skhan@linuxfoundation.org, linux-doc@vger.kernel.org Subject: [PATCH v10 1/8] dt-bindings: iio: add Open Sensor Fusion device Date: Sat, 19 Sep 2026 03:24:39 +0900 Message-ID: <499ecb38dc0b58b979ca1f38d2d30b4ef56cf825.1789753020.git.kimjinseob88@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: devicetree@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 ba2002969373..0ec4e481c64b 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 214aeee7642e..9463b8111d52 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -20511,6 +20511,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 -- 2.43.0