summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSerge Semin <fancer.lancer@gmail.com>2025-09-11 15:38:29 +0300
committerSerge Semin <fancer.lancer@gmail.com>2026-08-13 20:36:54 +0300
commit223d668bdffc91eb82ac267586a58de603e8e61c (patch)
treeed5e304b7e8efb2f46f4d6188397f9fd96e68e85
parent9919ac0db02eb8175d599f5cac8c76b2d2a3785e (diff)
downloadlinux-223d668bdffc91eb82ac267586a58de603e8e61c.tar.gz
linux-223d668bdffc91eb82ac267586a58de603e8e61c.zip
dt-bindings: net: dwmac: Add embedded GPIO-chip properties
Synopsys DesignWare Ethernet controllers can be synthesized with General-Purpose IOs support. GPIOs can work either as inputs or as outputs depending on the gpi_i/gpo_o ports they belong. The ports width (number of possible inputs/outputs) and the configuration registers layout depend on the IP-core version and on the GIW/GOW (GP I/O port diwth) IP-core synthesize parameter. For instance, DW GMAC can have from 0 to 4 GPIs and from 0 to 4 GPOs, meanwhile DW QoS/xGMAC have wider ports width up to 16 pins of each type. Since these GPIOs can be used as generic platform GPIOs the DW MAC DT-node is supposed to describe them accordingly. So the DW MAC DT-bindings are extended to permit the "ngpios" property, which can't have a value greater than 32, standard GPIO-related properties like "gpio-controller" and "#gpio-cells", and, if GPIs are supposed to be detected, IRQ-controller related properties. Signed-off-by: Serge Semin <fancer.lancer@gmail.com>
-rw-r--r--Documentation/devicetree/bindings/net/snps,dwmac.yaml17
1 files changed, 17 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/net/snps,dwmac.yaml b/Documentation/devicetree/bindings/net/snps,dwmac.yaml
index ae73c7bcf82c..80e0a83de9ca 100644
--- a/Documentation/devicetree/bindings/net/snps,dwmac.yaml
+++ b/Documentation/devicetree/bindings/net/snps,dwmac.yaml
@@ -185,6 +185,23 @@ properties:
power-domains:
maxItems: 1
+ ngpios:
+ description:
+ Total number of GPIOs the MAC supports. The property shall include both
+ the GPI and GPO ports width.
+ minimum: 1
+ maximum: 32
+
+ gpio-controller: true
+
+ "#gpio-cells":
+ const: 2
+
+ interrupt-controller: true
+
+ "#interrupt-cells":
+ const: 2
+
mac-mode:
$ref: ethernet-controller.yaml#/properties/phy-connection-type
description: