xref: /linux/Documentation/devicetree/bindings/net/socionext,uniphier-ave4.yaml (revision 39bd2b6a3783b8990d97494ec4c8698ba5bb6740)
1966a5c08SKunihiko Hayashi# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2966a5c08SKunihiko Hayashi%YAML 1.2
3966a5c08SKunihiko Hayashi---
4966a5c08SKunihiko Hayashi$id: http://devicetree.org/schemas/net/socionext,uniphier-ave4.yaml#
5966a5c08SKunihiko Hayashi$schema: http://devicetree.org/meta-schemas/core.yaml#
6966a5c08SKunihiko Hayashi
7966a5c08SKunihiko Hayashititle: Socionext AVE ethernet controller
8966a5c08SKunihiko Hayashi
9966a5c08SKunihiko Hayashimaintainers:
10966a5c08SKunihiko Hayashi  - Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
11966a5c08SKunihiko Hayashi
12966a5c08SKunihiko Hayashidescription: |
13966a5c08SKunihiko Hayashi  This describes the devicetree bindings for AVE ethernet controller
14966a5c08SKunihiko Hayashi  implemented on Socionext UniPhier SoCs.
15966a5c08SKunihiko Hayashi
16966a5c08SKunihiko HayashiallOf:
17966a5c08SKunihiko Hayashi  - $ref: ethernet-controller.yaml#
18966a5c08SKunihiko Hayashi
19966a5c08SKunihiko Hayashiproperties:
20966a5c08SKunihiko Hayashi  compatible:
21966a5c08SKunihiko Hayashi    enum:
22966a5c08SKunihiko Hayashi      - socionext,uniphier-pro4-ave4
23966a5c08SKunihiko Hayashi      - socionext,uniphier-pxs2-ave4
24966a5c08SKunihiko Hayashi      - socionext,uniphier-ld11-ave4
25966a5c08SKunihiko Hayashi      - socionext,uniphier-ld20-ave4
26966a5c08SKunihiko Hayashi      - socionext,uniphier-pxs3-ave4
278e60189dSKunihiko Hayashi      - socionext,uniphier-nx1-ave4
28966a5c08SKunihiko Hayashi
29966a5c08SKunihiko Hayashi  reg:
30966a5c08SKunihiko Hayashi    maxItems: 1
31966a5c08SKunihiko Hayashi
32966a5c08SKunihiko Hayashi  interrupts:
33966a5c08SKunihiko Hayashi    maxItems: 1
34966a5c08SKunihiko Hayashi
35966a5c08SKunihiko Hayashi  phy-mode: true
36966a5c08SKunihiko Hayashi
37966a5c08SKunihiko Hayashi  phy-handle: true
38966a5c08SKunihiko Hayashi
39966a5c08SKunihiko Hayashi  mac-address: true
40966a5c08SKunihiko Hayashi
41966a5c08SKunihiko Hayashi  local-mac-address: true
42966a5c08SKunihiko Hayashi
43966a5c08SKunihiko Hayashi  clocks:
44966a5c08SKunihiko Hayashi    minItems: 1
45966a5c08SKunihiko Hayashi    maxItems: 4
46966a5c08SKunihiko Hayashi
47966a5c08SKunihiko Hayashi  clock-names:
48966a5c08SKunihiko Hayashi    oneOf:
49966a5c08SKunihiko Hayashi      - items:          # for Pro4
50966a5c08SKunihiko Hayashi          - const: gio
51966a5c08SKunihiko Hayashi          - const: ether
52966a5c08SKunihiko Hayashi          - const: ether-gb
53966a5c08SKunihiko Hayashi          - const: ether-phy
54966a5c08SKunihiko Hayashi      - const: ether    # for others
55966a5c08SKunihiko Hayashi
56966a5c08SKunihiko Hayashi  resets:
57966a5c08SKunihiko Hayashi    minItems: 1
58966a5c08SKunihiko Hayashi    maxItems: 2
59966a5c08SKunihiko Hayashi
60966a5c08SKunihiko Hayashi  reset-names:
61966a5c08SKunihiko Hayashi    oneOf:
62966a5c08SKunihiko Hayashi      - items:          # for Pro4
63966a5c08SKunihiko Hayashi          - const: gio
64966a5c08SKunihiko Hayashi          - const: ether
65966a5c08SKunihiko Hayashi      - const: ether    # for others
66966a5c08SKunihiko Hayashi
67966a5c08SKunihiko Hayashi  socionext,syscon-phy-mode:
68d69c6dddSRob Herring    $ref: /schemas/types.yaml#/definitions/phandle-array
69*39bd2b6aSRob Herring    items:
70*39bd2b6aSRob Herring      - items:
71*39bd2b6aSRob Herring          - description: phandle to syscon that configures phy mode
72*39bd2b6aSRob Herring          - description: ID of MAC instance
73966a5c08SKunihiko Hayashi    description:
74966a5c08SKunihiko Hayashi      A phandle to syscon with one argument that configures phy mode.
75966a5c08SKunihiko Hayashi      The argument is the ID of MAC instance.
76966a5c08SKunihiko Hayashi
77966a5c08SKunihiko Hayashi  mdio:
78966a5c08SKunihiko Hayashi    $ref: mdio.yaml#
79b2d28642SRob Herring    unevaluatedProperties: false
80966a5c08SKunihiko Hayashi
81966a5c08SKunihiko Hayashirequired:
82966a5c08SKunihiko Hayashi  - compatible
83966a5c08SKunihiko Hayashi  - reg
84966a5c08SKunihiko Hayashi  - interrupts
85966a5c08SKunihiko Hayashi  - phy-mode
86966a5c08SKunihiko Hayashi  - phy-handle
87966a5c08SKunihiko Hayashi  - clocks
88966a5c08SKunihiko Hayashi  - clock-names
89966a5c08SKunihiko Hayashi  - resets
90966a5c08SKunihiko Hayashi  - reset-names
91966a5c08SKunihiko Hayashi  - mdio
92966a5c08SKunihiko Hayashi
93966a5c08SKunihiko HayashiadditionalProperties: false
94966a5c08SKunihiko Hayashi
95966a5c08SKunihiko Hayashiexamples:
96966a5c08SKunihiko Hayashi  - |
97966a5c08SKunihiko Hayashi    ether: ethernet@65000000 {
98966a5c08SKunihiko Hayashi        compatible = "socionext,uniphier-ld20-ave4";
99966a5c08SKunihiko Hayashi                reg = <0x65000000 0x8500>;
100966a5c08SKunihiko Hayashi                interrupts = <0 66 4>;
101966a5c08SKunihiko Hayashi                phy-mode = "rgmii";
102966a5c08SKunihiko Hayashi                phy-handle = <&ethphy>;
103966a5c08SKunihiko Hayashi                clock-names = "ether";
104966a5c08SKunihiko Hayashi                clocks = <&sys_clk 6>;
105966a5c08SKunihiko Hayashi                reset-names = "ether";
106966a5c08SKunihiko Hayashi                resets = <&sys_rst 6>;
107966a5c08SKunihiko Hayashi                socionext,syscon-phy-mode = <&soc_glue 0>;
108966a5c08SKunihiko Hayashi
109966a5c08SKunihiko Hayashi                mdio {
110966a5c08SKunihiko Hayashi                        #address-cells = <1>;
111966a5c08SKunihiko Hayashi                        #size-cells = <0>;
112966a5c08SKunihiko Hayashi
113966a5c08SKunihiko Hayashi                        ethphy: ethernet-phy@1 {
114966a5c08SKunihiko Hayashi                                reg = <1>;
115966a5c08SKunihiko Hayashi                        };
116966a5c08SKunihiko Hayashi                };
117966a5c08SKunihiko Hayashi        };
118