Skip to content

Commit eaa008d

Browse files
committed
Merge branch 'ave-fix-the-activation-issues-for-some-UniPhier-SoCs'
Kunihiko Hayashi says: ==================== ave: fix the activation issues for some UniPhier SoCs This add the following stuffs to fix the activation issues and satisfy requirements for AVE ethernet driver implemented on some UniPhier SoCs. - Add support for additional necessary clocks and resets, because the kernel is stalled on Pro4 due to lack of them. - Check whether the SoC supports the specified phy-mode - Add DT property support indicating system controller that has the feature for configurating phy-mode including built-in phy on LD11. v1: https://www.spinics.net/lists/netdev/msg494904.html Changes since v1: - Add 'Reviewed-by' lines ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
2 parents 0263ea5 + 57878f2 commit eaa008d

File tree

3 files changed

+238
-35
lines changed

3 files changed

+238
-35
lines changed

Documentation/devicetree/bindings/net/socionext,uniphier-ave4.txt

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,25 @@ Required properties:
1313
- reg: Address where registers are mapped and size of region.
1414
- interrupts: Should contain the MAC interrupt.
1515
- phy-mode: See ethernet.txt in the same directory. Allow to choose
16-
"rgmii", "rmii", or "mii" according to the PHY.
16+
"rgmii", "rmii", "mii", or "internal" according to the PHY.
17+
The acceptable mode is SoC-dependent.
1718
- phy-handle: Should point to the external phy device.
1819
See ethernet.txt file in the same directory.
1920
- clocks: A phandle to the clock for the MAC.
21+
For Pro4 SoC, that is "socionext,uniphier-pro4-ave4",
22+
another MAC clock, GIO bus clock and PHY clock are also required.
23+
- clock-names: Should contain
24+
- "ether", "ether-gb", "gio", "ether-phy" for Pro4 SoC
25+
- "ether" for others
26+
- resets: A phandle to the reset control for the MAC. For Pro4 SoC,
27+
GIO bus reset is also required.
28+
- reset-names: Should contain
29+
- "ether", "gio" for Pro4 SoC
30+
- "ether" for others
31+
- socionext,syscon-phy-mode: A phandle to syscon with one argument
32+
that configures phy mode. The argument is the ID of MAC instance.
2033

2134
Optional properties:
22-
- resets: A phandle to the reset control for the MAC.
2335
- local-mac-address: See ethernet.txt in the same directory.
2436

2537
Required subnode:
@@ -34,8 +46,11 @@ Example:
3446
interrupts = <0 66 4>;
3547
phy-mode = "rgmii";
3648
phy-handle = <&ethphy>;
49+
clock-names = "ether";
3750
clocks = <&sys_clk 6>;
51+
reset-names = "ether";
3852
resets = <&sys_rst 6>;
53+
socionext,syscon-phy-mode = <&soc_glue 0>;
3954
local-mac-address = [00 00 00 00 00 00];
4055

4156
mdio {

drivers/net/ethernet/socionext/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ if NET_VENDOR_SOCIONEXT
1414
config SNI_AVE
1515
tristate "Socionext AVE ethernet support"
1616
depends on (ARCH_UNIPHIER || COMPILE_TEST) && OF
17+
depends on HAS_IOMEM
18+
select MFD_SYSCON
1719
select PHYLIB
1820
---help---
1921
Driver for gigabit ethernet MACs, called AVE, in the

0 commit comments

Comments
 (0)