Freescale Fast Ethernet Controller (FEC)
Schema identifier ($id): "http://devicetree.org/schemas/net/fsl,fec.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Shawn Guo <shawnguo@kernel.org>", "Wei Fang <wei.fang@nxp.com>", "NXP Linux Team <linux-imx@nxp.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 #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"fsl,imx25-fec","fsl,imx27-fec","fsl,imx28-fec","fsl,imx6q-fec","fsl,mvf600-fec","fsl,s32v234-fec"
Rule 2
Array item rules (
items)Item 1
Item 2
Exact value (
const):"fsl,imx25-fec"
Rule 3
Array item rules (
items)Item 1
Item 2
Exact value (
const):"fsl,imx27-fec"
Rule 4
Array item rules (
items)Item 1
Item 2
Exact value (
const):"fsl,imx6q-fec"
Rule 5
Array item rules (
items)Item 1
Item 2
Exact value (
const):"fsl,imx6sx-fec"
Rule 6
Array item rules (
items)Item 1
Exact value (
const):"fsl,imx8mq-fec"Item 2
Exact value (
const):"fsl,imx6sx-fec"
Rule 7
Array item rules (
items)Item 1
Allowed values (
enum):"fsl,imx8mm-fec","fsl,imx8mn-fec","fsl,imx8mp-fec","fsl,imx93-fec"Item 2
Exact value (
const):"fsl,imx8mq-fec"Item 3
Exact value (
const):"fsl,imx6sx-fec"
Rule 8
Array item rules (
items)Item 1
Exact value (
const):"fsl,imx8qm-fec"Item 2
Exact value (
const):"fsl,imx6sx-fec"
Rule 9
Array item rules (
items)Item 1
Item 2
Exact value (
const):"fsl,imx8qm-fec"Item 3
Exact value (
const):"fsl,imx6sx-fec"
Rule 10
Array item rules (
items)Item 1
Item 2
Exact value (
const):"fsl,imx6ul-fec"Item 3
Exact value (
const):"fsl,imx6q-fec"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 4
interrupt-names — not listed as required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Exact value (
const):"int0"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"int0"Item 2
Exact value (
const):"pps"
Rule 3
Array item rules (
items)Item 1
Exact value (
const):"int0"Item 2
Exact value (
const):"int1"Item 3
Exact value (
const):"int2"
Rule 4
Array item rules (
items)Item 1
Exact value (
const):"int0"Item 2
Exact value (
const):"int1"Item 3
Exact value (
const):"int2"Item 4
Exact value (
const):"pps"
clocks — not listed as required here #
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 5
The "ipg", for MAC ipg_clk_s, ipg_clk_mac_s that are for register accessing. The "ahb", for MAC ipg_clk, ipg_clk_mac that are bus clock. The "ptp"(option), for IEEE1588 timer clock that requires the clock. The "enet_clk_ref"(option), for MAC transmit/receiver reference clock like RGMII TXC clock or RMII reference clock. It depends on board design, the clock is required if RGMII TXC and RMII reference clock source from SOC internal PLL. The "enet_out"(option), output clock for external device, like supply clock for PHY. The clock is required if PHY clock source from SOC. The "enet_2x_txclk"(option), for RGMII sampling clock which fixed at 250Mhz. The clock is required if SoC RGMII enable clock delay.
clock-names — not listed as required here #
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 5
Array item rules (items) #
Allowed values (
enum):"ipg","ahb","ptp","enet_clk_ref","enet_out","enet_2x_txclk"
phy-mode — not listed as required here #
true — No constraints added by this property rule.
phy-handle — not listed as required here #
true — No constraints added by this property rule.
fixed-link — not listed as required here #
true — No constraints added by this property rule.
local-mac-address — not listed as required here #
true — No constraints added by this property rule.
mac-address — not listed as required here #
true — No constraints added by this property rule.
nvmem-cells — not listed as required here #
true — No constraints added by this property rule.
nvmem-cell-names — not listed as required here #
true — No constraints added by this property rule.
tx-internal-delay-ps — not listed as required here #
Allowed values (enum): 0, 2000
rx-internal-delay-ps — not listed as required here #
Allowed values (enum): 0, 2000
phy-supply — not listed as required here #
Regulator that powers the Ethernet PHY.
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
fsl,num-tx-queues — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
The property is valid for enet-avb IP, which supports hw multi queues. Should specify the tx queue number, otherwise set tx queue number to 1.
Allowed values (enum): 1, 2, 3
fsl,num-rx-queues — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
The property is valid for enet-avb IP, which supports hw multi queues. Should specify the rx queue number, otherwise set rx queue number to 1.
Allowed values (enum): 1, 2, 3
fsl,magic-packet — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
If present, indicates that the hardware supports waking up via magic packet.
fsl,err006687-workaround-present — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
If present indicates that the system has the hardware workaround for ERR006687 applied and does not need a software workaround.
fsl,stop-mode — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array
Array item rules (items) #
Item 1
Array item rules (
items)Item 1
phandle to general purpose register node
Item 2
the gpr register offset for ENET stop request
Item 3
the gpr bit offset for ENET stop request
Register bits of stop mode control, the format is <&gpr req_gpr req_bit>.
fsl,pps-channel — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Default value (default): 0
Specifies to which timer instance the PPS signal is routed.
Allowed values (enum): 0, 1, 2, 3
mdio — not listed as required here #
Shared schema rule ($ref): mdio.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Specifies the mdio bus in the FEC, used as a container for phy nodes.
phy-reset-gpios — not listed as required here #
Deprecated (deprecated): true
Should specify the gpio for phy reset.
phy-reset-duration — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Deprecated (deprecated): true
Reset duration in milliseconds. Should present only if property "phy-reset-gpios" is available. Missing the property will have the duration be 1 millisecond. Numbers greater than 1000 are invalid and 1 millisecond will be used instead.
phy-reset-active-high — not listed as required here #
Value type (type): "boolean"
Deprecated (deprecated): true
If present then the reset sequence using the GPIO specified in the "phy-reset-gpios" property is reversed (H=reset state, L=operation state).
phy-reset-post-delay — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Deprecated (deprecated): true
Post reset delay in milliseconds. If present then a delay of phy-reset-post-delay milliseconds will be observed after the phy-reset-gpios has been toggled. Can be omitted thus no delay is observed. Delay is in range of 1ms to 1000ms. Other delays are invalid.
iommus — not listed as required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "interrupts"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
ethernet@83fec000 {
compatible = "fsl,imx51-fec", "fsl,imx27-fec";
reg = <0x83fec000 0x4000>;
interrupts = <87>;
phy-mode = "mii";
phy-reset-gpios = <&gpio2 14 0>;
phy-supply = <®_fec_supply>;
};
ethernet@83fed000 {
compatible = "fsl,imx51-fec", "fsl,imx27-fec";
reg = <0x83fed000 0x4000>;
interrupts = <87>;
phy-mode = "mii";
phy-reset-gpios = <&gpio2 14 0>;
phy-supply = <®_fec_supply>;
phy-handle = <ðphy0>;
mdio {
#address-cells = <1>;
#size-cells = <0>;
ethphy0: ethernet-phy@0 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <0>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Line 199: Deprecated optional properties:
Line 200: To avoid these, create a phy node according to ethernet-phy.yaml in the same
Line 201: directory, and point the FEC's "phy-handle" property to it. Then use
Line 202: the phy's reset binding, again described by ethernet-phy.yaml.
Line 242: FIXME: We had better set additionalProperties to false to avoid invalid or at
Line 243: least undocumented properties. However, PHY may have a deprecated option to
Line 244: place PHY OF properties in the MAC node, such as Micrel PHY, and we can find
Line 245: these boards which is based on i.MX6QDL.