1# SPDX-License-Identifier: GPL-2.0
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/net/allwinner,sun7i-a20-gmac.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Allwinner A20 GMAC Device Tree Bindings
8
9allOf:
10  - $ref: "snps,dwmac.yaml#"
11
12maintainers:
13  - Chen-Yu Tsai <wens@csie.org>
14  - Maxime Ripard <maxime.ripard@bootlin.com>
15
16properties:
17  compatible:
18    const: allwinner,sun7i-a20-gmac
19
20  interrupts:
21    maxItems: 1
22
23  interrupt-names:
24    const: macirq
25
26  clocks:
27    items:
28      - description: GMAC main clock
29      - description: TX clock
30
31  clock-names:
32    items:
33      - const: stmmaceth
34      - const: allwinner_gmac_tx
35
36  phy-supply:
37    description:
38      PHY regulator
39
40required:
41  - compatible
42  - reg
43  - interrupts
44  - interrupt-names
45  - clocks
46  - clock-names
47  - phy-mode
48
49examples:
50  - |
51    gmac: ethernet@1c50000 {
52        compatible = "allwinner,sun7i-a20-gmac";
53        reg = <0x01c50000 0x10000>;
54        interrupts = <0 85 1>;
55        interrupt-names = "macirq";
56        clocks = <&ahb_gates 49>, <&gmac_tx>;
57        clock-names = "stmmaceth", "allwinner_gmac_tx";
58        phy-mode = "mii";
59    };
60
61# FIXME: We should set it, but it would report all the generic
62# properties as additional properties.
63# additionalProperties: false
64
65...
66