Re: [PATCH v2 10/12] dt-bindings: memory: xlnx,versal-net-ddrmc5: Add amd,num-ctrl property

From: Pandey, Radhey Shyam

Date: Tue Nov 24 2026 - 00:00:47 EST


On 11/18/2026 7:50 PM, Shubhrajyoti Datta wrote:
Add the amd,num-ctrl property to describe the number of DDR memory
controllers enabled in the design. Valid range is 1 to 8.
The driver then can enumerate only the enabled controllers.

Nit - avoid "driver" usage in binding commit description.



Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@xxxxxxx>
---

we should also explain why it need to be a DT property
and can't be queried/derived from firmware response.


Changes in v2:
Add amd,num-ctrl property to device tree
The property was requested in the discussion below
https://lore.kernel.org/all/34ffba5a-8e9a-49b9-9e36-c31d0e4369f8@xxxxxxx/

.../memory-controllers/xlnx,versal-net-ddrmc5.yaml | 9 +++++++++
1 file changed, 9 insertions(+)

diff --git a/Documentation/devicetree/bindings/memory-controllers/xlnx,versal-net-ddrmc5.yaml b/Documentation/devicetree/bindings/memory-controllers/xlnx,versal-net-ddrmc5.yaml
index 479288567d0b..65feacd007a1 100644
--- a/Documentation/devicetree/bindings/memory-controllers/xlnx,versal-net-ddrmc5.yaml
+++ b/Documentation/devicetree/bindings/memory-controllers/xlnx,versal-net-ddrmc5.yaml
@@ -27,6 +27,15 @@ properties:
with remote processor. APU primarily communicates with the RPU for
accessing the DDRMC address space and getting error notification.
+ amd,num-ctrl:
+ description:
+ Number of DDR memory controller (DDRMC) instances enabled in the
+ design.

Mention that : The enabled instances are contiguous.

+ $ref: /schemas/types.yaml#/definitions/uint32
+ minimum: 1
+ maximum: 8
+ default: 8
+
required:
- compatible
- amd,rproc