xref: /freebsd/sys/contrib/device-tree/Bindings/net/faraday,ftgmac100.yaml (revision aa1a8ff2d6dbc51ef058f46f3db5a8bb77967145)
1*aa1a8ff2SEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0
2*aa1a8ff2SEmmanuel Vadot%YAML 1.2
3*aa1a8ff2SEmmanuel Vadot---
4*aa1a8ff2SEmmanuel Vadot$id: http://devicetree.org/schemas/net/faraday,ftgmac100.yaml#
5*aa1a8ff2SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*aa1a8ff2SEmmanuel Vadot
7*aa1a8ff2SEmmanuel Vadottitle: Faraday Technology FTGMAC100 gigabit ethernet controller
8*aa1a8ff2SEmmanuel Vadot
9*aa1a8ff2SEmmanuel VadotallOf:
10*aa1a8ff2SEmmanuel Vadot  - $ref: ethernet-controller.yaml#
11*aa1a8ff2SEmmanuel Vadot
12*aa1a8ff2SEmmanuel Vadotmaintainers:
13*aa1a8ff2SEmmanuel Vadot  - Po-Yu Chuang <ratbert@faraday-tech.com>
14*aa1a8ff2SEmmanuel Vadot
15*aa1a8ff2SEmmanuel Vadotproperties:
16*aa1a8ff2SEmmanuel Vadot  compatible:
17*aa1a8ff2SEmmanuel Vadot    oneOf:
18*aa1a8ff2SEmmanuel Vadot      - const: faraday,ftgmac100
19*aa1a8ff2SEmmanuel Vadot      - items:
20*aa1a8ff2SEmmanuel Vadot          - enum:
21*aa1a8ff2SEmmanuel Vadot              - aspeed,ast2400-mac
22*aa1a8ff2SEmmanuel Vadot              - aspeed,ast2500-mac
23*aa1a8ff2SEmmanuel Vadot              - aspeed,ast2600-mac
24*aa1a8ff2SEmmanuel Vadot          - const: faraday,ftgmac100
25*aa1a8ff2SEmmanuel Vadot
26*aa1a8ff2SEmmanuel Vadot  reg:
27*aa1a8ff2SEmmanuel Vadot    maxItems: 1
28*aa1a8ff2SEmmanuel Vadot
29*aa1a8ff2SEmmanuel Vadot  interrupts:
30*aa1a8ff2SEmmanuel Vadot    maxItems: 1
31*aa1a8ff2SEmmanuel Vadot
32*aa1a8ff2SEmmanuel Vadot  clocks:
33*aa1a8ff2SEmmanuel Vadot    minItems: 1
34*aa1a8ff2SEmmanuel Vadot    items:
35*aa1a8ff2SEmmanuel Vadot      - description: MAC IP clock
36*aa1a8ff2SEmmanuel Vadot      - description: RMII RCLK gate for AST2500/2600
37*aa1a8ff2SEmmanuel Vadot
38*aa1a8ff2SEmmanuel Vadot  clock-names:
39*aa1a8ff2SEmmanuel Vadot    minItems: 1
40*aa1a8ff2SEmmanuel Vadot    items:
41*aa1a8ff2SEmmanuel Vadot      - const: MACCLK
42*aa1a8ff2SEmmanuel Vadot      - const: RCLK
43*aa1a8ff2SEmmanuel Vadot
44*aa1a8ff2SEmmanuel Vadot  phy-mode:
45*aa1a8ff2SEmmanuel Vadot    enum:
46*aa1a8ff2SEmmanuel Vadot      - rgmii
47*aa1a8ff2SEmmanuel Vadot      - rmii
48*aa1a8ff2SEmmanuel Vadot
49*aa1a8ff2SEmmanuel Vadot  phy-handle: true
50*aa1a8ff2SEmmanuel Vadot
51*aa1a8ff2SEmmanuel Vadot  use-ncsi:
52*aa1a8ff2SEmmanuel Vadot    description:
53*aa1a8ff2SEmmanuel Vadot      Use the NC-SI stack instead of an MDIO PHY. Currently assumes
54*aa1a8ff2SEmmanuel Vadot      rmii (100bT) but kept as a separate property in case NC-SI grows support
55*aa1a8ff2SEmmanuel Vadot      for a gigabit link.
56*aa1a8ff2SEmmanuel Vadot    type: boolean
57*aa1a8ff2SEmmanuel Vadot
58*aa1a8ff2SEmmanuel Vadot  no-hw-checksum:
59*aa1a8ff2SEmmanuel Vadot    description:
60*aa1a8ff2SEmmanuel Vadot      Used to disable HW checksum support. Here for backward
61*aa1a8ff2SEmmanuel Vadot      compatibility as the driver now should have correct defaults based on
62*aa1a8ff2SEmmanuel Vadot      the SoC.
63*aa1a8ff2SEmmanuel Vadot    type: boolean
64*aa1a8ff2SEmmanuel Vadot    deprecated: true
65*aa1a8ff2SEmmanuel Vadot
66*aa1a8ff2SEmmanuel Vadot  mdio:
67*aa1a8ff2SEmmanuel Vadot    $ref: /schemas/net/mdio.yaml#
68*aa1a8ff2SEmmanuel Vadot
69*aa1a8ff2SEmmanuel Vadotrequired:
70*aa1a8ff2SEmmanuel Vadot  - compatible
71*aa1a8ff2SEmmanuel Vadot  - reg
72*aa1a8ff2SEmmanuel Vadot  - interrupts
73*aa1a8ff2SEmmanuel Vadot
74*aa1a8ff2SEmmanuel VadotunevaluatedProperties: false
75*aa1a8ff2SEmmanuel Vadot
76*aa1a8ff2SEmmanuel Vadotexamples:
77*aa1a8ff2SEmmanuel Vadot  - |
78*aa1a8ff2SEmmanuel Vadot    ethernet@1e660000 {
79*aa1a8ff2SEmmanuel Vadot        compatible = "aspeed,ast2500-mac", "faraday,ftgmac100";
80*aa1a8ff2SEmmanuel Vadot        reg = <0x1e660000 0x180>;
81*aa1a8ff2SEmmanuel Vadot        interrupts = <2>;
82*aa1a8ff2SEmmanuel Vadot        use-ncsi;
83*aa1a8ff2SEmmanuel Vadot    };
84*aa1a8ff2SEmmanuel Vadot
85*aa1a8ff2SEmmanuel Vadot    ethernet@1e680000 {
86*aa1a8ff2SEmmanuel Vadot        compatible = "aspeed,ast2500-mac", "faraday,ftgmac100";
87*aa1a8ff2SEmmanuel Vadot        reg = <0x1e680000 0x180>;
88*aa1a8ff2SEmmanuel Vadot        interrupts = <2>;
89*aa1a8ff2SEmmanuel Vadot
90*aa1a8ff2SEmmanuel Vadot        phy-handle = <&phy>;
91*aa1a8ff2SEmmanuel Vadot        phy-mode = "rgmii";
92*aa1a8ff2SEmmanuel Vadot
93*aa1a8ff2SEmmanuel Vadot        mdio {
94*aa1a8ff2SEmmanuel Vadot            #address-cells = <1>;
95*aa1a8ff2SEmmanuel Vadot            #size-cells = <0>;
96*aa1a8ff2SEmmanuel Vadot
97*aa1a8ff2SEmmanuel Vadot            phy: ethernet-phy@1 {
98*aa1a8ff2SEmmanuel Vadot                compatible = "ethernet-phy-ieee802.3-c22";
99*aa1a8ff2SEmmanuel Vadot                reg = <1>;
100*aa1a8ff2SEmmanuel Vadot            };
101*aa1a8ff2SEmmanuel Vadot        };
102*aa1a8ff2SEmmanuel Vadot    };
103