[PATCH net-next v2 1/3] dt-bindings: net: ethernet-controller: Allow a device-specific nvmem cell

Joseph Telaak via B4 Relay devnull+joseph.telaak.dev at kernel.org
Mon Nov 30 23:00:25 PST 2026


From: Joseph Telaak <joseph at telaak.dev>

An Ethernet controller may take more from nvmem than its MAC address,
such as a factory calibration. Every MAC binding includes
ethernet-controller.yaml, which allows only the mac-address cell, so no
binding can add a cell of its own.

Allow a second cell after mac-address, which the device's binding names
and describes. The first user is the Siflower SF19A2890 GMAC, whose
RGMII delay lines are calibrated per unit at the factory.

Signed-off-by: Joseph Telaak <joseph at telaak.dev>
---
 .../devicetree/bindings/net/ethernet-controller.yaml          | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/Documentation/devicetree/bindings/net/ethernet-controller.yaml b/Documentation/devicetree/bindings/net/ethernet-controller.yaml
index 30b2a335116e..da27ff8012eb 100644
--- a/Documentation/devicetree/bindings/net/ethernet-controller.yaml
+++ b/Documentation/devicetree/bindings/net/ethernet-controller.yaml
@@ -22,12 +22,17 @@ properties:
       Specifies maximum speed in Mbit/s supported by the device.
 
   nvmem-cells:
-    maxItems: 1
+    minItems: 1
+    maxItems: 2
     description:
-      Reference to an nvmem node for the MAC address
+      Reference to an nvmem node for the MAC address, then optionally to a
+      cell that the device's own binding describes
 
   nvmem-cell-names:
-    const: mac-address
+    minItems: 1
+    items:
+      - const: mac-address
+      - description: Named by the device's own binding
 
   phy-connection-type:
     description:

-- 
Git-155)





More information about the linux-arm-kernel mailing list