161e0150cSTobias Waldekranz# SPDX-License-Identifier: GPL-2.0 261e0150cSTobias Waldekranz%YAML 1.2 361e0150cSTobias Waldekranz--- 461e0150cSTobias Waldekranz$id: http://devicetree.org/schemas/net/marvell,mvusb.yaml# 561e0150cSTobias Waldekranz$schema: http://devicetree.org/meta-schemas/core.yaml# 661e0150cSTobias Waldekranz 761e0150cSTobias Waldekranztitle: Marvell USB to MDIO Controller 861e0150cSTobias Waldekranz 961e0150cSTobias Waldekranzmaintainers: 1061e0150cSTobias Waldekranz - Tobias Waldekranz <tobias@waldekranz.com> 1161e0150cSTobias Waldekranz 1261e0150cSTobias Waldekranzdescription: |+ 1361e0150cSTobias Waldekranz This controller is mounted on development boards for Marvell's Link Street 1461e0150cSTobias Waldekranz family of Ethernet switches. It allows you to configure the switch's registers 1561e0150cSTobias Waldekranz using the standard MDIO interface. 1661e0150cSTobias Waldekranz 1761e0150cSTobias Waldekranz Since the device is connected over USB, there is no strict requirement of 1861e0150cSTobias Waldekranz having a device tree representation of the device. But in order to use it with 1961e0150cSTobias Waldekranz the mv88e6xxx driver, you need a device tree node in which to place the switch 2061e0150cSTobias Waldekranz definition. 2161e0150cSTobias Waldekranz 2261e0150cSTobias WaldekranzallOf: 233079bfdbSRob Herring - $ref: mdio.yaml# 2461e0150cSTobias Waldekranz 2561e0150cSTobias Waldekranzproperties: 2661e0150cSTobias Waldekranz compatible: 2761e0150cSTobias Waldekranz const: usb1286,1fa4 2861e0150cSTobias Waldekranz reg: 2961e0150cSTobias Waldekranz maxItems: 1 3061e0150cSTobias Waldekranz description: The USB port number on the host controller 3161e0150cSTobias Waldekranz 3261e0150cSTobias Waldekranzrequired: 3361e0150cSTobias Waldekranz - compatible 3461e0150cSTobias Waldekranz - reg 3561e0150cSTobias Waldekranz - "#address-cells" 3661e0150cSTobias Waldekranz - "#size-cells" 3761e0150cSTobias Waldekranz 386fdc6e23SRob HerringunevaluatedProperties: false 396fdc6e23SRob Herring 4061e0150cSTobias Waldekranzexamples: 4161e0150cSTobias Waldekranz - | 4261e0150cSTobias Waldekranz /* USB host controller */ 43d61f4d61SRob Herring usb { 44d61f4d61SRob Herring #address-cells = <1>; 45d61f4d61SRob Herring #size-cells = <0>; 46d61f4d61SRob Herring 47d61f4d61SRob Herring mdio@1 { 4861e0150cSTobias Waldekranz compatible = "usb1286,1fa4"; 4961e0150cSTobias Waldekranz reg = <1>; 5061e0150cSTobias Waldekranz #address-cells = <1>; 5161e0150cSTobias Waldekranz #size-cells = <0>; 5261e0150cSTobias Waldekranz 53*a6e44f30SLinus Walleij ethernet-switch@0 { 5461e0150cSTobias Waldekranz compatible = "marvell,mv88e6190"; 5561e0150cSTobias Waldekranz reg = <0x0>; 5661e0150cSTobias Waldekranz 57*a6e44f30SLinus Walleij ethernet-ports { 58*a6e44f30SLinus Walleij #address-cells = <1>; 59*a6e44f30SLinus Walleij #size-cells = <0>; 60*a6e44f30SLinus Walleij 6161e0150cSTobias Waldekranz /* Port definitions */ 6261e0150cSTobias Waldekranz }; 6361e0150cSTobias Waldekranz 6461e0150cSTobias Waldekranz mdio { 6561e0150cSTobias Waldekranz /* PHY definitions */ 6661e0150cSTobias Waldekranz }; 6761e0150cSTobias Waldekranz }; 6861e0150cSTobias Waldekranz }; 69d61f4d61SRob Herring }; 70