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: 2361e0150cSTobias Waldekranz - $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 3861e0150cSTobias Waldekranzexamples: 3961e0150cSTobias Waldekranz - | 4061e0150cSTobias Waldekranz /* USB host controller */ 4161e0150cSTobias Waldekranz &usb1 { 4261e0150cSTobias Waldekranz mvusb: mdio@1 { 4361e0150cSTobias Waldekranz compatible = "usb1286,1fa4"; 4461e0150cSTobias Waldekranz reg = <1>; 4561e0150cSTobias Waldekranz #address-cells = <1>; 4661e0150cSTobias Waldekranz #size-cells = <0>; 4761e0150cSTobias Waldekranz }; 4861e0150cSTobias Waldekranz }; 4961e0150cSTobias Waldekranz 5061e0150cSTobias Waldekranz /* MV88E6390X devboard */ 5161e0150cSTobias Waldekranz &mvusb { 5261e0150cSTobias Waldekranz switch@0 { 5361e0150cSTobias Waldekranz compatible = "marvell,mv88e6190"; 5461e0150cSTobias Waldekranz status = "ok"; 5561e0150cSTobias Waldekranz reg = <0x0>; 5661e0150cSTobias Waldekranz 5761e0150cSTobias Waldekranz ports { 5861e0150cSTobias Waldekranz /* Port definitions */ 5961e0150cSTobias Waldekranz }; 6061e0150cSTobias Waldekranz 6161e0150cSTobias Waldekranz mdio { 6261e0150cSTobias Waldekranz /* PHY definitions */ 6361e0150cSTobias Waldekranz }; 6461e0150cSTobias Waldekranz }; 6561e0150cSTobias Waldekranz }; 66