From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) (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 778AD40149F for ; Tue, 9 Jun 2026 16:40:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781023211; cv=none; b=bJVl9DEvVK/ceaq4yoUewViTKwOhGQFYTmFY322EnaaMXH6YqojNdT3camOxBaJFI3zNA95QdZ45r7WPLXEZyyP9Q4vmMJYq00vX9nMmADF5nsbURa/h3tDJRNHclSdQAZlldC4iYPYWOck0rEVKI+itKek+dOfvhM+MdkFjNio= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781023211; 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=Swm0RANIWucFlwmM7PJ0CaklT+ovpo7Fhzg3+ekv8wUHds7lTWl/PGiSs17dV0HaVjfp+AdU6I3iMJmoRhjdd1bLBdzXJHfqYgWjIQ0BgyzFNco9ac+q9QB6sTyxLix7flysGNFxMKiq/9p7BHLgJqR3/BvblzwG1PflJkzftXc= 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=lbO3smzu; arc=none smtp.client-ip=209.85.214.172 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="lbO3smzu" Received: by mail-pl1-f172.google.com with SMTP id d9443c01a7336-2c0b944f6edso59566885ad.2 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=lists.linux.dev; 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=lbO3smzuHRAKFHhTIuahHi89i/NXoyMTdZpYfqoqWGf7aPvrf4U1bR9Rj4KY+vsJZ5 JGGGxwqQenqarQq4O2tE/suiNDH0PsxXD7nAGZcp3OuIhpxbEL6ihjFJc/utbFgNCcNw cnlq7Yx3xXj9xaknH5mE2+4XBe2qjKprdWUfk3rCUz1n4Q3DmNEXY4LhsZnIm7OI5JtL ZMKXZi/3fgpJCRKjy+VitylP/e+8pulqw2o7ihzlpyUHiqsUebljkOuwtXuJGLVRXifJ ekeeegeWymGiiV+RXAHqwvxxTOe/SeN1wDVx8QkI5lVFcEudIEwHAeYmbt7QZAgA+WYj q4XQ== 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=dZxoUliY77OxdtG43PaBgUhuKvuOcTvY+HmK7MpqtMBCTPbKWaB9EB1WTJFnw6vCdh rqxJIVk+pg/4Vkfp+HqFWiMbeJv/vSrU3B8of7pdLUW0IubOf+s+lffRY0w+GxC5284E UGvvF8ziwUVOyVKeUYVzwPuEZmkSGan5RtovxrCfEqXsMqafa6tS5nZ6SAeXjdxPAnSd vkxPtkdDSVUtN58fWthhPkPPHf94GvAcdMxh4t3wdqz6TfR5Cu+FE5jsXme2+qnnCzmk fyhB7g27QfthbFB0UHJZbtgxxWZB482FbGu5xyeSiPLbFIXEXRoc+bG4EDhIONfMMtWa i4KA== X-Forwarded-Encrypted: i=1; AFNElJ/mxqD0VGvuAdXqbNb9S/ekEpz8cgCeTQK1Egz8OYVO7rwKT81eJjJw74DyWVl0pnNtcxY=@lists.linux.dev X-Gm-Message-State: AOJu0YySYaZHAMBAOveZkYXw1Axt1iSw/l0E+wLFEog2gGW3PLW3sV5E OwyRrW1Kl+Wa+jq8EJCnKygt88qW/qPSlcWWnubPCT0gm5mJAUvq+3c/Vkt924orKYswsqwhe/2 aZXm6 X-Gm-Gg: Acq92OE6Stmz1lQsZd+c03QOSU7WRJ5G7gmTu3l9nJ68gV8z4Tqbb/EAZQZepFJP9VB 7qL6T1LEtaRJi+VUwxBwbjnb4qkf3asnDZKK1+ZpRWdgh8ETL6QUCt6GMZsLMfLaLHAS+jbWR5B 9RjFAH9j1wqZpwAEFOs+7MV8NzMtsHD3SxeVaDgyyeZAbEAb/EMwrK41s/fSKUwIcp0lJLjz2op oDfiTthUbNrnxVqAlnfgRGml7UJy8ClnKTeyR2dLB3yHw7bRk+23S8v3RET4zhmUnTgUCZ2Bij6 hHDtnwaS1YTHNa7KhnRNlek+d23Anwlk6klaL3geXSNiaso5Da0HOruxo48AafoWo1ML3Tzioef R4FwOSezsUYlLjm/pkmT5zaPJjq3oAdxXVIMcXVT5rAAwwSFA+P54P1+MbcF2OHelSnZgcE9q2Y XYvukQOqlU/MXuPH8lwAzbf+i6Uv92tqbdCC4k 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: imx@lists.linux.dev 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 >