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 reg: 21 maxItems: 1 22 23 interrupts: 24 maxItems: 1 25 26 interrupt-names: 27 const: macirq 28 29 clocks: 30 items: 31 - description: GMAC main clock 32 - description: TX clock 33 34 clock-names: 35 items: 36 - const: stmmaceth 37 - const: allwinner_gmac_tx 38 39 phy-supply: 40 description: 41 PHY regulator 42 43required: 44 - compatible 45 - reg 46 - interrupts 47 - interrupt-names 48 - clocks 49 - clock-names 50 - phy-mode 51 52examples: 53 - | 54 gmac: ethernet@1c50000 { 55 compatible = "allwinner,sun7i-a20-gmac"; 56 reg = <0x01c50000 0x10000>; 57 interrupts = <0 85 1>; 58 interrupt-names = "macirq"; 59 clocks = <&ahb_gates 49>, <&gmac_tx>; 60 clock-names = "stmmaceth", "allwinner_gmac_tx"; 61 phy-mode = "mii"; 62 }; 63 64# FIXME: We should set it, but it would report all the generic 65# properties as additional properties. 66# additionalProperties: false 67 68... 69