| 1 |
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) |
| 2 |
%YAML 1.2 |
| 3 |
--- |
| 4 |
$id: http://devicetree.org/schemas/net/nxp,lpc1850-dwmac.yaml# |
| 5 |
$schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 |
|
| 7 |
title: NXP LPC1850 GMAC ethernet controller |
| 8 |
|
| 9 |
maintainers: |
| 10 |
- Frank Li <[email protected]> |
| 11 |
|
| 12 |
# We need a select here so we don't match all nodes with 'snps,dwmac' |
| 13 |
select: |
| 14 |
properties: |
| 15 |
compatible: |
| 16 |
contains: |
| 17 |
enum: |
| 18 |
- nxp,lpc1850-dwmac |
| 19 |
required: |
| 20 |
- compatible |
| 21 |
|
| 22 |
properties: |
| 23 |
compatible: |
| 24 |
items: |
| 25 |
- enum: |
| 26 |
- nxp,lpc1850-dwmac |
| 27 |
- const: snps,dwmac-3.611 |
| 28 |
- const: snps,dwmac |
| 29 |
|
| 30 |
reg: |
| 31 |
maxItems: 1 |
| 32 |
|
| 33 |
clocks: |
| 34 |
maxItems: 1 |
| 35 |
|
| 36 |
clock-names: |
| 37 |
items: |
| 38 |
- const: stmmaceth |
| 39 |
|
| 40 |
interrupts: |
| 41 |
maxItems: 1 |
| 42 |
|
| 43 |
interrupt-names: |
| 44 |
items: |
| 45 |
- const: macirq |
| 46 |
|
| 47 |
resets: |
| 48 |
maxItems: 1 |
| 49 |
|
| 50 |
reset-names: |
| 51 |
items: |
| 52 |
- const: stmmaceth |
| 53 |
|
| 54 |
required: |
| 55 |
- compatible |
| 56 |
- reg |
| 57 |
- clocks |
| 58 |
- clock-names |
| 59 |
- interrupts |
| 60 |
- interrupt-names |
| 61 |
|
| 62 |
allOf: |
| 63 |
- $ref: snps,dwmac.yaml# |
| 64 |
|
| 65 |
unevaluatedProperties: false |
| 66 |
|
| 67 |
examples: |
| 68 |
- | |
| 69 |
#include <dt-bindings/clock/lpc18xx-ccu.h> |
| 70 |
|
| 71 |
ethernet@40010000 { |
| 72 |
compatible = "nxp,lpc1850-dwmac", "snps,dwmac-3.611", "snps,dwmac"; |
| 73 |
reg = <0x40010000 0x2000>; |
| 74 |
interrupts = <5>; |
| 75 |
interrupt-names = "macirq"; |
| 76 |
clocks = <&ccu1 CLK_CPU_ETHERNET>; |
| 77 |
clock-names = "stmmaceth"; |
| 78 |
resets = <&rgu 22>; |
| 79 |
reset-names = "stmmaceth"; |
| 80 |
rx-fifo-depth = <256>; |
| 81 |
tx-fifo-depth = <256>; |
| 82 |
snps,pbl = <4>; |
| 83 |
snps,force_thresh_dma_mode; |
| 84 |
phy-mode = "rgmii-id"; |
| 85 |
}; |