From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 20FB6C982FA for ; Tue, 22 Sep 2026 15:44:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=M3+7e8iXJEjn74p0MvD+DqdSnpalQ9TYucgtTBbjy+c=; b=s6H0Yd1zejsjlIf1JkXOFKf4ko hBd1tldCeZwu7+fqouZinkBhc5E/1Zl3yEQAoxUpvFMnnSAjfKC7bbvywgtJvHZ7+AsbjdiY6fsaW 61afImGhd9t/LhuJgp2fLkdSN2QhR7rv7u/d+y47ipN4CDV4rHPOeRcNHX9KEt411i/yjW/1RHZ6W apDgKhzP8JiEsP40j14Mo+uENJL2GW7aODVzjpOcEBE9ILVBRSaC4NSHtREjGRyfaiZOCBwe4Z2EH 2EWrcd3KRAfBXG+h9SNIeFtQX/YHWEvrpeSyOde0UI2zM0P4Vhw23PnNu1zlhCv1wVVeWZ3+6dD17 I8HcBy6w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1x92f2-00000005vGf-1s3t; Tue, 22 Sep 2026 15:44:00 +0000 Received: from mail-pj2-x11.google.com ([2607:f8b0:4864:39::11]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1x92ez-00000005vFy-0h53 for linux-arm-kernel@lists.infradead.org; Tue, 22 Sep 2026 15:43:58 +0000 Received: by mail-pj2-x11.google.com with SMTP id 98e67ed59e1d1-396ccda24a3so48882a91.0 for ; Tue, 22 Sep 2026 08:43:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1790091836; x=1790696636; darn=lists.infradead.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=M3+7e8iXJEjn74p0MvD+DqdSnpalQ9TYucgtTBbjy+c=; b=xctlq+OZsq3Wu3PJmYKf8CNyvKXY5b0OBxQLzzrGV8nL2asEz5VGJxXHwx5SlAupq/ IBNoOq4iOc//0ARN/MyoSx2XGB6nPT2oTXzMUZ7lBWnowBYVkPvtsjeCcPXILtTvCvJ1 q4ZROkBsdU2G/FWAgfsDaLtXKOXY8Nr2apTUslwBvFWctN3qr4vzonKVxwIQcrjdTR8A YxFJ8n05QQ29z8TyyMkklqfvqm53YXDXobF+kMYgPnT1k43IdkOwe/qkHID6k2VhFL0X Wq4K8v+qQDa1ZofH9P0VHU2mDZsw/TaPP4ihg+LuoZMe2HGi7xNxB+uurjRMrVBa5aik FqPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790091836; x=1790696636; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=M3+7e8iXJEjn74p0MvD+DqdSnpalQ9TYucgtTBbjy+c=; b=nU7yt9A46kwk4Me6tiL87y5zyP5LPG1hdVbGLpVPl9AHlHtXlbZ1qEp4ulvCaI6psx uH2ZZrzWF3beTL0Ug+YGCJFG79kLaNPUaA3DEvcA9PY9wroQQMunnaj7MzszUy9/131n yTvDJfuvuDaT5YFcVKEm3VB+Aowys8EsQGVWS0sizmEDXLPcB/jN8HhJJMZ6SCob6yhr T3mk2Mn3WztI7Bs7o6HRbueOo77uggSUU2XghkOd394dx4bkAfxnqkMVEA9e4IZV0w+C h9AwzVAe9TmSLq1Gvdsu3k+/X8ciLtRR4GXaX6vieIlqvZ0H02qI4WNeMsDWMMzOnoh9 aP2w== X-Forwarded-Encrypted: i=1; AKwUvBxhyWCs8wOGTX1YeLyXMEFYba2k3OpbAnD/nz/T086ZxXlufCeFWYMWpzQ6ofz4iajvuac9CD2mHL7IcH4dwA8h@lists.infradead.org X-Gm-Message-State: AFuF++kgv8tRpReYEk5LeFU9VhYL1wDNwaXeNAyxkHr7GzyKhwvPXKmb 6eLjEFxJAiKSkafq0MU3SGgSFE/IUg9P4xc4RmJZrTihIfrtJzCzlNz9AGurD05VE0g= X-Gm-Gg: AYBFou1D/dKcv5U2LKHXWSh+mmDARmkh4560doYOvd7AOnn3HU+osFsb/UnWfNqbiTz x9mUCDFwd+JjOTW4GPpyF+F2rIizDkeQBUpCJrdKScczeJOqWseO2a5oV6aB39wJWW+h0+TkO0Y o6LFmIxqStG+qlwg0OTBVcylXo368C8DfNCAp0wCkE6g01gCmudVCTp7ieWRsNbB1DqTHSxpK1l YTg5HwvomQAmQU4eNR4Eu8PQb0m+MRZV13flufZNfrQ338ptxbVm1COCiwYPvLn+2PklRhvazvn lDX7Z0lgidVr1rzUGFr4P7g5J8iXyI1/tkZ6aUfGDCJYkgxQTJ5QgpxNFMti0pkQA16c6Vav9tN 4k/SfN/OEgYiZNZRuErgk1sw6Nb05WC//o07DuDEFGdWyQnG+3g/nwymId6TUn+dDeuUthRvhXj jatz3Nwree2C0vA4TXNbKEhHbWsYP28feMVX25+H8saOHAzZ36+iLGKwbyCXcKaJvh87WtVNbiT 0hh55xSZRA= X-Received: by 2002:a17:90b:1d48:b0:39d:efa9:cd25 with SMTP id 98e67ed59e1d1-3a07306c5d9mr1633442a91.2.1790091835796; Tue, 22 Sep 2026 08:43:55 -0700 (PDT) Received: from p14s ([2604:3d09:148c:c800:1046:ab8:737c:d2e2]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3a07dbf69f0sm34882a91.8.2026.09.22.08.43.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Sep 2026 08:43:55 -0700 (PDT) Date: Tue, 22 Sep 2026 09:43:52 -0600 From: Mathieu Poirier To: Francesco Valla Cc: Bjorn Andersson , Kees Cook , "Gustavo A. R. Silva" , Marek Szyprowski , Robin Murphy , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Frank Li , Peng Fan , Sascha Hauer , 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 Subject: Re: [PATCH RFC 12/12] PoC: arm64: dts: imx93-11x11-frdm: add multiple vdevs Message-ID: References: <20260916-remoteproc_virtio_map-v1-0-dac8c5eb4aa9@valla.it> <20260916-remoteproc_virtio_map-v1-12-dac8c5eb4aa9@valla.it> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260916-remoteproc_virtio_map-v1-12-dac8c5eb4aa9@valla.it> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260922_084357_223207_14447077 X-CRM114-Status: GOOD ( 19.90 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, Sep 16, 2026 at 11:10:57PM +0200, Francesco Valla wrote: > 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; > - }; > - Why is the resource table removed? There is no mention of that in the changelog... > 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>; Who is using vdev5 vrings? > 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 >