APM X-Gene SoC Ethernet
Schema identifier ($id): "http://devicetree.org/schemas/net/apm,xgene-enet.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Iyappan Subramanian <iyappan@os.amperecomputing.com>", "Keyur Chudgar <keyur@os.amperecomputing.com>", "Quan Nguyen <quan@os.amperecomputing.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):ethernet-controller.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "apm,xgene-enet", "apm,xgene1-sgenet", "apm,xgene1-xgenet", "apm,xgene2-sgenet", "apm,xgene2-xgenet"
reg — required here #
Maximum number of items (maxItems): 3
reg-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"enet_csr"
Item 2
Exact value (
const):"ring_csr"
Item 3
Exact value (
const):"ring_cmd"
clocks — not listed as required here #
Maximum number of items (maxItems): 1
dma-coherent — not listed as required here #
true — No constraints added by this property rule.
interrupts — required here #
An rx and tx completion interrupt pair per queue
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 16
channel — not listed as required here #
Ethernet to CPU start channel number
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
port-id — not listed as required here #
Port number
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Maximum value (maximum): 1
tx-delay — not listed as required here #
Delay value for RGMII bridge TX clock
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Maximum value (maximum): 7
Default value (default): 4
rx-delay — not listed as required here #
Delay value for RGMII bridge RX clock
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Maximum value (maximum): 7
Default value (default): 2
rxlos-gpios — not listed as required here #
Input GPIO from SFP+ module indicating incoming signal
Maximum number of items (maxItems): 1
mdio — not listed as required here #
MDIO bus subnode
Shared schema rule ($ref): mdio.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
compatible — required here
Exact value (const): "apm,xgene-mdio"
Required in this object (required): "compatible"
Required in this object (required): "compatible", "reg", "interrupts"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
ethernet@17020000 {
compatible = "apm,xgene-enet";
reg = <0x17020000 0xd100>,
<0x17030000 0x400>,
<0x10000000 0x200>;
reg-names = "enet_csr", "ring_csr", "ring_cmd";
interrupts = <0x0 0x3c 0x4>;
channel = <0>;
port-id = <0>;
clocks = <&menetclk 0>;
local-mac-address = [00 01 73 00 00 01];
phy-connection-type = "rgmii";
phy-handle = <&menetphy>;
mdio {
compatible = "apm,xgene-mdio";
#address-cells = <1>;
#size-cells = <0>;
menetphy: ethernet-phy@3 {
compatible = "ethernet-phy-id001c.c915";
reg = <3>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)