From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) (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 614933EFD37 for ; Tue, 9 Jun 2026 16:40:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781023212; cv=none; b=EsGcZ64lKCpFpgmyjQAD4N6gMlglbszlK0NgYGtp7JHIO0LSxxV+lHjxPRb/UzZIz+G1bg7jM361KhNf96nCrwfY3qEDXQu20tgAfHwAoEXRPxd4+iXj4QfMLmPHt+QQdUMCVBOM1aigg0XI8+PVM24Tkxt1x2HY570uwF1xEE8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781023212; c=relaxed/simple; bh=ZUYptASb2XkWgHKrB/ApK11KzwBJaSgOZ/Ih46iDuLc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=HHO5cgMDaHENLu+/ITL3HsaFl3i3rzT8ABlqNB09aKF01ZscDOWG4qkziKTNJpjcrHASFJALXIhvusfdHvj6GHfgIaG9b9yfYn5utd/AeFw/5S3nSUvP4vzpdtG8/nqW6/moA8kRdH6wUjmUEqW8vkz7MTZzGaOzF1KAVWwA+eA= 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=ODtA4XpE; arc=none smtp.client-ip=209.85.214.177 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="ODtA4XpE" Received: by mail-pl1-f177.google.com with SMTP id d9443c01a7336-2bf30d530bdso58090325ad.3 for ; Tue, 09 Jun 2026 09:40:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1781023210; x=1781628010; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=F5HJL58J1eZJZ2b60pokq8zoselIZjiEHemGuH3SCnY=; b=ODtA4XpE9H5MnXecNN//PjtWEvoWWDAprtM21SP1flraUR07Lpyebfq6IAdWzfbqmZ dw7pqCGvsuKxIwDQQd4T4SunSXenwt44zuU624qZeS9y+Dt6UXhk6hYabPmPsxKUODlJ ZRpbiXvkG7Vu5JsYYB1fStUYb/D/Lp5rbwviZynBEE6eFoyNc/K/TRFVfHMMfprDTumV lNXH+hrqTBTzPFpUukCY7/RI9D0l02X3ZpRMCJwX4zOvfX/FdGcAiyB6O+0dzZj5/JJa uf1rA9G2DZL+oPCWUHhvUwWRVUJlTWtp1euUCevctAw9at7ijU8y0PBZOTqTN7B/nQab bWhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781023210; x=1781628010; h=in-reply-to:content-disposition: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; bh=F5HJL58J1eZJZ2b60pokq8zoselIZjiEHemGuH3SCnY=; b=QJjouV+i2zuP1/I2byCRdRh5F/8uhiewbikXpiov3Wj64bXMb8wfWX58rH9n782X3k ZtrkRsYv/3lrD1inSRLINkoxawqm1QsKLn50w9cj0KD2YQcZ10XN3hWPq83RZLMzWxTq ddS2ctG2mKpPLfUQ5Tr1ZmzomQS8vFlGTu5qAtw17wxokFgozWeL1mD1p1tUlpO97VaP 3sXy63tP/T8CLN4deGK3fYKQliYX9c8xA12nl1DQ5UwfQeJbNNedvocnRVEgkGcLiUHv CxFGI3TAjCRTpWU3XjL6l/9xshS6chwJ6IRI4dksPeFSehBv92exVDo1Vkk3NV1aFvZ6 JxpQ== X-Forwarded-Encrypted: i=1; AFNElJ+V9bkYpj8pY5br2N+njtPGlgndpDBZVFevIQDqITvA1M9Ym6R0msezyfT/yTa9OCcONO/u70UZ5UdM@vger.kernel.org X-Gm-Message-State: AOJu0YzNqfg97PX0ZqEuFKHv2x3nMmyHEpEkckYsSuiH22Zooq7c8j8o 7HtzhUE3fdF6iZPCb0D5bjBIMsCWG+nXoib1MynZ7kEm7+Gh6A5ij+ANb/dcMtzDErU= X-Gm-Gg: Acq92OHR7yeJI21ifkGYTnSTdsheDSzG+Ub7U6IE/D49Q12plGjl/znsNLIn7Yujsia QA12EFgPCe3746It2l18LCLbryx/BHqrI3VbVnvOLmg+lKdTHTe2aSMxpyN+hrZ5WdHVOs03pTK pYZPQdsxI67U6UQtvGqTuU0Dv5CPnTwkAE+gjz8TEaiT9xktedvQqCYSLqZTAI1E1JIFs8DR2WW F+Jo4peB/IjHtOZATwk8Th9g88gi0E8Hx/apic5mFFUDGn8dZ8XD8r8KRH/+7lLzVCLWqIhwLwq jSf2MfylGd66yBj49Z//NVtGT+zsZA7kXOPS23eXzme2dFk2xWGitsZKmd24UEP/6IotNFrn4Qx 3p5tl/NPNcwbxvf3/0f4cWPqlRgJx1LmnE0fM2R3v/xEpuSc8sF6Q5GxhjKosuk4qcKYPB675St vFxVh0VER/UbkNlXUFp9jQGLKecvMLJUQUbiIs X-Received: by 2002:a17:903:2450:b0:2c0:3400:5c42 with SMTP id d9443c01a7336-2c1e820bffemr225857055ad.26.1781023209568; Tue, 09 Jun 2026 09:40:09 -0700 (PDT) Received: from p14s ([2604:3d09:148c:c800:7f00:843c:9d87:e9dc]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2c16609e0a2sm225550575ad.46.2026.06.09.09.40.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jun 2026 09:40:08 -0700 (PDT) Date: Tue, 9 Jun 2026 10:40:06 -0600 From: Mathieu Poirier To: Laurentiu Mihalcea Cc: Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sascha Hauer , Peng Fan , Fabio Estevam , Daniel Baluta , Francesco Dolcini , linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/4] dt-bindings: remoteproc: imx_rproc: document optional "memory-region-names" Message-ID: References: <20260605113621.1479-1-laurentiumihalcea111@gmail.com> <20260605113621.1479-2-laurentiumihalcea111@gmail.com> Precedence: bulk X-Mailing-List: devicetree@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: <20260605113621.1479-2-laurentiumihalcea111@gmail.com> On Fri, Jun 05, 2026 at 04:36:18AM -0700, Laurentiu Mihalcea wrote: > From: Laurentiu Mihalcea > > The names of the carveout regions are derived using the names of the > reserved memory devicetree nodes, which are referenced using the > "memory-region" property. This adds a restriction on the names of said > devicetree nodes, often bearing specific names such as: "vdevbuffer", > "vdev0vring0", "rsc-table", etc... This goes against the devicetree > specification's recommendation, which states that the devicetree node > names should be generic. I don't see what is so restrictive in using the node name of the reserved-memory regions. Function of_reserved_mem_region_to_resource() is already doing all the parsing, packaging everything in a neat and easy to use "struct resource". What will you gain with this new "memory-region-names" that can't be done with the current solution? > > Fix this by documenting an additional, optional property: > "memory-region-names". This way, the carveout names can use the values > passed via "memory-region-names", while keeping the devicetree node > names of the reserved memory regions generic. > > There are no restrictions imposed on the values of the strings passed via > the new property since the software allows any name to be used, with some > names (e.g. "vdev%dbuffer", "vdev%dvring%d", "rsc-table") bearing a > special meaning. > > Signed-off-by: Laurentiu Mihalcea > --- > .../devicetree/bindings/remoteproc/fsl,imx-rproc.yaml | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml b/Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml > index c18f71b64889..8e3e6676a95e 100644 > --- a/Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml > +++ b/Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml > @@ -62,6 +62,10 @@ properties: > minItems: 1 > maxItems: 32 > > + memory-region-names: > + minItems: 1 > + maxItems: 32 > + > power-domains: > minItems: 2 > maxItems: 8 > -- > 2.43.0 >