xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/net/socionext,uniphier-ave4.yaml (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*4882a593Smuzhiyun%YAML 1.2
3*4882a593Smuzhiyun---
4*4882a593Smuzhiyun$id: http://devicetree.org/schemas/net/socionext,uniphier-ave4.yaml#
5*4882a593Smuzhiyun$schema: http://devicetree.org/meta-schemas/core.yaml#
6*4882a593Smuzhiyun
7*4882a593Smuzhiyuntitle: Socionext AVE ethernet controller
8*4882a593Smuzhiyun
9*4882a593Smuzhiyunmaintainers:
10*4882a593Smuzhiyun  - Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
11*4882a593Smuzhiyun
12*4882a593Smuzhiyundescription: |
13*4882a593Smuzhiyun  This describes the devicetree bindings for AVE ethernet controller
14*4882a593Smuzhiyun  implemented on Socionext UniPhier SoCs.
15*4882a593Smuzhiyun
16*4882a593SmuzhiyunallOf:
17*4882a593Smuzhiyun  - $ref: ethernet-controller.yaml#
18*4882a593Smuzhiyun
19*4882a593Smuzhiyunproperties:
20*4882a593Smuzhiyun  compatible:
21*4882a593Smuzhiyun    enum:
22*4882a593Smuzhiyun      - socionext,uniphier-pro4-ave4
23*4882a593Smuzhiyun      - socionext,uniphier-pxs2-ave4
24*4882a593Smuzhiyun      - socionext,uniphier-ld11-ave4
25*4882a593Smuzhiyun      - socionext,uniphier-ld20-ave4
26*4882a593Smuzhiyun      - socionext,uniphier-pxs3-ave4
27*4882a593Smuzhiyun
28*4882a593Smuzhiyun  reg:
29*4882a593Smuzhiyun    maxItems: 1
30*4882a593Smuzhiyun
31*4882a593Smuzhiyun  interrupts:
32*4882a593Smuzhiyun    maxItems: 1
33*4882a593Smuzhiyun
34*4882a593Smuzhiyun  phy-mode: true
35*4882a593Smuzhiyun
36*4882a593Smuzhiyun  phy-handle: true
37*4882a593Smuzhiyun
38*4882a593Smuzhiyun  mac-address: true
39*4882a593Smuzhiyun
40*4882a593Smuzhiyun  local-mac-address: true
41*4882a593Smuzhiyun
42*4882a593Smuzhiyun  clocks:
43*4882a593Smuzhiyun    minItems: 1
44*4882a593Smuzhiyun    maxItems: 4
45*4882a593Smuzhiyun
46*4882a593Smuzhiyun  clock-names:
47*4882a593Smuzhiyun    oneOf:
48*4882a593Smuzhiyun      - items:          # for Pro4
49*4882a593Smuzhiyun          - const: gio
50*4882a593Smuzhiyun          - const: ether
51*4882a593Smuzhiyun          - const: ether-gb
52*4882a593Smuzhiyun          - const: ether-phy
53*4882a593Smuzhiyun      - const: ether    # for others
54*4882a593Smuzhiyun
55*4882a593Smuzhiyun  resets:
56*4882a593Smuzhiyun    minItems: 1
57*4882a593Smuzhiyun    maxItems: 2
58*4882a593Smuzhiyun
59*4882a593Smuzhiyun  reset-names:
60*4882a593Smuzhiyun    oneOf:
61*4882a593Smuzhiyun      - items:          # for Pro4
62*4882a593Smuzhiyun          - const: gio
63*4882a593Smuzhiyun          - const: ether
64*4882a593Smuzhiyun      - const: ether    # for others
65*4882a593Smuzhiyun
66*4882a593Smuzhiyun  socionext,syscon-phy-mode:
67*4882a593Smuzhiyun    $ref: /schemas/types.yaml#definitions/phandle-array
68*4882a593Smuzhiyun    description:
69*4882a593Smuzhiyun      A phandle to syscon with one argument that configures phy mode.
70*4882a593Smuzhiyun      The argument is the ID of MAC instance.
71*4882a593Smuzhiyun
72*4882a593Smuzhiyun  mdio:
73*4882a593Smuzhiyun    $ref: mdio.yaml#
74*4882a593Smuzhiyun
75*4882a593Smuzhiyunrequired:
76*4882a593Smuzhiyun  - compatible
77*4882a593Smuzhiyun  - reg
78*4882a593Smuzhiyun  - interrupts
79*4882a593Smuzhiyun  - phy-mode
80*4882a593Smuzhiyun  - phy-handle
81*4882a593Smuzhiyun  - clocks
82*4882a593Smuzhiyun  - clock-names
83*4882a593Smuzhiyun  - resets
84*4882a593Smuzhiyun  - reset-names
85*4882a593Smuzhiyun  - mdio
86*4882a593Smuzhiyun
87*4882a593SmuzhiyunadditionalProperties: false
88*4882a593Smuzhiyun
89*4882a593Smuzhiyunexamples:
90*4882a593Smuzhiyun  - |
91*4882a593Smuzhiyun    ether: ethernet@65000000 {
92*4882a593Smuzhiyun        compatible = "socionext,uniphier-ld20-ave4";
93*4882a593Smuzhiyun                reg = <0x65000000 0x8500>;
94*4882a593Smuzhiyun                interrupts = <0 66 4>;
95*4882a593Smuzhiyun                phy-mode = "rgmii";
96*4882a593Smuzhiyun                phy-handle = <&ethphy>;
97*4882a593Smuzhiyun                clock-names = "ether";
98*4882a593Smuzhiyun                clocks = <&sys_clk 6>;
99*4882a593Smuzhiyun                reset-names = "ether";
100*4882a593Smuzhiyun                resets = <&sys_rst 6>;
101*4882a593Smuzhiyun                socionext,syscon-phy-mode = <&soc_glue 0>;
102*4882a593Smuzhiyun
103*4882a593Smuzhiyun                mdio {
104*4882a593Smuzhiyun                        #address-cells = <1>;
105*4882a593Smuzhiyun                        #size-cells = <0>;
106*4882a593Smuzhiyun
107*4882a593Smuzhiyun                        ethphy: ethernet-phy@1 {
108*4882a593Smuzhiyun                                reg = <1>;
109*4882a593Smuzhiyun                        };
110*4882a593Smuzhiyun                };
111*4882a593Smuzhiyun        };
112