arm64: marvell: 7k/8k: improve network support
Subsystems (3)
v2 cover arm64: marvell: 7k/8k: improve network support
Hi all,
This series improves the network support on Marvell 7k and 8k platforms by adding descriptions of the comphy, and by using the comphy in already available networking ports. The series also introduces a description of the SFP ports on the Marvell Armada 7040-db and 8040-db.
Two defconfig patches also improve the Marvell ARM64 support by enabling required options allowing to use the networking ports properly.
This series follows recent improvements in the PPv2 driver.
Based on v4.14-rc1, and tested on the Marvell Armada 7040-db, 8040-db and 8040-mcbin.
Thanks!
Antoine
Since v1:
- Added comments in nodes using both a network PHY and a generic PHY.
- 4 patches were applied on mvebu trees.
Antoine Tenart (4):
arm64: dts: marvell: mcbin: add comphy references to Ethernet ports
arm64: dts: marvell: 7040-db: add comphy reference to Ethernet port
arm64: dts: marvell: 7040-db: enable the SFP port
arm64: dts: marvell: 8040-db: enable the SFP ports
arch/arm64/boot/dts/marvell/armada-7040-db.dts | 11 +++++++++++ arch/arm64/boot/dts/marvell/armada-8040-db.dts | 10 ++++++++++ arch/arm64/boot/dts/marvell/armada-8040-mcbin.dts | 9 +++++++++ 3 files changed, 30 insertions(+)
Signature · 1 line
2.13.5
PATCH v2 1/4 arm64: dts: marvell: mcbin: add comphy references to Ethernet ports
This patch adds comphy phandles to the Ethernet ports in the mcbin device tree. The comphy is used to configure the serdes PHYs used by these ports.
--- arch/arm64/boot/dts/marvell/armada-8040-mcbin.dts | 9 +++++++++ 1 file changed, 9 insertions(+)
arch/arm64/boot/dts/marvell/armada-8040-mcbin.dts +9 -0
@@ -222,8 +222,11 @@ &cpm_eth0 { status = "okay"; + /* Network PHY */ phy = <&phy0>; phy-mode = "10gbase-kr"; + /* Generic PHY, providing serdes lanes */ + phys = <&cpm_comphy4 0>; }; &cpm_sata0 {
@@ -257,15 +260,21 @@ &cps_eth0 { status = "okay"; + /* Network PHY */ phy = <&phy8>; phy-mode = "10gbase-kr"; + /* Generic PHY, providing serdes lanes */ + phys = <&cps_comphy4 0>; }; &cps_eth1 { /* CPS Lane 0 - J5 (Gigabit RJ45) */ status = "okay"; + /* Network PHY */ phy = <&ge_phy>; phy-mode = "sgmii"; + /* Generic PHY, providing serdes lanes */ + phys = <&cps_comphy0 1>; }; &cps_pinctrl {
Signature · 1 line
2.13.5
Andrew Lunn
maintainerPATCH v2 1/4 arm64: dts: marvell: mcbin: add comphy references to Ethernet ports
Quoted 5 lines · Antoine Tenart
This patch adds comphy phandles to the Ethernet ports in the mcbin device tree. The comphy is used to configure the serdes PHYs used by these ports.
Signed-off-by Antoine Tenart <[email protected]>
Hi Antoine
This is much easier to understand. Thanks
Andrew
PATCH v2 2/4 arm64: dts: marvell: 7040-db: add comphy reference to Ethernet port
In reply to Antoine TenartThis patch adds a comphy phandle to the Ethernet port in the 7040-db device tree. The comphy is used to configure the serdes PHYs used by these ports.
--- arch/arm64/boot/dts/marvell/armada-7040-db.dts | 3 +++ 1 file changed, 3 insertions(+)
arch/arm64/boot/dts/marvell/armada-7040-db.dts +3 -0
@@ -217,8 +217,11 @@ &cpm_eth1 { status = "okay"; + /* Network PHY */ phy = <&phy0>; phy-mode = "sgmii"; + /* Generic PHY, providing serdes lanes */ + phys = <&cpm_comphy0 1>; }; &cpm_eth2 {
Signature · 1 line
2.13.5
PATCH v2 3/4 arm64: dts: marvell: 7040-db: enable the SFP port
In reply to Antoine TenartThis patch enables the SFP port on the Armada 7040 DB as this port is now supported by the PPv2 driver (since the PHY is now optional).
--- arch/arm64/boot/dts/marvell/armada-7040-db.dts | 8 ++++++++ 1 file changed, 8 insertions(+)
arch/arm64/boot/dts/marvell/armada-7040-db.dts +8 -0
@@ -215,6 +215,14 @@ status = "okay"; }; +&cpm_eth0 { + status = "okay"; + /* Network PHY */ + phy-mode = "10gbase-kr"; + /* Generic PHY, providing serdes lanes */ + phys = <&cpm_comphy2 0>; +}; + &cpm_eth1 { status = "okay"; /* Network PHY */
Signature · 1 line
2.13.5
PATCH v2 4/4 arm64: dts: marvell: 8040-db: enable the SFP ports
In reply to Antoine TenartThis patch enables the SFP ports on the Armada 8040 DB as these ports are now supported by the PPv2 driver (since the PHY is now optional).
--- arch/arm64/boot/dts/marvell/armada-8040-db.dts | 10 ++++++++++ 1 file changed, 10 insertions(+)
arch/arm64/boot/dts/marvell/armada-8040-db.dts +10 -0
@@ -200,6 +200,11 @@ status = "okay"; }; +&cpm_eth0 { + status = "okay"; + phy-mode = "10gbase-kr"; +}; + &cpm_eth2 { status = "okay"; phy = <&phy1>;
@@ -244,6 +249,11 @@ status = "okay"; }; +&cps_eth0 { + status = "okay"; + phy-mode = "10gbase-kr"; +}; + &cps_eth1 { status = "okay"; phy = <&phy0>;
Signature · 1 line
2.13.5
v2 cover arm64: marvell: 7k/8k: improve network support
In reply to Antoine TenartHi Antoine,
Quoted 22 lines · Antoine Tenart
Hi all,
This series improves the network support on Marvell 7k and 8k platforms by adding descriptions of the comphy, and by using the comphy in already available networking ports. The series also introduces a description of the SFP ports on the Marvell Armada 7040-db and 8040-db.
Two defconfig patches also improve the Marvell ARM64 support by enabling required options allowing to use the networking ports properly.
This series follows recent improvements in the PPv2 driver.
Based on v4.14-rc1, and tested on the Marvell Armada 7040-db, 8040-db and 8040-mcbin.
Thanks!
AntoineSince v1:
- Added comments in nodes using both a network PHY and a generic PHY.
- 4 patches were applied on mvebu trees.
Quoted 6 lines
Antoine Tenart (4):
arm64: dts: marvell: mcbin: add comphy references to Ethernet ports
arm64: dts: marvell: 7040-db: add comphy reference to Ethernet port
arm64: dts: marvell: 7040-db: enable the SFP port
arm64: dts: marvell: 8040-db: enable the SFP ports
All applied on mvebu/dt64 and first with Testdd-by from Andrew.
Thanks,
Gregory
Quoted 13 lines
arch/arm64/boot/dts/marvell/armada-7040-db.dts | 11 +++++++++++ arch/arm64/boot/dts/marvell/armada-8040-db.dts | 10 ++++++++++ arch/arm64/boot/dts/marvell/armada-8040-mcbin.dts | 9 +++++++++ 3 files changed, 30 insertions(+)Signature · 7 lines
2.13.5 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel at lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Signature · 4 lines
Gregory Clement, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com