xref: /linux/Documentation/devicetree/bindings/net/nxp,lpc1850-dwmac.yaml (revision e7e86d7697c6ed1dbbde18d7185c35b6967945ed)
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
7title: NXP LPC1850 GMAC ethernet controller
8
9maintainers:
10  - Frank Li <Frank.Li@nxp.com>
11
12# We need a select here so we don't match all nodes with 'snps,dwmac'
13select:
14  properties:
15    compatible:
16      contains:
17        enum:
18          - nxp,lpc1850-dwmac
19  required:
20    - compatible
21
22properties:
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
54required:
55  - compatible
56  - reg
57  - clocks
58  - clock-names
59  - interrupts
60  - interrupt-names
61
62allOf:
63  - $ref: snps,dwmac.yaml#
64
65unevaluatedProperties: false
66
67examples:
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    };
86