Tegra234 MGBE Multi-Gigabit Ethernet Controller
Schema identifier ($id): "http://devicetree.org/schemas/net/nvidia,tegra234-mgbe.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Thierry Reding <treding@nvidia.com>", "Jon Hunter <jonathanh@nvidia.com>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "nvidia,tegra234-mgbe"
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):"hypervisor"
Item 2
Exact value (
const):"mac"
Item 3
Exact value (
const):"xpcs"
interrupts — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 3
interrupt-names — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"common"
Item 2
Exact value (
const):"macsec-ns"
Item 3
Exact value (
const):"macsec"
clocks — required here #
Maximum number of items (maxItems): 12
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"mgbe"
Item 2
Exact value (
const):"mac"
Item 3
Exact value (
const):"mac-divider"
Item 4
Exact value (
const):"ptp_ref"
Item 5
Exact value (
const):"rx-input-m"
Item 6
Exact value (
const):"rx-input"
Item 7
Exact value (
const):"tx"
Item 8
Exact value (
const):"eee-pcs"
Item 9
Exact value (
const):"rx-pcs-input"
Item 10
Exact value (
const):"rx-pcs-m"
Item 11
Exact value (
const):"rx-pcs"
Item 12
Exact value (
const):"tx-pcs"
resets — required here #
Maximum number of items (maxItems): 2
reset-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"mac"
Item 2
Exact value (
const):"pcs"
interconnects — not listed as required here #
Array item rules (items) #
Item 1
memory read client
Item 2
memory write client
interconnect-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"dma-mem"
Item 2
Exact value (
const):"write"
iommus — not listed as required here #
Maximum number of items (maxItems): 1
power-domains — required here #
Maximum number of items (maxItems): 1
phy-handle — required here #
true — No constraints added by this property rule.
phy-mode — required here #
Rule for matching array elements (contains) #
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.
Optional node for embedded MDIO controller.
Required in this object (required): "compatible", "reg", "interrupts", "interrupt-names", "clocks", "clock-names", "resets", "reset-names", "power-domains", "phy-handle", "phy-mode"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/tegra234-clock.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/memory/tegra234-mc.h>
#include <dt-bindings/power/tegra234-powergate.h>
#include <dt-bindings/reset/tegra234-reset.h>
ethernet@6800000 {
compatible = "nvidia,tegra234-mgbe";
reg = <0x06800000 0x10000>,
<0x06810000 0x10000>,
<0x068a0000 0x10000>;
reg-names = "hypervisor", "mac", "xpcs";
interrupts = <GIC_SPI 384 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "common";
clocks = <&bpmp TEGRA234_CLK_MGBE0_APP>,
<&bpmp TEGRA234_CLK_MGBE0_MAC>,
<&bpmp TEGRA234_CLK_MGBE0_MAC_DIVIDER>,
<&bpmp TEGRA234_CLK_MGBE0_PTP_REF>,
<&bpmp TEGRA234_CLK_MGBE0_RX_INPUT_M>,
<&bpmp TEGRA234_CLK_MGBE0_RX_INPUT>,
<&bpmp TEGRA234_CLK_MGBE0_TX>,
<&bpmp TEGRA234_CLK_MGBE0_EEE_PCS>,
<&bpmp TEGRA234_CLK_MGBE0_RX_PCS_INPUT>,
<&bpmp TEGRA234_CLK_MGBE0_RX_PCS_M>,
<&bpmp TEGRA234_CLK_MGBE0_RX_PCS>,
<&bpmp TEGRA234_CLK_MGBE0_TX_PCS>;
clock-names = "mgbe", "mac", "mac-divider", "ptp_ref", "rx-input-m",
"rx-input", "tx", "eee-pcs", "rx-pcs-input", "rx-pcs-m",
"rx-pcs", "tx-pcs";
resets = <&bpmp TEGRA234_RESET_MGBE0_MAC>,
<&bpmp TEGRA234_RESET_MGBE0_PCS>;
reset-names = "mac", "pcs";
interconnects = <&mc TEGRA234_MEMORY_CLIENT_MGBEARD &emc>,
<&mc TEGRA234_MEMORY_CLIENT_MGBEAWR &emc>;
interconnect-names = "dma-mem", "write";
iommus = <&smmu_niso0 TEGRA234_SID_MGBE>;
power-domains = <&bpmp TEGRA234_POWER_DOMAIN_MGBEA>;
phy-handle = <&mgbe0_phy>;
phy-mode = "usxgmii";
mdio {
#address-cells = <1>;
#size-cells = <0>;
mgbe0_phy: phy@0 {
compatible = "ethernet-phy-ieee802.3-c45";
reg = <0x0>;
#phy-cells = <0>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)