* [PATCH v2] dt-bindings: net: nvidia,tegra234-mgbe: Add missing properties
@ 2026-09-02 0:30 Thierry Reding
0 siblings, 0 replies; only message in thread
From: Thierry Reding @ 2026-09-02 0:30 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley
Cc: Andrew Lunn, David S. Miller, Eric Dumazet, Jakub Kicinski,
Paolo Abeni, netdev, devicetree, linux-tegra, linux-kernel
From: Thierry Reding <treding@nvidia.com>
Being a DWMAC derivative, the Tegra234 MGBE supports AXI configuration
nodes named stmmac-axi-config and phandle references to them using the
snps,axi-config property.
While at it, add the 10gbase-r PHY mode.
Signed-off-by: Thierry Reding <treding@nvidia.com>
---
Changes in v2:
- move common properties to snps,dwmac-common.yaml
- link to v1: https://lore.kernel.org/linux-tegra/20260716212001.989872-1-thierry.reding@kernel.org/
.../bindings/net/nvidia,tegra234-mgbe.yaml | 8 ++-
.../bindings/net/snps,dwmac-common.yaml | 66 +++++++++++++++++++
.../devicetree/bindings/net/snps,dwmac.yaml | 52 +--------------
3 files changed, 73 insertions(+), 53 deletions(-)
create mode 100644 Documentation/devicetree/bindings/net/snps,dwmac-common.yaml
diff --git a/Documentation/devicetree/bindings/net/nvidia,tegra234-mgbe.yaml b/Documentation/devicetree/bindings/net/nvidia,tegra234-mgbe.yaml
index 215f14d1897d2..48e4798a039b0 100644
--- a/Documentation/devicetree/bindings/net/nvidia,tegra234-mgbe.yaml
+++ b/Documentation/devicetree/bindings/net/nvidia,tegra234-mgbe.yaml
@@ -81,8 +81,9 @@ properties:
phy-mode:
contains:
enum:
- - usxgmii
- 10gbase-kr
+ - 10gbase-r
+ - usxgmii
mdio:
$ref: mdio.yaml#
@@ -90,6 +91,9 @@ properties:
description:
Optional node for embedded MDIO controller.
+allOf:
+ - $ref: snps,dwmac-common.yaml#
+
required:
- compatible
- reg
@@ -103,7 +107,7 @@ required:
- phy-handle
- phy-mode
-additionalProperties: false
+unevaluatedProperties: false
examples:
- |
diff --git a/Documentation/devicetree/bindings/net/snps,dwmac-common.yaml b/Documentation/devicetree/bindings/net/snps,dwmac-common.yaml
new file mode 100644
index 0000000000000..a38ff314b3cd1
--- /dev/null
+++ b/Documentation/devicetree/bindings/net/snps,dwmac-common.yaml
@@ -0,0 +1,66 @@
+# SPDX-License-Identifier: GPL-2.0
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/net/snps,dwmac-common.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Synopsys DesignWare MAC common properties
+
+maintainers:
+ - Alexandre Torgue <alexandre.torgue@foss.st.com>
+ - Giuseppe Cavallaro <peppe.cavallaro@st.com>
+ - Jose Abreu <joabreu@synopsys.com>
+
+properties:
+ stmmac-axi-config:
+ type: object
+ unevaluatedProperties: false
+ description:
+ AXI BUS Mode parameters.
+
+ properties:
+ snps,lpi_en:
+ $ref: /schemas/types.yaml#/definitions/flag
+ description:
+ enable Low Power Interface
+
+ snps,xit_frm:
+ $ref: /schemas/types.yaml#/definitions/flag
+ description:
+ unlock on WoL
+
+ snps,wr_osr_lmt:
+ $ref: /schemas/types.yaml#/definitions/uint32
+ description:
+ max write outstanding req. limit
+
+ snps,rd_osr_lmt:
+ $ref: /schemas/types.yaml#/definitions/uint32
+ description:
+ max read outstanding req. limit
+
+ snps,blen:
+ $ref: /schemas/types.yaml#/definitions/uint32-array
+ description:
+ this is a vector of supported burst length.
+ minItems: 7
+ maxItems: 7
+
+ snps,fb:
+ $ref: /schemas/types.yaml#/definitions/flag
+ description:
+ fixed-burst
+
+ snps,axi-config:
+ $ref: /schemas/types.yaml#/definitions/phandle
+ description:
+ AXI BUS Mode parameters. Phandle to a node that can contain the
+ following properties
+ * snps,lpi_en, enable Low Power Interface
+ * snps,xit_frm, unlock on WoL
+ * snps,wr_osr_lmt, max write outstanding req. limit
+ * snps,rd_osr_lmt, max read outstanding req. limit
+ * snps,blen, this is a vector of supported burst length.
+ * snps,fb, fixed-burst
+
+additionalProperties: true
diff --git a/Documentation/devicetree/bindings/net/snps,dwmac.yaml b/Documentation/devicetree/bindings/net/snps,dwmac.yaml
index 2449311c6d28e..c5222c82e27a9 100644
--- a/Documentation/devicetree/bindings/net/snps,dwmac.yaml
+++ b/Documentation/devicetree/bindings/net/snps,dwmac.yaml
@@ -195,18 +195,6 @@ properties:
can be passive (no SW requirement), and requires that the MAC operate
in a different mode than the PHY in order to function.
- snps,axi-config:
- $ref: /schemas/types.yaml#/definitions/phandle
- description:
- AXI BUS Mode parameters. Phandle to a node that can contain the
- following properties
- * snps,lpi_en, enable Low Power Interface
- * snps,xit_frm, unlock on WoL
- * snps,wr_osr_lmt, max write outstanding req. limit
- * snps,rd_osr_lmt, max read outstanding req. limit
- * snps,blen, this is a vector of supported burst length.
- * snps,fb, fixed-burst
-
snps,mtl-rx-config:
$ref: /schemas/types.yaml#/definitions/phandle
description:
@@ -558,45 +546,6 @@ properties:
required:
- compatible
- stmmac-axi-config:
- type: object
- unevaluatedProperties: false
- description:
- AXI BUS Mode parameters.
-
- properties:
- snps,lpi_en:
- $ref: /schemas/types.yaml#/definitions/flag
- description:
- enable Low Power Interface
-
- snps,xit_frm:
- $ref: /schemas/types.yaml#/definitions/flag
- description:
- unlock on WoL
-
- snps,wr_osr_lmt:
- $ref: /schemas/types.yaml#/definitions/uint32
- description:
- max write outstanding req. limit
-
- snps,rd_osr_lmt:
- $ref: /schemas/types.yaml#/definitions/uint32
- description:
- max read outstanding req. limit
-
- snps,blen:
- $ref: /schemas/types.yaml#/definitions/uint32-array
- description:
- this is a vector of supported burst length.
- minItems: 7
- maxItems: 7
-
- snps,fb:
- $ref: /schemas/types.yaml#/definitions/flag
- description:
- fixed-burst
-
required:
- compatible
- reg
@@ -610,6 +559,7 @@ dependencies:
allOf:
- $ref: ethernet-controller.yaml#
+ - $ref: snps,dwmac-common.yaml#
- if:
properties:
compatible:
--
2.55.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-02 0:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-02 0:30 [PATCH v2] dt-bindings: net: nvidia,tegra234-mgbe: Add missing properties Thierry Reding
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox