linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/4] arm64: marvell: 7k/8k: improve network support
@ 2017-09-21  7:54 Antoine Tenart
  2017-09-21  7:54 ` [PATCH v2 1/4] arm64: dts: marvell: mcbin: add comphy references to Ethernet ports Antoine Tenart
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Antoine Tenart @ 2017-09-21  7:54 UTC (permalink / raw)
  To: linux-arm-kernel

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(+)

-- 
2.13.5

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH v2 1/4] arm64: dts: marvell: mcbin: add comphy references to Ethernet ports
  2017-09-21  7:54 [PATCH v2 0/4] arm64: marvell: 7k/8k: improve network support Antoine Tenart
@ 2017-09-21  7:54 ` Antoine Tenart
  2017-09-21 13:55   ` Andrew Lunn
  2017-09-21  7:54 ` [PATCH v2 2/4] arm64: dts: marvell: 7040-db: add comphy reference to Ethernet port Antoine Tenart
                   ` (3 subsequent siblings)
  4 siblings, 1 reply; 7+ messages in thread
From: Antoine Tenart @ 2017-09-21  7:54 UTC (permalink / raw)
  To: linux-arm-kernel

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 <antoine.tenart@free-electrons.com>
---
 arch/arm64/boot/dts/marvell/armada-8040-mcbin.dts | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/arch/arm64/boot/dts/marvell/armada-8040-mcbin.dts b/arch/arm64/boot/dts/marvell/armada-8040-mcbin.dts
index acf5c7d16d79..49d6590507b5 100644
--- a/arch/arm64/boot/dts/marvell/armada-8040-mcbin.dts
+++ b/arch/arm64/boot/dts/marvell/armada-8040-mcbin.dts
@@ -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 {
-- 
2.13.5

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH v2 2/4] arm64: dts: marvell: 7040-db: add comphy reference to Ethernet port
  2017-09-21  7:54 [PATCH v2 0/4] arm64: marvell: 7k/8k: improve network support Antoine Tenart
  2017-09-21  7:54 ` [PATCH v2 1/4] arm64: dts: marvell: mcbin: add comphy references to Ethernet ports Antoine Tenart
@ 2017-09-21  7:54 ` Antoine Tenart
  2017-09-21  7:54 ` [PATCH v2 3/4] arm64: dts: marvell: 7040-db: enable the SFP port Antoine Tenart
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 7+ messages in thread
From: Antoine Tenart @ 2017-09-21  7:54 UTC (permalink / raw)
  To: linux-arm-kernel

This 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.

Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com>
---
 arch/arm64/boot/dts/marvell/armada-7040-db.dts | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/arm64/boot/dts/marvell/armada-7040-db.dts b/arch/arm64/boot/dts/marvell/armada-7040-db.dts
index 9c3bdf87e543..06a7ea549a8f 100644
--- a/arch/arm64/boot/dts/marvell/armada-7040-db.dts
+++ b/arch/arm64/boot/dts/marvell/armada-7040-db.dts
@@ -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 {
-- 
2.13.5

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH v2 3/4] arm64: dts: marvell: 7040-db: enable the SFP port
  2017-09-21  7:54 [PATCH v2 0/4] arm64: marvell: 7k/8k: improve network support Antoine Tenart
  2017-09-21  7:54 ` [PATCH v2 1/4] arm64: dts: marvell: mcbin: add comphy references to Ethernet ports Antoine Tenart
  2017-09-21  7:54 ` [PATCH v2 2/4] arm64: dts: marvell: 7040-db: add comphy reference to Ethernet port Antoine Tenart
