* [PATCH net-next v2 1/3] dt-bindings: net: ethernet-controller: Allow a device-specific nvmem cell
2026-12-01 7:00 [PATCH net-next v2 0/3] net: stmmac: Add the Siflower SF19A2890 glue Joseph Telaak via B4 Relay
@ 2026-12-01 7:00 ` Joseph Telaak via B4 Relay
0 siblings, 0 replies; 2+ messages in thread
From: Joseph Telaak via B4 Relay @ 2026-12-01 7:00 UTC (permalink / raw)
To: Andrew Lunn, David S. Miller, Eric Dumazet, Jakub Kicinski,
Paolo Abeni, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Richard Cochran, Alexandre Torgue, Jose Abreu, Maxime Chevallier,
Maxime Coquelin
Cc: Chuanhong Guo, Russell King, linux-mips, netdev, devicetree,
linux-kernel, linux-arm-kernel, Joseph Telaak
From: Joseph Telaak <joseph@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@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)
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net-next v2 1/3] dt-bindings: net: ethernet-controller: Allow a device-specific nvmem cell
[not found] <sashiko-outbox-245013@kernel.org>
@ 2026-12-02 8:12 ` Joseph Telaak
0 siblings, 0 replies; 2+ messages in thread
From: Joseph Telaak @ 2026-12-02 8:12 UTC (permalink / raw)
To: sashiko-reviews
Cc: Andrew Lunn, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
netdev, devicetree
> For a fixed two-entry nvmem-cells property corresponding to the
> nvmem-cell-names items list below, DT binding conventions prefer an items
> list carrying a per-entry description rather than maxItems with a free-form
> description that enumerates the entries and restates their optionality.
v3 will list the two cells under items, each with its description.
> Does defining nvmem-cell-names as a positional items tuple require index 0
> to always be mac-address while leaving index 1 unconstrained across every
> binding that inherits ethernet-controller.yaml?
Yes to both. A fixed order of names is how bindings usually list them,
and on the SF19A2890 the MAC address and the delay calibration are in
the same factory partition, so a board with only the calibration cell
is not expected. A binding that needs that can allow it.
ethernet-controller.yaml cannot name the second cell, since the cell
belongs to the device, so a binding that does not narrow
nvmem-cell-names accepts any name there. The SF19A2890 binding narrows
it to rgmii-delay. I don't see a way for a device binding to add a cell
without loosening the common schema, but I'm happy to follow another
approach if the DT maintainers prefer one.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-12-02 8:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <sashiko-outbox-245013@kernel.org>
2026-12-02 8:12 ` [PATCH net-next v2 1/3] dt-bindings: net: ethernet-controller: Allow a device-specific nvmem cell Joseph Telaak
2026-12-01 7:00 [PATCH net-next v2 0/3] net: stmmac: Add the Siflower SF19A2890 glue Joseph Telaak via B4 Relay
2026-12-01 7:00 ` [PATCH net-next v2 1/3] dt-bindings: net: ethernet-controller: Allow a device-specific nvmem cell Joseph Telaak via B4 Relay
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox