From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj2-f13.google.com (mail-pj2-f13.google.com [74.125.227.141]) (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 BDAB355D86F for ; Tue, 22 Sep 2026 15:43:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.227.141 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790091839; cv=none; b=JZXLH9C9Xz2cMpFZm2+P5hz4oNZ3PlMayl10BhvKavvvqeE8VrJ9YF9xATGmuid2are/p5sg/ToH414YuEb0xy1e20nrIi6Kiz7mNd5+jjblKDuvEUxHT0GuFoNbgokHyYI6BFdJFtNtuIevQn4SSYiJqU0ihUMMNbw7o/m+llM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790091839; c=relaxed/simple; bh=MPJa407hEU35uhm5nNbxl1o7nH1It+GZNahj267Ph9Y=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=UMRKpq4KzzVJugt9R5GwMMHxDYgU/2Xm2f8HV2JZYG7YjzuoRDZ0w49XrdwWVVI6g3OgT6aRayLG0Awnzi6Qq4swC9z0VLA8NRz/jIx3dLEbeHExmPIJ4evp5N1MYwU8SIiPsMJRV1TWZjakMzUW5nSmKFEPY33EIQKbmhmMzKI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=Fs3qkBd0; arc=none smtp.client-ip=74.125.227.141 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Fs3qkBd0" Received: by mail-pj2-f13.google.com with SMTP id 98e67ed59e1d1-396ccda24afso24099a91.3 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=vger.kernel.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=Fs3qkBd0zQ6ucr9QdRr/P75/EMkmrjSEbT5jRPu65SllB6psWZLuhEtIR8ipOit7A0 dziV0+nGwg7V2nN1BC5p4jSOI6JqlJ4VhDCy1D2782OiNTCjIigPmBH3i1XdNxdsmN8v 5TPnIzCBqfYbme/U6Y/AcKwZ8Pt2Rbu5OXLjLOQqF2vHaXs1YGGMYeaFIF4yHYcwiM6/ SRIu8soPC7WwSEWc5AhWiIfOVfx5gdDTpchEwtevZGmhoCWU85RyAF/G3fg11L+RGdzC HZ9ky1Whz7rypN6AsszTu2oEE8qqHHmBZqmbfEUWLFH/fV/edyaoBSBbClCQBE+xiVbE C8GQ== 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=bxvIPVlc3hRDA/fr4KE7O6szuuuN84oHAu583YsiPSpkSgLxpY5slgfsyGPYLKPXWW ZCdEvJNEUzj0vOVtThQIqEWiLCtu3zmIiDBoDPB2oSGL7NqFcemAtR99OlV4KhW0uP6d Ac8CLVfa2no1s+OPRG8AXy/7wmy638fZePdmSpJIqHYML+JeXqlI9a7NnOYplhclmdvT 7gzUJ5cILWD/V26XVvys2s2PnzATcwOfLmYbijgOuKgIWd5kJYXGDNEIDNckgtiG0Fza dvg5TLzFgmwRFnX70M6mDXrPKB5sxe5kDmY2lAjyZ4Xx60gtyNSPNxb97SUbdywQj40f 8D5g== X-Forwarded-Encrypted: i=1; AKwUvBw7E4F5iye5zl4ngTKM6Hheb5jvDf6ovbSRmWJc/vP7CZlMqdK/y6a13lE5i4pyRs1r6EZTBdhSrDWUMwg=@vger.kernel.org X-Gm-Message-State: AFuF++lH0X6vgflUKsIa4EL63d52QnDin24/BJAY+IFbzn3FuNnxeW73 12WOXvZer6gFeOKqMwjgtWm4E3gFU9HpdGfZxtPyrmjzhdYjSsqckooOnnMNjlkEq70= X-Gm-Gg: AYBFou0avR1Nae5//mqabl5JHbozrixgOtr9OQDRbW+vKZ3aSOHNovLlG6HMcqDCSG8 23JtcaRR2oK0y9XcnITBooJvRoBqCGNZSND8sJflCE7r9ayui+jNl2n+cIkjWbnbfMrzZS9rG5Z c589WW0PxyNgDm2TMPfvz3JhPxcxg8Grveti1YoVG8c/q2JKBP8bhwMV1eYckrkWRTZcDwMgQmB m2uqO77rxRl5ry4of8QM69uSDnClv1OeKKRUcxGppGl/bCHw9xNkVMfhHDBo/DWmPLRUZeU/Wbn H4wdZC0N8oJIVklRWmX8hLkVmNUxGAVvL1pG1uY8qeNt0w66Tot/zr1nzKyc6F4cg+jb+9VxU8E bSkOdTRtQAfSKDB8rpK9kQvBeuZaf8Eh8n9HBiMQdzlxgNlV5+DSzueOR+8LN+IO7qeE72lWUe6 sZAKbV20VxdfQeyFA0b85fTX0Jd4q5mKlmOC9NVBFWmGpF7oSOU6h/MKLsIx9zK1vUOfBFR5CR/ zZcoiwlEow= 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> 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=us-ascii Content-Disposition: inline In-Reply-To: <20260916-remoteproc_virtio_map-v1-12-dac8c5eb4aa9@valla.it> 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 >