| 1 |
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause |
| 2 |
%YAML 1.2 |
| 3 |
--- |
| 4 |
$id: http://devicetree.org/schemas/net/brcm,amac.yaml# |
| 5 |
$schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 |
|
| 7 |
title: Broadcom AMAC Ethernet Controller |
| 8 |
|
| 9 |
maintainers: |
| 10 |
- Florian Fainelli <[email protected]> |
| 11 |
|
| 12 |
allOf: |
| 13 |
- $ref: ethernet-controller.yaml# |
| 14 |
- if: |
| 15 |
properties: |
| 16 |
compatible: |
| 17 |
contains: |
| 18 |
enum: |
| 19 |
- brcm,amac |
| 20 |
then: |
| 21 |
properties: |
| 22 |
reg: |
| 23 |
maxItems: 2 |
| 24 |
reg-names: |
| 25 |
maxItems: 2 |
| 26 |
|
| 27 |
- if: |
| 28 |
properties: |
| 29 |
compatible: |
| 30 |
contains: |
| 31 |
enum: |
| 32 |
- brcm,nsp-amac |
| 33 |
then: |
| 34 |
properties: |
| 35 |
reg: |
| 36 |
minItems: 2 |
| 37 |
maxItems: 2 |
| 38 |
reg-names: |
| 39 |
minItems: 2 |
| 40 |
maxItems: 2 |
| 41 |
|
| 42 |
- if: |
| 43 |
properties: |
| 44 |
compatible: |
| 45 |
contains: |
| 46 |
enum: |
| 47 |
- brcm,ns2-amac |
| 48 |
then: |
| 49 |
properties: |
| 50 |
reg: |
| 51 |
minItems: 3 |
| 52 |
reg-names: |
| 53 |
minItems: 3 |
| 54 |
|
| 55 |
properties: |
| 56 |
compatible: |
| 57 |
enum: |
| 58 |
- brcm,amac |
| 59 |
- brcm,nsp-amac |
| 60 |
- brcm,ns2-amac |
| 61 |
|
| 62 |
interrupts: |
| 63 |
maxItems: 1 |
| 64 |
|
| 65 |
reg: |
| 66 |
minItems: 1 |
| 67 |
maxItems: 3 |
| 68 |
|
| 69 |
reg-names: |
| 70 |
minItems: 1 |
| 71 |
items: |
| 72 |
- const: amac_base |
| 73 |
- const: idm_base |
| 74 |
- const: nicpm_base |
| 75 |
|
| 76 |
dma-coherent: true |
| 77 |
|
| 78 |
unevaluatedProperties: false |
| 79 |
|
| 80 |
examples: |
| 81 |
- | |
| 82 |
#include <dt-bindings/interrupt-controller/arm-gic.h> |
| 83 |
|
| 84 |
amac0: ethernet@18022000 { |
| 85 |
compatible = "brcm,nsp-amac"; |
| 86 |
reg = <0x18022000 0x1000>, |
| 87 |
<0x18110000 0x1000>; |
| 88 |
reg-names = "amac_base", "idm_base"; |
| 89 |
interrupts = <GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>; |
| 90 |
}; |