-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dt-bindings: net: add marvell usb to mdio bindings
Describe how the USB to MDIO controller can optionally use device tree bindings to reference attached devices such as switches. Signed-off-by: Tobias Waldekranz <tobias@waldekranz.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
- Loading branch information
Tobias Waldekranz
authored and
David S. Miller
committed
Mar 27, 2020
1 parent
1698350
commit 61e0150
Showing
2 changed files
with
71 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# SPDX-License-Identifier: GPL-2.0 | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/net/marvell,mvusb.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: Marvell USB to MDIO Controller | ||
|
||
maintainers: | ||
- Tobias Waldekranz <tobias@waldekranz.com> | ||
|
||
description: |+ | ||
This controller is mounted on development boards for Marvell's Link Street | ||
family of Ethernet switches. It allows you to configure the switch's registers | ||
using the standard MDIO interface. | ||
Since the device is connected over USB, there is no strict requirement of | ||
having a device tree representation of the device. But in order to use it with | ||
the mv88e6xxx driver, you need a device tree node in which to place the switch | ||
definition. | ||
allOf: | ||
- $ref: "mdio.yaml#" | ||
|
||
properties: | ||
compatible: | ||
const: usb1286,1fa4 | ||
reg: | ||
maxItems: 1 | ||
description: The USB port number on the host controller | ||
|
||
required: | ||
- compatible | ||
- reg | ||
- "#address-cells" | ||
- "#size-cells" | ||
|
||
examples: | ||
- | | ||
/* USB host controller */ | ||
&usb1 { | ||
mvusb: mdio@1 { | ||
compatible = "usb1286,1fa4"; | ||
reg = <1>; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
}; | ||
}; | ||
/* MV88E6390X devboard */ | ||
&mvusb { | ||
switch@0 { | ||
compatible = "marvell,mv88e6190"; | ||
status = "ok"; | ||
reg = <0x0>; | ||
ports { | ||
/* Port definitions */ | ||
}; | ||
mdio { | ||
/* PHY definitions */ | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters