From nobody Tue Feb 10 00:57:53 2026 Received: from mail-ej1-f66.google.com (mail-ej1-f66.google.com [209.85.218.66]) (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 8B02634D4FB for ; Wed, 24 Dec 2025 15:30:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.66 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766590227; cv=none; b=iSpcjeSKwLH4JJ9F4IVAlo4CbppsGQW1WrnubQrgZaBujgRbNha2x0qBMOa2CQYRK9y3kinO1yLsDPuxIgYv7nr1YPeR+uDOBC/5g182QztD6Fw8wp6QAyEo7w/pBYend+zFnOGnPesBlrSdah7q7v6p8jaeEvomneefCYowBQE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766590227; c=relaxed/simple; bh=/XFBsT6bOPJdMrFhqM2OxGpyhSJ8PLQtianBu5UavFk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=ECLixs+Clnmwm3qoD4fhuNaiDT/bkdA/RPKukdLKHYkIjZsJK9UY9UfTZ5RHb/KhChjaIHb80qALC2rVT7BLkNFOXlddyLkhUiPDErvyj82TH0Jxp0SCUMWk8gJhDX/96cYvS4jkhJz+2oMZGL2xtAP30v1/nFSa8Efe34X7+kk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=osyx.tech; spf=fail smtp.mailfrom=osyx.tech; dkim=pass (2048-bit key) header.d=osyx-tech.20230601.gappssmtp.com header.i=@osyx-tech.20230601.gappssmtp.com header.b=A/wJHKhm; arc=none smtp.client-ip=209.85.218.66 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=osyx.tech Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=osyx.tech Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=osyx-tech.20230601.gappssmtp.com header.i=@osyx-tech.20230601.gappssmtp.com header.b="A/wJHKhm" Received: by mail-ej1-f66.google.com with SMTP id a640c23a62f3a-b7ffbf4284dso767210866b.3 for ; Wed, 24 Dec 2025 07:30:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osyx-tech.20230601.gappssmtp.com; s=20230601; t=1766590212; x=1767195012; 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=IPMvizX4aiSFiPWN4zq9M2mNvcGpcgi2Bqmh2GmQ0o0=; b=A/wJHKhm7MivOSM84/8zfhUGJFj4torlL2+gzn1g76PJrSAQwqU0HUWwgn90CjLmhp kvyoQJMNCljwaRCQxYjb74wFgpsuQYi1mXHpuHEiET1Qon3+ZW1KihOn4noGjiQPHcDk 0I+HBvlk7fSGoIELowGleCFhf7FHRI9HKSYnm0blC6QFWCtmmsbDQbEsgfRfgLHBS5l5 h4N+MyVOYQB5xJdG0mVWk3Uu8LD5N96VYFDPcYoLNRwiQZiQu56pX/lvRo2kcfL5xTqd NC7b4hq24dBynDaPmddbGhoZmwkNvYSqq55bIQuO0kwNSqyFDDutg0T6R3v30Hzey+jM QFGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1766590212; x=1767195012; 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=IPMvizX4aiSFiPWN4zq9M2mNvcGpcgi2Bqmh2GmQ0o0=; b=ZPLriAtQ4aDJT5xye4/FTP7SPQQuuj3KZ0zi/I9+T2aKQ2YvWJg0qvVAT2H5rmM1pG P3xpHX0vm+wy173M0GRC76fKPJ/xXAmBp0d8WoOckMKCqbgHL0uIjG7ypVA4oBqJTVl+ vtpZ6CwE570UiRxst3bpWDCox+QPtc2bxfXrYkl69fHh2MHWBJP3869aAYa1y4HxTpav c+Q36TZiYNN2TO1wFzBLH3PBLzPWB7vwAoOz+TxCLBrBb+8MCItNJdDDgFTMLey2i6kX 1+wok4sKrnb1HJXM48PPOqXYBJfCj2Ko8VwQQXka0CHNYxzuRecJlDDPpfGgvc4UB3Iy 28Bw== X-Gm-Message-State: AOJu0YwGWIqK8xAbfYEPRdoCKy8Cc+mBucP7dLihmsJ0mFWHpgYMw8cU dUMcVDy6W5MrKD8xIWoFnrmYBHZgY8R2wGXsqNAMqAegeL2HxaCaSUdySn1KuBNfzv6PXhhPDR1 y+EiTDTRv X-Gm-Gg: AY/fxX6I4khrv6N/5rll94dm7m5i6WYzcN5cH8FtA1o4QQKbwJLJVqSgUeojR9hF+Cz MDL1hOFQ64/D7sr8AB2cowujjwKLSIp3ZjXuYmREyLbU/lIeoQHBN5OKS6zSASOwxhNh/CyHitj 8S0yjKwh1ZD9nOM979qu62BBhZ8SdJLSbbilK0T9wJkjZXscEkxv05/HZ5F7Vin8mJymD5MUuzY ljgboFatf/AKT65y4AAVu0AAkady+qYkP15hlE/ETtMxLQ7pMsXU84c6UE7H2HNp8Xp4k9vTCtW dv7BY+Na6pHZ4lm3aYQexAaT5LJh8mvjAPUeL58Xiuc3YUTL06FFt6klQsCUbdu2AROzROEJKwt cV7OFyHjdRsRksAdIWmecZwomrUeom+s2H8oyxlhLoC4bI6bIHoo6G7KaQ5o6FUJpxIdmBUnOsv rK2Z9RS8wK19ueYolrrg== X-Google-Smtp-Source: AGHT+IHwTgoJWLEso+A946j2blMKEWqz6uE5I08Gnk6feDE3r7jM3E2NW/e7qsJaXZv87W/jfEeMvg== X-Received: by 2002:a5d:4e46:0:b0:430:fe22:5f1c with SMTP id ffacd0b85a97d-4324e703af5mr14626447f8f.59.1766584386173; Wed, 24 Dec 2025 05:53:06 -0800 (PST) Received: from jp-linux.Home ([2001:8a0:f59c:a900:39e4:e84d:192a:5c5c]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4324eaa64cesm34494677f8f.35.2025.12.24.05.53.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Dec 2025 05:53:05 -0800 (PST) From: joaopeixoto@osyx.tech To: linux-kernel@vger.kernel.org Cc: ajd@linux.ibm.com, alex@ghiti.fr, aou@eecs.berkeley.edu, bagasdotme@gmail.com, catalin.marinas@arm.com, conor+dt@kernel.org, corbet@lwn.net, dan.j.williams@intel.com, davidmcerdeira@osyx.tech, devicetree@vger.kernel.org, dev@kael-k.io, gregkh@linuxfoundation.org, haren@linux.ibm.com, heiko@sntech.de, joaopeixoto@osyx.tech, jose@osyx.tech, kever.yang@rock-chips.com, krzk+dt@kernel.org, linux-arm-kernel@lists.infradead.org, linux@armlinux.org.uk, linux-doc@vger.kernel.org, linux-riscv@lists.infradead.org, maddy@linux.ibm.com, mani@kernel.org, nathan@kernel.org, neil.armstrong@linaro.org, palmer@dabbelt.com, pjw@kernel.org, prabhakar.mahadev-lad.rj@bp.renesas.com, robh@kernel.org, will@kernel.org Subject: [PATCH 3/5] dt-bindings: Add Bao I/O dispatcher driver binding Date: Wed, 24 Dec 2025 13:52:15 +0000 Message-ID: <20251224135217.25350-4-joaopeixoto@osyx.tech> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251224135217.25350-1-joaopeixoto@osyx.tech> References: <20251224135217.25350-1-joaopeixoto@osyx.tech> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable From: Jo=C3=A3o Peixoto This patch adds a Device Tree binding for the Bao I/O Dispatcher kernel module, which can be loaded into backend VMs. The I/O Dispatcher provides the bridge between the Bao hypervisor Remote I/O system and the frontend device model in userspace, offering a unified API to support various VirtIO backends. The dispatcher handles hypercalls to the Bao hypervisor, IRQ/eventfd forwarding, and provides a character device interface for frontend devices, enabling efficient communication between the hypervisor and userspace device models. The binding documents the following properties: - compatible: "bao,io-dispatcher" - reg: Memory regions for the dispatcher (multiple VirtIO devices) - interrupts: Interrupts used by the devices - interrupt-parent: Parent interrupt controller This enables kernel drivers to correctly instantiate and configure Bao I/O Dispatcher modules based on the DT description. Signed-off-by: Jo=C3=A3o Peixoto --- .../bindings/bao/io-dispatcher.yaml | 67 +++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 Documentation/devicetree/bindings/bao/io-dispatcher.yaml diff --git a/Documentation/devicetree/bindings/bao/io-dispatcher.yaml b/Doc= umentation/devicetree/bindings/bao/io-dispatcher.yaml new file mode 100644 index 000000000000..7795f55d3ff9 --- /dev/null +++ b/Documentation/devicetree/bindings/bao/io-dispatcher.yaml @@ -0,0 +1,67 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/bao/io-dispatcher.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Bao I/O Dispatcher Device + +maintainers: + - Jo=C3=A3o Peixoto + - Jos=C3=A9 Martins + - David Cerdeira + +description: | + I/O Dispatcher device for Bao hypervisor guests. Handles multiple VirtIO + backend devices and their interrupts. + +properties: + compatible: + const: "bao,io-dispatcher" + description: Device compatible string. + + reg: + description: | + Memory regions for each VirtIO backend device. + maxItems: 20 + type: array + items: + type: integer + + interrupts: + description: | + Interrupt numbers for each VirtIO backend device. + type: array + items: + type: integer + minItems: 3 + maxItems: 3 + + interrupt-parent: + description: Parent interrupt controller node + type: string + +required: + - compatible + - reg + - interrupts + - interrupt-parent + +additionalProperties: false + +examples: + - | + bao_io_dispatcher: bao-io-dispatcher { + compatible =3D "bao,io-dispatcher"; + reg =3D <0x0 0x50000000 0x0 0x01000000 + 0x0 0x51000000 0x0 0x01000000 + 0x0 0x52000000 0x0 0x01000000 + 0x0 0x53000000 0x0 0x01000000 + 0x0 0x54000000 0x0 0x01000000>; + interrupts =3D <0x0 0x08 0x1 + 0x0 0x09 0x1 + 0x0 0x0a 0x1 + 0x0 0x0b 0x1 + 0x0 0x0c 0x1>; + interrupt-parent =3D <&gic>; + }; --=20 2.43.0