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