Altera SOCFPGA SoC DWMAC controller
Schema identifier ($id): "http://devicetree.org/schemas/net/altr,socfpga-stmmac.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Matthew Gerlach <matthew.gerlach@altera.com>"
This binding describes the Altera SOCFPGA SoC implementation of the Synopsys DWMAC for the Cyclone5, Arria5, Stratix10, Agilex5 and Agilex7 families of chips.
Automatic schema selection (select) #
Properties and child nodes (
properties) #
compatible— required here #Rule for matching array elements (
contains)Allowed values (
enum):"altr,socfpga-stmmac","altr,socfpga-stmmac-a10-s10","altr,socfpga-stmmac-agilex5"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Exact value (
const):"altr,socfpga-stmmac"Item 2
Exact value (
const):"snps,dwmac-3.70a"Item 3
Exact value (
const):"snps,dwmac"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"altr,socfpga-stmmac-a10-s10"Item 2
Exact value (
const):"snps,dwmac-3.72a"Item 3
Exact value (
const):"snps,dwmac"
Rule 3
Array item rules (
items)Item 1
Exact value (
const):"altr,socfpga-stmmac-a10-s10"Item 2
Exact value (
const):"snps,dwmac-3.74a"Item 3
Exact value (
const):"snps,dwmac"
Rule 4
Array item rules (
items)Item 1
Exact value (
const):"altr,socfpga-stmmac-agilex5"Item 2
Exact value (
const):"snps,dwxgmac-2.10"
clocks — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
GMAC main clock
Item 2
PTP reference clock. This clock is used for programming the Timestamp Addend Register. If not passed then the system clock will be used and this is fine on some platforms.
clock-names — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"stmmaceth"
Item 2
Exact value (
const):"ptp_ref"
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
interrupt-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"macirq"
iommus — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
phy-mode — not listed as required here #
Allowed values (enum): "gmii", "mii", "rgmii", "rgmii-id", "rgmii-rxid", "rgmii-txid", "sgmii", "1000base-x"
rxc-skew-ps — not listed as required here #
Skew control of RXC pad
rxd0-skew-ps — not listed as required here #
Skew control of RX data 0 pad
rxd1-skew-ps — not listed as required here #
Skew control of RX data 1 pad
rxd2-skew-ps — not listed as required here #
Skew control of RX data 2 pad
rxd3-skew-ps — not listed as required here #
Skew control of RX data 3 pad
rxdv-skew-ps — not listed as required here #
Skew control of RX CTL pad
txc-skew-ps — not listed as required here #
Skew control of TXC pad
txen-skew-ps — not listed as required here #
Skew control of TXC pad
altr,emac-splitter — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
Should be the phandle to the emac splitter soft IP node if DWMAC controller is connected an emac splitter.
altr,f2h_ptp_ref_clk — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
Phandle to Precision Time Protocol reference clock. This clock is common to gmac instances and defaults to osc1.
altr,gmii-to-sgmii-converter — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
Should be the phandle to the gmii to sgmii converter soft IP.
altr,sysmgr-syscon — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array
Should be the phandle to the system manager node that encompass the glue register, the register offset, and the register shift. On Cyclone5/Arria5, the register shift represents the PHY mode bits, while on the Arria10/Stratix10/Agilex platforms, the register shift represents bit for each emac to enable/disable signals from the FPGA fabric to the EMAC modules.
Array item rules (items) #
Item 1
Array item rules (
items)Item 1
phandle to the system manager node
Item 2
offset of the control register
Item 3
shift within the control register
Properties matching a name pattern (patternProperties) #
^mdio[0-9]$ — name matches this regular expression #
Value type (type): "object"
Required in this object (required): "compatible", "clocks", "clock-names", "altr,sysmgr-syscon"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):snps,dwmac.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
soc {
#address-cells = <1>;
#size-cells = <1>;
ethernet@ff700000 {
compatible = "altr,socfpga-stmmac", "snps,dwmac-3.70a",
"snps,dwmac";
altr,sysmgr-syscon = <&sysmgr 0x60 0>;
reg = <0xff700000 0x2000>;
interrupts = <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "macirq";
mac-address = [00 00 00 00 00 00]; /* Filled in by U-Boot */
clocks = <&emac_0_clk>;
clock-names = "stmmaceth";
phy-mode = "sgmii";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Line 16: TODO: Determine how to handle the Arria10 reset-name, stmmaceth-ocp, that
Line 17: does not validate against net/snps,dwmac.yaml.