2019-06-27 23:31:51 +08:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
%YAML 1.2
|
|
|
|
---
|
|
|
|
$id: http://devicetree.org/schemas/net/allwinner,sun7i-a20-gmac.yaml#
|
|
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
|
|
|
|
title: Allwinner A20 GMAC Device Tree Bindings
|
|
|
|
|
|
|
|
allOf:
|
|
|
|
- $ref: "snps,dwmac.yaml#"
|
|
|
|
|
|
|
|
maintainers:
|
|
|
|
- Chen-Yu Tsai <wens@csie.org>
|
|
|
|
- Maxime Ripard <maxime.ripard@bootlin.com>
|
|
|
|
|
|
|
|
properties:
|
|
|
|
compatible:
|
|
|
|
const: allwinner,sun7i-a20-gmac
|
|
|
|
|
2019-08-20 15:57:41 +08:00
|
|
|
reg:
|
|
|
|
maxItems: 1
|
|
|
|
|
2019-06-27 23:31:51 +08:00
|
|
|
interrupts:
|
|
|
|
maxItems: 1
|
|
|
|
|
|
|
|
interrupt-names:
|
|
|
|
const: macirq
|
|
|
|
|
|
|
|
clocks:
|
|
|
|
items:
|
|
|
|
- description: GMAC main clock
|
|
|
|
- description: TX clock
|
|
|
|
|
|
|
|
clock-names:
|
|
|
|
items:
|
|
|
|
- const: stmmaceth
|
|
|
|
- const: allwinner_gmac_tx
|
|
|
|
|
|
|
|
phy-supply:
|
|
|
|
description:
|
|
|
|
PHY regulator
|
|
|
|
|
|
|
|
required:
|
|
|
|
- compatible
|
|
|
|
- reg
|
|
|
|
- interrupts
|
|
|
|
- interrupt-names
|
|
|
|
- clocks
|
|
|
|
- clock-names
|
2019-07-03 17:55:12 +08:00
|
|
|
- phy-mode
|
2019-06-27 23:31:51 +08:00
|
|
|
|
|
|
|
examples:
|
|
|
|
- |
|
|
|
|
gmac: ethernet@1c50000 {
|
|
|
|
compatible = "allwinner,sun7i-a20-gmac";
|
|
|
|
reg = <0x01c50000 0x10000>;
|
|
|
|
interrupts = <0 85 1>;
|
|
|
|
interrupt-names = "macirq";
|
|
|
|
clocks = <&ahb_gates 49>, <&gmac_tx>;
|
|
|
|
clock-names = "stmmaceth", "allwinner_gmac_tx";
|
2019-07-03 17:55:12 +08:00
|
|
|
phy-mode = "mii";
|
2019-06-27 23:31:51 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
# FIXME: We should set it, but it would report all the generic
|
|
|
|
# properties as additional properties.
|
|
|
|
# additionalProperties: false
|
|
|
|
|
|
|
|
...
|