From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from delivery.antispam.mailspamprotection.com (delivery.antispam.mailspamprotection.com [185.56.87.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9C9D24DE709; Wed, 16 Sep 2026 22:00:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=185.56.87.9 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789596049; cv=pass; b=a1QsvkOR1a6ADmINmlWArXjOoF0zey5wusqSWHqB1Yy1jF5Sa6t7AzUEg/I4dXhQOMI4YdHCC5j+Wr+8md4Z3Nzdi3R9gW7ln8eDHjO5GYB9w1qUkU5e0xrVn8mudEqHlCX+4ZQD2fUFqvNFPidS9y+tjlYiTmUzCuppshuaiAY= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789596049; c=relaxed/simple; bh=d39hVW/1aGsXzSQ8/+ghN24LusZ3o8IHDAoTyfwdSng=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=hzAFZ1DLwYn1+sC2fRmE9mQkxTo8LH+qj3diCbIqhyu9CDQ9+NnG1ljMpJte602lrY7DyZTDXvu4palCmgd+0YaFIEbyqTrpW1If3TjwsxfyaRAjyeGobAo/LSoJhTYByMoxHJbV9PkNkntJ1Ply0/Ki68J0SvuiCRS30zQf3N8= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=valla.it; spf=pass smtp.mailfrom=valla.it; dkim=pass (1024-bit key) header.d=antispam.mailspamprotection.com header.i=@antispam.mailspamprotection.com header.b=JBngK7ml; dkim=pass (1024-bit key) header.d=valla.it header.i=@valla.it header.b=SCKDfRlf; arc=pass smtp.client-ip=185.56.87.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=valla.it Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=valla.it Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=antispam.mailspamprotection.com header.i=@antispam.mailspamprotection.com header.b="JBngK7ml"; dkim=pass (1024-bit key) header.d=valla.it header.i=@valla.it header.b="SCKDfRlf" ARC-Seal: i=1; cv=none; a=rsa-sha256; d=outgoing.instance-europe-west4-f940.prod.antispam.mailspamprotection.com; s=arckey; t=1789596040; b=2d8CSG1va66bOXjzzBJxuv4Y8qiY69tYktFqzwF2suwp2qehOPmH7IVqU3LHIeinPPZHaR9qi9 wdbqCKSItaHHLwErSLmhP4wiaoadlIQJm0eGBiHBScJ4CmwPs58q3cInHCkWWYHZf20DVe0ACp S7x25M/JBhq11LCu8N1ybEc5B7BXR68/2cOXgeaY0clth1yLt39UgijCoDa041zzVbfILjtAXc vIcihK7yUasyshaVTWdErf3hUB1L69q3YBdI4vq223zqri6oH5TNJKQmsTs+u4uchAD10L44Ja upZY6oto/Afz2oh475ibbzNJzIXulN+gYIW/2zYeXinsIw==; ARC-Authentication-Results: i=1; outgoing.instance-europe-west4-f940.prod.antispam.mailspamprotection.com; smtp.remote-ip=35.214.173.214; iprev=pass (214.173.214.35.bc.googleusercontent.com) smtp.remote-ip=35.214.173.214; auth=pass (LOGIN) smtp.auth=esm19.siteground.biz; dkim=pass header.d=valla.it header.s=default header.a=rsa-sha256; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=outgoing.instance-europe-west4-f940.prod.antispam.mailspamprotection.com; s=arckey; t=1789596040; bh=d39hVW/1aGsXzSQ8/+ghN24LusZ3o8IHDAoTyfwdSng=; h=Cc:To:In-Reply-To:References:Message-ID:Content-Transfer-Encoding: Content-Type:MIME-Version:Subject:Date:From:DKIM-Signature:DKIM-Signature; b=BhyziAwBV02AGqL+YXKYNV6dz64DLqUMZU6omTjlpILL2O6iQDaA3/bQN0/58LukXuwuqaTzML Il9unTeGhcOo7RUkcHZdPdORVhitQ4ybBxJUe/j7w9xfJHfMpuivNIcoiog7h9f+4GwI9AZg6Q rcXxsUOi9ttAuWqqnBuSqP1663ZyZyC/OPxRIN/LRIq/d0GG2uGj1H2VtdBwX9Jzo/CjTYfboU /IuJWNuUuLjCu6ouONX5r54Yu0KrWI+K6w95gDLuzoyOoniNMJXEbvPOV88nESeC/alZKwoUfa c7KBgg7YDeVrg9VMmB+2qhlbG1w6XmwTfnU1GTebh8SwuA==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=antispam.mailspamprotection.com; s=default; h=CFBL-Feedback-ID:CFBL-Address :Cc:To:Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject :Date:From:Reply-To:List-Unsubscribe; bh=Afy2Ioh1Q8MmCQHDm5oT2HBS/WsmsNSsYcd/Fb2zqP8=; b=JBngK7mlxGX2KCs7GdKAWbdFCD 1ZRX0MHc8IwSY/oF6PGvqFf42TVgc8zj0PXDQN8v6h4fv8Sgo22r4mw1u5SpfxgQZp37rqSjUYFTG QB8QN/WUTiJv2nIWhVpno7N12yZ3PitxqcE5IkgY3wODxmxpeG0WLI/AyBbohJ/MiE1Y=; Received: from 214.173.214.35.bc.googleusercontent.com ([35.214.173.214] helo=esm19.siteground.biz) by instance-europe-west4-f940.prod.antispam.mailspamprotection.com with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.99.5) (envelope-from ) id 1x6xVa-00000002d1j-0K9V; Wed, 16 Sep 2026 21:49:39 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=valla.it; s=default; h=Cc:To:Subject:Date:From:list-help:list-unsubscribe: list-subscribe:list-post:list-owner:list-archive; bh=Afy2Ioh1Q8MmCQHDm5oT2HBS/WsmsNSsYcd/Fb2zqP8=; b=SCKDfRlfpwVmyCn+wFZ78jXjaM JcGjP4XensB8YRLwEPVSQdCv1Ht86LoYxrmAF1lLBrp2dCdOnicBOAb8vEY/D2F4x/r6wZFf8HXz/ nGDOhr91JAoYEwfb5AG6HvYWDIRWvBg/LlQXkof2xbwt8cizF5CBH40ea1lI/8Kh5pDk=; Received: from [95.233.221.121] (port=62880 helo=[192.168.178.175]) by esm19.siteground.biz with essmtpa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.99.5) (envelope-from ) id 1x6wuT-0000000058P-3LOW; Wed, 16 Sep 2026 21:11:17 +0000 From: Francesco Valla Date: Wed, 16 Sep 2026 23:10:57 +0200 Subject: [PATCH RFC 12/12] PoC: arm64: dts: imx93-11x11-frdm: add multiple vdevs 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: 7bit Message-Id: <20260916-remoteproc_virtio_map-v1-12-dac8c5eb4aa9@valla.it> References: <20260916-remoteproc_virtio_map-v1-0-dac8c5eb4aa9@valla.it> In-Reply-To: <20260916-remoteproc_virtio_map-v1-0-dac8c5eb4aa9@valla.it> To: Bjorn Andersson , Mathieu Poirier , Kees Cook , "Gustavo A. R. Silva" , Marek Szyprowski , Robin Murphy , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Frank Li , Peng Fan , Sascha Hauer Cc: linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, virtualization@lists.linux.dev, imx@lists.linux.dev, iommu@lists.linux.dev, linux-arm-kernel@lists.infradead.org, Francesco Valla X-Mailer: b4 0.16-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=4023; i=francesco@valla.it; h=from:subject:message-id; bh=d39hVW/1aGsXzSQ8/+ghN24LusZ3o8IHDAoTyfwdSng=; b=owGbwMvMwCX2aH1OUIzHTgbG02pJDFmrWZ+sLG1o+nracmtWSe33Ny3VK8OF0rQftTPl7Aw7m Vv7xV+3o5SFQYyLQVZMkSVk3Y17e+aaf0vbwPgIZg4rE8gQBi5OAZiIbhzDf+fWp83X7c5X/u96 sps55sqef1w3ex493f3j8a/PEROynS4w/OGIVdb8s+TZaoEjJvZvVhxVZ5jyxuMhf9+m8xunbmp WOMgJAA== X-Developer-Key: i=francesco@valla.it; a=openpgp; fpr=CC70CBC9AA13257C6CCED8669601767CA07CA0EA X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - esm19.siteground.biz X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - valla.it X-Source: X-Source-Args: X-Source-Dir: X-SGantispam-id: 126b925e8038527d93e52dea20fe7f80 X-AntiAbuse: ID - 126b925e8038527d93e52dea20fe7f80 AntiSpam-DLS: false AntiSpam-DLSP: AntiSpam-DLSRS: AntiSpam-TS: 1.0 CFBL-Address: feedback@antispam.mailspamprotection.com; report=arf CFBL-Feedback-ID: 1x6xVa-00000002d1j-0K9V-feedback@antispam.mailspamprotection.com Authentication-Results: outgoing.instance-europe-west4-f940.prod.antispam.mailspamprotection.com; iprev=pass (214.173.214.35.bc.googleusercontent.com) smtp.remote-ip=35.214.173.214; auth=pass (LOGIN) smtp.auth=esm19.siteground.biz; dkim=pass header.d=valla.it header.s=default header.a=rsa-sha256; arc=none Add rings for multiple vdevs, as well as the required virtio nodes for I2C, SPI and GPIO functionalities. On top of that, add example peripherals using all of them. NOTE: this is a Proof-Of-Concept, not meant to be integrated! Signed-off-by: Francesco Valla --- arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts | 128 +++++++++++++++++++-- 1 file changed, 119 insertions(+), 9 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts b/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts index bd14ba28690c..dfa3b122ac5f 100644 --- a/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts +++ b/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts @@ -53,6 +53,32 @@ button-k3 { }; }; + gpio-keys-virtio { + compatible = "gpio-keys-polled"; + poll-interval = <100>; + + button-v1 { + label = "Button V1"; + linux,code = ; + gpios = <&v_gpio 23 GPIO_ACTIVE_LOW>; + }; + + button-v2 { + label = "Button V2"; + linux,code = ; + gpios = <&v_gpio 24 GPIO_ACTIVE_LOW>; + }; + }; + + leds { + compatible = "gpio-leds"; + + led { + gpios = <&v_gpio 18 GPIO_ACTIVE_HIGH>; + label = "LED V"; + }; + }; + reg_usdhc2_vmmc: regulator-usdhc2 { compatible = "regulator-fixed"; off-on-delay-us = <12000>; @@ -89,11 +115,6 @@ linux,cma { linux,cma-default; }; - rsc_table: rsc-table@2021e000 { - reg = <0 0x2021e000 0 0x1000>; - no-map; - }; - vdev0vring0: vdev0vring0@a4000000 { reg = <0 0xa4000000 0 0x8000>; no-map; @@ -105,12 +126,42 @@ vdev0vring1: vdev0vring1@a4008000 { }; vdev1vring0: vdev1vring0@a4010000 { - reg = <0 0xa4010000 0 0x8000>; + reg = <0 0xa4010000 0 0x1000>; + no-map; + }; + + vdev2vring0: vdev2vring0@a4011000 { + reg = <0 0xa4011000 0 0x2000>; + no-map; + }; + + vdev2vring1: vdev2vring1@a4013000 { + reg = <0 0xa4013000 0 0x2000>; + no-map; + }; + + vdev3vring0: vdev3vring0@a4015000 { + reg = <0 0xa4015000 0 0x2000>; + no-map; + }; + + vdev4vring0: vdev4vring0@a4017000 { + reg = <0 0xa4017000 0 0x4000>; + no-map; + }; + + vdev5vring0: vdev5vring0@a401B000 { + reg = <0 0xa401B000 0 0x2000>; + no-map; + }; + + vdev5vring1: vdev5vring1@a401D000 { + reg = <0 0xa401D000 0 0x2000>; no-map; }; - vdev1vring1: vdev1vring1@a4018000 { - reg = <0 0xa4018000 0 0x8000>; + vdev5vring2: vdev5vring2@a401F000 { + reg = <0 0xa401F000 0 0x1000>; no-map; }; @@ -149,8 +200,67 @@ &cm33 { <&mu1 3 1>; mbox-names = "tx", "rx", "rxdb"; memory-region = <&vdevbuffer>, <&vdev0vring0>, <&vdev0vring1>, - <&vdev1vring0>, <&vdev1vring1>, <&rsc_table>; + <&vdev1vring0>, <&vdev2vring0>, <&vdev2vring1>, + <&vdev3vring0>, <&vdev4vring0>, + <&vdev5vring0>, <&vdev5vring1>, <&vdev5vring2>; status = "okay"; + + virtio { + #address-cells = <1>; + #size-cells = <0>; + + vdev@2 { + reg = <2>; + + v_gpio: gpio { + compatible = "virtio,device29"; + gpio-controller; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + }; + }; + + vdev@3 { + reg = <3>; + + i2c { + compatible = "virtio,device22"; + #address-cells = <1>; + #size-cells = <0>; + + eeprom@50 { + compatible = "atmel,24c1025"; + reg = <0x50>; + }; + }; + }; + + vdev@4 { + reg = <4>; + + spi { + compatible = "virtio,device2d"; + #address-cells = <1>; + #size-cells = <0>; + + sram@0 { + compatible = "microchip,mchp23k256"; + reg = <0>; + spi-max-frequency = <20000000>; + }; + + lcd@1 { + compatible = "adafruit,yx240qv29", "ilitek,ili9341"; + reg = <1>; + spi-max-frequency = <10000000>; + dc-gpios = <&v_gpio 21 GPIO_ACTIVE_HIGH>; + reset-gpios = <&v_gpio 20 GPIO_ACTIVE_HIGH>; + rotation = <90>; + }; + }; + }; + }; }; &eqos { -- 2.55.0