12371a03fSFlorian Fainelli# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 22371a03fSFlorian Fainelli%YAML 1.2 32371a03fSFlorian Fainelli--- 42371a03fSFlorian Fainelli$id: http://devicetree.org/schemas/net/brcm,amac.yaml# 52371a03fSFlorian Fainelli$schema: http://devicetree.org/meta-schemas/core.yaml# 62371a03fSFlorian Fainelli 7*dd3cb467SAndrew Lunntitle: Broadcom AMAC Ethernet Controller 82371a03fSFlorian Fainelli 92371a03fSFlorian Fainellimaintainers: 102371a03fSFlorian Fainelli - Florian Fainelli <f.fainelli@gmail.com> 112371a03fSFlorian Fainelli 122371a03fSFlorian FainelliallOf: 132371a03fSFlorian Fainelli - $ref: "ethernet-controller.yaml#" 142371a03fSFlorian Fainelli - if: 152371a03fSFlorian Fainelli properties: 162371a03fSFlorian Fainelli compatible: 172371a03fSFlorian Fainelli contains: 182371a03fSFlorian Fainelli enum: 192371a03fSFlorian Fainelli - brcm,amac 202371a03fSFlorian Fainelli then: 212371a03fSFlorian Fainelli properties: 222371a03fSFlorian Fainelli reg: 232371a03fSFlorian Fainelli maxItems: 2 242371a03fSFlorian Fainelli reg-names: 252371a03fSFlorian Fainelli maxItems: 2 262371a03fSFlorian Fainelli 272371a03fSFlorian Fainelli - if: 282371a03fSFlorian Fainelli properties: 292371a03fSFlorian Fainelli compatible: 302371a03fSFlorian Fainelli contains: 312371a03fSFlorian Fainelli enum: 322371a03fSFlorian Fainelli - brcm,nsp-amac 332371a03fSFlorian Fainelli then: 342371a03fSFlorian Fainelli properties: 352371a03fSFlorian Fainelli reg: 362371a03fSFlorian Fainelli minItems: 2 372371a03fSFlorian Fainelli maxItems: 2 382371a03fSFlorian Fainelli reg-names: 392371a03fSFlorian Fainelli minItems: 2 402371a03fSFlorian Fainelli maxItems: 2 412371a03fSFlorian Fainelli 422371a03fSFlorian Fainelli - if: 432371a03fSFlorian Fainelli properties: 442371a03fSFlorian Fainelli compatible: 452371a03fSFlorian Fainelli contains: 462371a03fSFlorian Fainelli enum: 472371a03fSFlorian Fainelli - brcm,ns2-amac 482371a03fSFlorian Fainelli then: 492371a03fSFlorian Fainelli properties: 502371a03fSFlorian Fainelli reg: 512371a03fSFlorian Fainelli minItems: 3 522371a03fSFlorian Fainelli reg-names: 532371a03fSFlorian Fainelli minItems: 3 542371a03fSFlorian Fainelli 552371a03fSFlorian Fainelliproperties: 562371a03fSFlorian Fainelli compatible: 572371a03fSFlorian Fainelli enum: 582371a03fSFlorian Fainelli - brcm,amac 592371a03fSFlorian Fainelli - brcm,nsp-amac 602371a03fSFlorian Fainelli - brcm,ns2-amac 612371a03fSFlorian Fainelli 622371a03fSFlorian Fainelli interrupts: 632371a03fSFlorian Fainelli maxItems: 1 642371a03fSFlorian Fainelli 652371a03fSFlorian Fainelli reg: 662371a03fSFlorian Fainelli minItems: 1 672371a03fSFlorian Fainelli maxItems: 3 682371a03fSFlorian Fainelli 692371a03fSFlorian Fainelli reg-names: 702371a03fSFlorian Fainelli minItems: 1 712371a03fSFlorian Fainelli items: 722371a03fSFlorian Fainelli - const: amac_base 732371a03fSFlorian Fainelli - const: idm_base 742371a03fSFlorian Fainelli - const: nicpm_base 752371a03fSFlorian Fainelli 762371a03fSFlorian FainelliunevaluatedProperties: false 772371a03fSFlorian Fainelli 782371a03fSFlorian Fainelliexamples: 792371a03fSFlorian Fainelli - | 802371a03fSFlorian Fainelli #include <dt-bindings/interrupt-controller/arm-gic.h> 812371a03fSFlorian Fainelli 822371a03fSFlorian Fainelli amac0: ethernet@18022000 { 832371a03fSFlorian Fainelli compatible = "brcm,nsp-amac"; 842371a03fSFlorian Fainelli reg = <0x18022000 0x1000>, 852371a03fSFlorian Fainelli <0x18110000 0x1000>; 862371a03fSFlorian Fainelli reg-names = "amac_base", "idm_base"; 872371a03fSFlorian Fainelli interrupts = <GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>; 882371a03fSFlorian Fainelli }; 89