Commit 74734306 authored by Kunihiko Hayashi's avatar Kunihiko Hayashi Committed by David S. Miller

dt-bindings: net: ave: add syscon-phy-mode property to configure phy-mode setting

Add "socionext,syscon-phy-mode" property to specify system controller that
configures the settings about phy-mode.
Signed-off-by: default avatarKunihiko Hayashi <hayashi.kunihiko@socionext.com>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6b9227d6
...@@ -13,7 +13,8 @@ Required properties: ...@@ -13,7 +13,8 @@ Required properties:
- reg: Address where registers are mapped and size of region. - reg: Address where registers are mapped and size of region.
- interrupts: Should contain the MAC interrupt. - interrupts: Should contain the MAC interrupt.
- phy-mode: See ethernet.txt in the same directory. Allow to choose - phy-mode: See ethernet.txt in the same directory. Allow to choose
"rgmii", "rmii", or "mii" according to the PHY. "rgmii", "rmii", "mii", or "internal" according to the PHY.
The acceptable mode is SoC-dependent.
- phy-handle: Should point to the external phy device. - phy-handle: Should point to the external phy device.
See ethernet.txt file in the same directory. See ethernet.txt file in the same directory.
- clocks: A phandle to the clock for the MAC. - clocks: A phandle to the clock for the MAC.
...@@ -27,6 +28,8 @@ Required properties: ...@@ -27,6 +28,8 @@ Required properties:
- reset-names: Should contain - reset-names: Should contain
- "ether", "gio" for Pro4 SoC - "ether", "gio" for Pro4 SoC
- "ether" for others - "ether" for others
- socionext,syscon-phy-mode: A phandle to syscon with one argument
that configures phy mode. The argument is the ID of MAC instance.
Optional properties: Optional properties:
- local-mac-address: See ethernet.txt in the same directory. - local-mac-address: See ethernet.txt in the same directory.
...@@ -47,6 +50,7 @@ Example: ...@@ -47,6 +50,7 @@ Example:
clocks = <&sys_clk 6>; clocks = <&sys_clk 6>;
reset-names = "ether"; reset-names = "ether";
resets = <&sys_rst 6>; resets = <&sys_rst 6>;
socionext,syscon-phy-mode = <&soc_glue 0>;
local-mac-address = [00 00 00 00 00 00]; local-mac-address = [00 00 00 00 00 00];
mdio { mdio {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment