-
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.
Merge branch 'net-phy-add-Amlogic-g12a-support'
Jerome Brunet says: ==================== net: phy: add Amlogic g12a support This patchset adds the necessary bits to support network on the Amlogic g12a SoC family. Only the internal PHY and related MDIO mux needed to be addressed. The GMAC remains compatible with axg SoC family This series has been tested on the u200 (S905D2) with both the internal and external (Realtek) PHYs. Change since v2 [1]: * Change 'clk part' Reviewed-by as suggested * Remove default callback from phy drivers * Use exact match PHY macros * Default MDIO g12a as module if ARCH_MESON is enabled * Don't print error on probe defer in the g12a mdio mux Change since v1 [0]: * drop '_' from function name unrelated to locking * fix peripheral clock disable on error * fix variable declaration reverse Xmas trees * fix Kconfig dependency on CCF (Actually needed for 'struct clk_hw', Thx Andrew !) * Minor fix in the DT exemple as reported by Rob [0] https://lkml.kernel.org/r/20190314140135.19184-1-jbrunet@baylibre.com [1] https://lkml.kernel.org/r/20190329141512.29867-1-jbrunet@baylibre.com ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
- Loading branch information
Showing
5 changed files
with
453 additions
and
4 deletions.
There are no files selected for viewing
48 changes: 48 additions & 0 deletions
48
Documentation/devicetree/bindings/net/mdio-mux-meson-g12a.txt
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,48 @@ | ||
Properties for the MDIO bus multiplexer/glue of Amlogic G12a SoC family. | ||
|
||
This is a special case of a MDIO bus multiplexer. It allows to choose between | ||
the internal mdio bus leading to the embedded 10/100 PHY or the external | ||
MDIO bus. | ||
|
||
Required properties in addition to the generic multiplexer properties: | ||
- compatible : amlogic,g12a-mdio-mux | ||
- reg: physical address and length of the multiplexer/glue registers | ||
- clocks: list of clock phandle, one for each entry clock-names. | ||
- clock-names: should contain the following: | ||
* "pclk" : peripheral clock. | ||
* "clkin0" : platform crytal | ||
* "clkin1" : SoC 50MHz MPLL | ||
|
||
Example : | ||
|
||
mdio_mux: mdio-multiplexer@4c000 { | ||
compatible = "amlogic,g12a-mdio-mux"; | ||
reg = <0x0 0x4c000 0x0 0xa4>; | ||
clocks = <&clkc CLKID_ETH_PHY>, | ||
<&xtal>, | ||
<&clkc CLKID_MPLL_5OM>; | ||
clock-names = "pclk", "clkin0", "clkin1"; | ||
mdio-parent-bus = <&mdio0>; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
ext_mdio: mdio@0 { | ||
reg = <0>; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
}; | ||
|
||
int_mdio: mdio@1 { | ||
reg = <1>; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
internal_ephy: ethernet-phy@8 { | ||
compatible = "ethernet-phy-id0180.3301", | ||
"ethernet-phy-ieee802.3-c22"; | ||
interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>; | ||
reg = <8>; | ||
max-speed = <100>; | ||
}; | ||
}; | ||
}; |
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
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
Oops, something went wrong.