Broadcom AMAC Ethernet Controller

Schema identifier ($id): "http://devicetree.org/schemas/net/brcm,amac.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Florian Fainelli <f.fainelli@gmail.com>"

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 here

Rule for matching array elements (contains)

Allowed values (enum): "brcm,amac"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

Maximum number of items (maxItems): 2

reg-names — not listed as required here

Maximum number of items (maxItems): 2

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "brcm,nsp-amac"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

reg-names — not listed as required here

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "brcm,ns2-amac"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

Minimum number of items (minItems): 3

reg-names — not listed as required here

Minimum number of items (minItems): 3

Properties and child nodes (properties) #

compatible — not listed as required here #

Allowed values (enum): "brcm,amac", "brcm,nsp-amac", "brcm,ns2-amac"

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

reg — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 3

reg-names — not listed as required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "amac_base"

Item 2

Exact value (const): "idm_base"

Item 3

Exact value (const): "nicpm_base"

dma-coherent — not listed as required here #

true — No constraints added by this property rule.

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>

amac0: ethernet@18022000 {
   compatible = "brcm,nsp-amac";
   reg = <0x18022000 0x1000>,
         <0x18110000 0x1000>;
   reg-names = "amac_base", "idm_base";
   interrupts = <GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Edit this page