Merge tag 'linux-kselftest-kunit-fixes-5.11-rc3' of git://git.kernel.org/pub/scm...
[linux/fpc-iii.git] / Documentation / devicetree / bindings / net / allwinner,sun7i-a20-gmac.yaml
blob703d0d8868846dde2ce14a0fafef6acd264bce28
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#
7 title: Allwinner A20 GMAC Device Tree Bindings
9 allOf:
10   - $ref: "snps,dwmac.yaml#"
12 maintainers:
13   - Chen-Yu Tsai <wens@csie.org>
14   - Maxime Ripard <mripard@kernel.org>
16 properties:
17   compatible:
18     const: allwinner,sun7i-a20-gmac
20   reg:
21     maxItems: 1
23   interrupts:
24     maxItems: 1
26   interrupt-names:
27     const: macirq
29   clocks:
30     items:
31       - description: GMAC main clock
32       - description: TX clock
34   clock-names:
35     items:
36       - const: stmmaceth
37       - const: allwinner_gmac_tx
39   phy-supply:
40     description:
41       PHY regulator
43 required:
44   - compatible
45   - reg
46   - interrupts
47   - interrupt-names
48   - clocks
49   - clock-names
50   - phy-mode
52 unevaluatedProperties: false
54 examples:
55   - |
56     gmac: ethernet@1c50000 {
57         compatible = "allwinner,sun7i-a20-gmac";
58         reg = <0x01c50000 0x10000>;
59         interrupts = <0 85 1>;
60         interrupt-names = "macirq";
61         clocks = <&ahb_gates 49>, <&gmac_tx>;
62         clock-names = "stmmaceth", "allwinner_gmac_tx";
63         phy-mode = "mii";
64     };
66 ...