Airoha EN7581 Frame Engine Ethernet controller
Schema identifier ($id): "http://devicetree.org/schemas/net/airoha,en7581-eth.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Lorenzo Bianconi <lorenzo@kernel.org>"
The frame engine ethernet controller can be found on Airoha SoCs. These SoCs have multi-GMAC ports.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "airoha,en7581-eth", "airoha,an7583-eth"
reg — required here #
Array item rules (items) #
Item 1
Frame engine base address
Item 2
QDMA0 base address
Item 3
QDMA1 base address
reg-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"fe"
Item 2
Exact value (
const):"qdma0"
Item 3
Exact value (
const):"qdma1"
interrupts — required here #
Array item rules (items) #
Item 1
QDMA lan irq0
Item 2
QDMA lan irq1
Item 3
QDMA lan irq2
Item 4
QDMA lan irq3
Item 5
QDMA wan irq0
Item 6
QDMA wan irq1
Item 7
QDMA wan irq2
Item 8
QDMA wan irq3
Item 9
FE error irq
Item 10
PDMA irq
resets — required here #
Minimum number of items (minItems): 7
Maximum number of items (maxItems): 8
reset-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"fe"
Item 2
Exact value (
const):"pdma"
Item 3
Exact value (
const):"qdma"
Item 4
Exact value (
const):"xsi-mac"
Item 5
Exact value (
const):"hsi0-mac"
Item 6
Exact value (
const):"hsi1-mac"
Item 7
Item 8
Exact value (
const):"xfp-mac"
Minimum number of items (minItems): 7
memory-region — not listed as required here #
Array item rules (items) #
Item 1
QDMA0 buffer memory
Item 2
QDMA1 buffer memory
memory-region-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"qdma0-buf"
Item 2
Exact value (
const):"qdma1-buf"
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
airoha,npu — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
Phandle to the node used to configure the NPU module. The Airoha Network Processor Unit (NPU) provides a configuration interface to implement hardware flow offloading programming Packet Processor Engine (PPE) flow table.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):ethernet-controller.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
resets— not listed as required hereMinimum number of items (
minItems):8
reset-names— not listed as required hereMinimum number of items (
minItems):8
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
resets— not listed as required hereMaximum number of items (
maxItems):7
reset-names— not listed as required hereMaximum number of items (
maxItems):7
Properties matching a name pattern (patternProperties) #
^ethernet@[1-4]$ — name matches this regular expression #
Value type (type): "object"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Shared schema rule ($ref): ethernet-controller.yaml#
Ethernet GMAC port associated to the MAC controller
Properties and child nodes (properties) #
compatible — required here
Exact value (const): "airoha,eth-mac"
reg — required here
Minimum value (minimum): 1
Maximum value (maximum): 4
GMAC port identifier
Required in this object (required): "reg", "compatible"
Required in this object (required): "compatible", "reg", "interrupts", "resets", "reset-names"
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/interrupt-controller/irq.h>
#include <dt-bindings/clock/en7523-clk.h>
soc {
#address-cells = <2>;
#size-cells = <2>;
eth: ethernet@1fb50000 {
compatible = "airoha,en7581-eth";
reg = <0 0x1fb50000 0 0x2600>,
<0 0x1fb54000 0 0x2000>,
<0 0x1fb56000 0 0x2000>;
reg-names = "fe", "qdma0", "qdma1";
resets = <&scuclk 44>,
<&scuclk 30>,
<&scuclk 31>,
<&scuclk 6>,
<&scuclk 15>,
<&scuclk 16>,
<&scuclk 17>,
<&scuclk 26>;
reset-names = "fe", "pdma", "qdma", "xsi-mac",
"hsi0-mac", "hsi1-mac", "hsi-mac",
"xfp-mac";
interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;
memory-region = <&qdma0_buf>, <&qdma1_buf>;
memory-region-names = "qdma0-buf", "qdma1-buf";
airoha,npu = <&npu>;
#address-cells = <1>;
#size-cells = <0>;
mac: ethernet@1 {
compatible = "airoha,eth-mac";
reg = <1>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)