@ 2017-09-21  7:54 ` Antoine Tenart
  2017-09-21  7:54 ` [PATCH v2 4/4] arm64: dts: marvell: 8040-db: enable the SFP ports Antoine Tenart
  2017-09-22 12:04 ` [PATCH v2 0/4] arm64: marvell: 7k/8k: improve network support Gregory CLEMENT
  4 siblings, 0 replies; 7+ messages in thread
From: Antoine Tenart @ 2017-09-21  7:54 UTC (permalink / raw)
  To: linux-arm-kernel

This 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).

Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com>
Tested-by: Marcin Wojtas <mw@semihalf.com>
---
 arch/arm64/boot/dts/marvell/armada-7040-db.dts | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/arch/arm64/boot/dts/marvell/armada-7040-db.dts b/arch/arm64/boot/dts/marvell/armada-7040-db.dts
index 06a7ea549a8f..7457b2ea9c4e 100644
--- a/arch/arm64/boot/dts/marvell/armada-7040-db.dts
+++ b/arch/arm64/boot/dts/marvell/armada-7040-db.dts
@@ -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 */
-- 
2.13.5

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH v2 4/4] arm64: dts: marvell: 8040-db: enable the SFP ports
  2017-09-21  7:54 [PATCH v2 0/4] arm64: marvell: 7k/8k: improve network support Antoine Tenart
                   ` (2 preceding siblings ...)
  2017-09-21  7:54 ` [PATCH v2 3/4] arm64: dts: marvell: 7040-db: enable the SFP port Antoine Tenart
@ 2017-09-21  7:54 ` Antoine Tenart
  2017-09-22 12:04 ` [PATCH v2 0/4] arm64: marvell: 7k/8k: improve network support Gregory CLEMENT
  4 siblings, 0 replies; 7+ messages in thread
From: Antoine Tenart @ 2017-09-21  7:54 UTC (permalink / raw)
  To: linux-arm-kernel

This 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).

Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com>
Tested-by: Marcin Wojtas <mw@semihalf.com>
---
 arch/arm64/boot/dts/marvell/armada-8040-db.dts | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/arch/arm64/boot/dts/marvell/armada-8040-db.dts b/arch/arm64/boot/dts/marvell/armada-8040-db.dts
index 0d7b2ae46610..26a018329a74 100644
--- a/arch/arm64/boot/dts/marvell/armada-8040-db.dts
+++ b/arch/arm64/boot/dts/marvell/armada-8040-db.dts
@@ -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>;
-- 
2.13.5

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH v2 1/4] arm64: dts: marvell: mcbin: add comphy references to Ethernet ports
  2017-09-21  7:54 ` [PATCH v2 1/4] arm64: dts: marvell: mcbin: add comphy references to Ethernet ports Antoine Tenart
@ 2017-09-21 13:55   ` Andrew Lunn
  0 siblings, 0 replies; 7+ messages in thread
From: Andrew Lunn @ 2017-09-21 13:55 UTC (permalink / raw)
  To: linux-arm-kernel

On Thu, Sep 21, 2017 at 09:54:07AM +0200, Antoine Tenart wrote:
> 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 <antoine.tenart@free-electrons.com>

Hi Antoine

This is much easier to understand. Thanks

Reviewed-by: Andrew Lunn <andrew@lunn.ch>

    Andrew

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH v2 0/4] arm64: marvell: 7k/8k: improve network support
  2017-09-21  7:54 [PATCH v2 0/4] arm64: marvell: 7k/8k: improve network support Antoine Tenart
                   ` (3 preceding siblings ...)
  2017-09-21  7:54 ` [PATCH v2 4/4] arm64: dts: marvell: 8040-db: enable the SFP ports Antoine Tenart
@ 2017-09-22 12:04 ` Gregory CLEMENT
  4 siblings, 0 replies; 7+ messages in thread
From: Gregory CLEMENT @ 2017-09-22 12:04 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Antoine,
 
 On jeu., sept. 21 2017, Antoine Tenart <antoine.tenart@free-electrons.com> wrote:

> 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
>

All applied on mvebu/dt64 and first with Testdd-by from Andrew.

Thanks,

Gregory


>  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(+)
>
> -- 
> 2.13.5
>
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

-- 
Gregory Clement, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-09-22 12:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-21  7:54 [PATCH v2 0/4] arm64: marvell: 7k/8k: improve network support Antoine Tenart
2017-09-21  7:54 ` [PATCH v2 1/4] arm64: dts: marvell: mcbin: add comphy references to Ethernet ports Antoine Tenart
2017-09-21 13:55   ` Andrew Lunn
2017-09-21  7:54 ` [PATCH v2 2/4] arm64: dts: marvell: 7040-db: add comphy reference to Ethernet port Antoine Tenart
2017-09-21  7:54 ` [PATCH v2 3/4] arm64: dts: marvell: 7040-db: enable the SFP port Antoine Tenart
2017-09-21  7:54 ` [PATCH v2 4/4] arm64: dts: marvell: 8040-db: enable the SFP ports Antoine Tenart
2017-09-22 12:04 ` [PATCH v2 0/4] arm64: marvell: 7k/8k: improve network support Gregory CLEMENT

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).