xref: /freebsd/sys/contrib/device-tree/Bindings/net/toshiba,visconti-dwmac.yaml (revision 5def4c47d4bd90b209b9b4a4ba9faec15846d8fd)
1*5def4c47SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2*5def4c47SEmmanuel Vadot%YAML 1.2
3*5def4c47SEmmanuel Vadot---
4*5def4c47SEmmanuel Vadot$id: "http://devicetree.org/schemas/net/toshiba,visconti-dwmac.yaml#"
5*5def4c47SEmmanuel Vadot$schema: "http://devicetree.org/meta-schemas/core.yaml#"
6*5def4c47SEmmanuel Vadot
7*5def4c47SEmmanuel Vadottitle: Toshiba Visconti DWMAC Ethernet controller
8*5def4c47SEmmanuel Vadot
9*5def4c47SEmmanuel Vadotmaintainers:
10*5def4c47SEmmanuel Vadot  - Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp>
11*5def4c47SEmmanuel Vadot
12*5def4c47SEmmanuel Vadotselect:
13*5def4c47SEmmanuel Vadot  properties:
14*5def4c47SEmmanuel Vadot    compatible:
15*5def4c47SEmmanuel Vadot      contains:
16*5def4c47SEmmanuel Vadot        enum:
17*5def4c47SEmmanuel Vadot          - toshiba,visconti-dwmac
18*5def4c47SEmmanuel Vadot  required:
19*5def4c47SEmmanuel Vadot    - compatible
20*5def4c47SEmmanuel Vadot
21*5def4c47SEmmanuel VadotallOf:
22*5def4c47SEmmanuel Vadot  - $ref: "snps,dwmac.yaml#"
23*5def4c47SEmmanuel Vadot
24*5def4c47SEmmanuel Vadotproperties:
25*5def4c47SEmmanuel Vadot  compatible:
26*5def4c47SEmmanuel Vadot    oneOf:
27*5def4c47SEmmanuel Vadot      - items:
28*5def4c47SEmmanuel Vadot          - enum:
29*5def4c47SEmmanuel Vadot              - toshiba,visconti-dwmac
30*5def4c47SEmmanuel Vadot          - const: snps,dwmac-4.20a
31*5def4c47SEmmanuel Vadot
32*5def4c47SEmmanuel Vadot  reg:
33*5def4c47SEmmanuel Vadot    maxItems: 1
34*5def4c47SEmmanuel Vadot
35*5def4c47SEmmanuel Vadot  clocks:
36*5def4c47SEmmanuel Vadot    items:
37*5def4c47SEmmanuel Vadot      - description: main clock
38*5def4c47SEmmanuel Vadot      - description: PHY reference clock
39*5def4c47SEmmanuel Vadot
40*5def4c47SEmmanuel Vadot  clock-names:
41*5def4c47SEmmanuel Vadot    items:
42*5def4c47SEmmanuel Vadot      - const: stmmaceth
43*5def4c47SEmmanuel Vadot      - const: phy_ref_clk
44*5def4c47SEmmanuel Vadot
45*5def4c47SEmmanuel Vadotrequired:
46*5def4c47SEmmanuel Vadot  - compatible
47*5def4c47SEmmanuel Vadot  - reg
48*5def4c47SEmmanuel Vadot  - clocks
49*5def4c47SEmmanuel Vadot  - clock-names
50*5def4c47SEmmanuel Vadot
51*5def4c47SEmmanuel VadotunevaluatedProperties: false
52*5def4c47SEmmanuel Vadot
53*5def4c47SEmmanuel Vadotexamples:
54*5def4c47SEmmanuel Vadot  - |
55*5def4c47SEmmanuel Vadot    #include <dt-bindings/interrupt-controller/arm-gic.h>
56*5def4c47SEmmanuel Vadot
57*5def4c47SEmmanuel Vadot    soc {
58*5def4c47SEmmanuel Vadot        #address-cells = <2>;
59*5def4c47SEmmanuel Vadot        #size-cells = <2>;
60*5def4c47SEmmanuel Vadot
61*5def4c47SEmmanuel Vadot        piether: ethernet@28000000 {
62*5def4c47SEmmanuel Vadot            compatible = "toshiba,visconti-dwmac", "snps,dwmac-4.20a";
63*5def4c47SEmmanuel Vadot            reg = <0 0x28000000 0 0x10000>;
64*5def4c47SEmmanuel Vadot            interrupts = <GIC_SPI 156 IRQ_TYPE_LEVEL_HIGH>;
65*5def4c47SEmmanuel Vadot            interrupt-names = "macirq";
66*5def4c47SEmmanuel Vadot            clocks = <&clk300mhz>, <&clk125mhz>;
67*5def4c47SEmmanuel Vadot            clock-names = "stmmaceth", "phy_ref_clk";
68*5def4c47SEmmanuel Vadot            snps,txpbl = <4>;
69*5def4c47SEmmanuel Vadot            snps,rxpbl = <4>;
70*5def4c47SEmmanuel Vadot            snps,tso;
71*5def4c47SEmmanuel Vadot            phy-mode = "rgmii-id";
72*5def4c47SEmmanuel Vadot            phy-handle = <&phy0>;
73*5def4c47SEmmanuel Vadot
74*5def4c47SEmmanuel Vadot            mdio0 {
75*5def4c47SEmmanuel Vadot                #address-cells = <0x1>;
76*5def4c47SEmmanuel Vadot                #size-cells = <0x0>;
77*5def4c47SEmmanuel Vadot                compatible = "snps,dwmac-mdio";
78*5def4c47SEmmanuel Vadot
79*5def4c47SEmmanuel Vadot                phy0: ethernet-phy@1 {
80*5def4c47SEmmanuel Vadot                    device_type = "ethernet-phy";
81*5def4c47SEmmanuel Vadot                    reg = <0x1>;
82*5def4c47SEmmanuel Vadot                };
83*5def4c47SEmmanuel Vadot            };
84*5def4c47SEmmanuel Vadot        };
85*5def4c47SEmmanuel Vadot    };
86