xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/net/marvell,mvusb.yaml (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun# SPDX-License-Identifier: GPL-2.0
2*4882a593Smuzhiyun%YAML 1.2
3*4882a593Smuzhiyun---
4*4882a593Smuzhiyun$id: http://devicetree.org/schemas/net/marvell,mvusb.yaml#
5*4882a593Smuzhiyun$schema: http://devicetree.org/meta-schemas/core.yaml#
6*4882a593Smuzhiyun
7*4882a593Smuzhiyuntitle: Marvell USB to MDIO Controller
8*4882a593Smuzhiyun
9*4882a593Smuzhiyunmaintainers:
10*4882a593Smuzhiyun  - Tobias Waldekranz <tobias@waldekranz.com>
11*4882a593Smuzhiyun
12*4882a593Smuzhiyundescription: |+
13*4882a593Smuzhiyun  This controller is mounted on development boards for Marvell's Link Street
14*4882a593Smuzhiyun  family of Ethernet switches. It allows you to configure the switch's registers
15*4882a593Smuzhiyun  using the standard MDIO interface.
16*4882a593Smuzhiyun
17*4882a593Smuzhiyun  Since the device is connected over USB, there is no strict requirement of
18*4882a593Smuzhiyun  having a device tree representation of the device. But in order to use it with
19*4882a593Smuzhiyun  the mv88e6xxx driver, you need a device tree node in which to place the switch
20*4882a593Smuzhiyun  definition.
21*4882a593Smuzhiyun
22*4882a593SmuzhiyunallOf:
23*4882a593Smuzhiyun  - $ref: "mdio.yaml#"
24*4882a593Smuzhiyun
25*4882a593Smuzhiyunproperties:
26*4882a593Smuzhiyun  compatible:
27*4882a593Smuzhiyun    const: usb1286,1fa4
28*4882a593Smuzhiyun  reg:
29*4882a593Smuzhiyun    maxItems: 1
30*4882a593Smuzhiyun    description: The USB port number on the host controller
31*4882a593Smuzhiyun
32*4882a593Smuzhiyunrequired:
33*4882a593Smuzhiyun  - compatible
34*4882a593Smuzhiyun  - reg
35*4882a593Smuzhiyun  - "#address-cells"
36*4882a593Smuzhiyun  - "#size-cells"
37*4882a593Smuzhiyun
38*4882a593SmuzhiyununevaluatedProperties: false
39*4882a593Smuzhiyun
40*4882a593Smuzhiyunexamples:
41*4882a593Smuzhiyun  - |
42*4882a593Smuzhiyun    /* USB host controller */
43*4882a593Smuzhiyun    usb {
44*4882a593Smuzhiyun            #address-cells = <1>;
45*4882a593Smuzhiyun            #size-cells = <0>;
46*4882a593Smuzhiyun
47*4882a593Smuzhiyun            mdio@1 {
48*4882a593Smuzhiyun                    compatible = "usb1286,1fa4";
49*4882a593Smuzhiyun                    reg = <1>;
50*4882a593Smuzhiyun                    #address-cells = <1>;
51*4882a593Smuzhiyun                    #size-cells = <0>;
52*4882a593Smuzhiyun
53*4882a593Smuzhiyun                    switch@0 {
54*4882a593Smuzhiyun                            compatible = "marvell,mv88e6190";
55*4882a593Smuzhiyun                            reg = <0x0>;
56*4882a593Smuzhiyun
57*4882a593Smuzhiyun                            ports {
58*4882a593Smuzhiyun                                    /* Port definitions */
59*4882a593Smuzhiyun                            };
60*4882a593Smuzhiyun
61*4882a593Smuzhiyun                            mdio {
62*4882a593Smuzhiyun                                    /* PHY definitions */
63*4882a593Smuzhiyun                            };
64*4882a593Smuzhiyun                    };
65*4882a593Smuzhiyun            };
66*4882a593Smuzhiyun    };
67