MediaTek STAR Ethernet MAC Controller
Schema identifier ($id): "http://devicetree.org/schemas/net/mediatek,star-emac.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Bartosz Golaszewski <bgolaszewski@baylibre.com>"
This Ethernet MAC is used on the MT8* family of SoCs from MediaTek. It's compliant with 802.3 standards and supports half- and full-duplex modes with flow-control as well as CRC offloading and VLAN tags.
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): "mediatek,mt8516-eth", "mediatek,mt8518-eth", "mediatek,mt8175-eth", "mediatek,mt8365-eth"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Minimum number of items (minItems): 3
Maximum number of items (maxItems): 3
clock-names — required here #
Array items beyond the listed positions (additionalItems) #
false
Not allowed by this rule.
Array item rules (items) #
Item 1
Exact value (
const):"core"
Item 2
Exact value (
const):"reg"
Item 3
Exact value (
const):"trans"
mediatek,pericfg — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
Phandle to the device containing the PERICFG register range. This is used to control the MII mode.
mediatek,rmii-rxc — not listed as required here #
Value type (type): "boolean"
If present, indicates that the RMII reference clock, which is from external PHYs, is connected to RXC pin. Otherwise, is connected to TXC pin.
mediatek,rxc-inverse — not listed as required here #
Value type (type): "boolean"
If present, indicates that clock on RXC pad will be inversed.
mediatek,txc-inverse — not listed as required here #
Value type (type): "boolean"
If present, indicates that clock on TXC pad will be inversed.
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.
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "mediatek,pericfg", "phy-handle"
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/clock/mt8516-clk.h>
ethernet: ethernet@11180000 {
compatible = "mediatek,mt8516-eth";
reg = <0x11180000 0x1000>;
mediatek,pericfg = <&pericfg>;
interrupts = <GIC_SPI 111 IRQ_TYPE_LEVEL_LOW>;
clocks = <&topckgen CLK_TOP_RG_ETH>,
<&topckgen CLK_TOP_66M_ETH>,
<&topckgen CLK_TOP_133M_ETH>;
clock-names = "core", "reg", "trans";
phy-handle = <ð_phy>;
phy-mode = "rmii";
mdio {
#address-cells = <1>;
#size-cells = <0>;
eth_phy: ethernet-phy@0 {
reg = <0>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)