Broadcom ASP Ethernet controller
Schema identifier ($id): "http://devicetree.org/schemas/net/brcm,asp-v2.0.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Justin Chen <justin.chen@broadcom.com>", "Florian Fainelli <florian.fainelli@broadcom.com>"
Broadcom Ethernet controller first introduced with 72165
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Item 2
Exact value (
const):"brcm,asp-v3.0"
Rule 2
Array item rules (
items)Item 1
Item 2
Exact value (
const):"brcm,asp-v2.2"
Rule 3
Array item rules (
items)Item 1
Item 2
Exact value (
const):"brcm,asp-v2.1"
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 1
reg — required here #
Maximum number of items (maxItems): 1
ranges — required here #
true — No constraints added by this property rule.
interrupts — required here #
Array item rules (items) #
Item 1
RX/TX interrupt
Item 2
Wake-on-LAN interrupt
clocks — required here #
Maximum number of items (maxItems): 1
ethernet-ports — not listed as required here #
Value type (type): "object"
Properties and child nodes (properties) #
#address-cells — not listed as required here
Exact value (const): 1
#size-cells — not listed as required here
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
^port@[0-9a-f]+$ — name matches this regular expression
Value type (type): "object"
Shared schema rule ($ref): ethernet-controller.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties)
false
Not allowed by this rule.
Properties and child nodes (properties)
reg — required here
Maximum number of items (maxItems): 1
Port number
brcm,channel — required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
ASP Channel Number
The depacketizer channel that consumes packets from the unimac/port.
Required in this object (required): "reg", "brcm,channel"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Properties matching a name pattern (patternProperties) #
^mdio@[0-9a-f]+$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): brcm,unimac-mdio.yaml
ASP internal UniMAC MDIO bus
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "ranges"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
ethernet@9c00000 {
compatible = "brcm,bcm74165-asp", "brcm,asp-v2.1";
reg = <0x9c00000 0x1fff14>;
interrupts-extended = <&intc GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>,
<&aon_pm_l2_intc 14>;
ranges = <0x0 0x9c00000 0x1fff14>;
clocks = <&scmi 14>;
#address-cells = <1>;
#size-cells = <1>;
mdio@c614 {
compatible = "brcm,asp-v2.1-mdio";
reg = <0xc614 0x8>;
reg-names = "mdio";
#address-cells = <1>;
#size-cells = <0>;
phy0: ethernet-phy@1 {
reg = <1>;
};
};
mdio@ce14 {
compatible = "brcm,asp-v2.1-mdio";
reg = <0xce14 0x8>;
reg-names = "mdio";
#address-cells = <1>;
#size-cells = <0>;
phy1: ethernet-phy@1 {
reg = <1>;
};
};
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
brcm,channel = <8>;
phy-mode = "rgmii";
phy-handle = <&phy0>;
};
port@1 {
reg = <1>;
brcm,channel = <9>;
phy-mode = "rgmii";
phy-handle = <&phy1>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)