Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1642120 > unrolled thread

[PATCH 2/2] arm64: marvell: dts: add second 1G port on the Armada 8040 DB

Started byMarcin Wojtas <mw@semihalf.com>
First post2017-05-16 01:30 +0200
Last post2017-05-23 16:30 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 2/2] arm64: marvell: dts: add second 1G port on the Armada 8040 DB Marcin Wojtas <mw@semihalf.com> - 2017-05-16 01:30 +0200
    Re: [PATCH 2/2] arm64: marvell: dts: add second 1G port on the Armada 8040 DB Gregory CLEMENT <gregory.clement@free-electrons.com> - 2017-05-23 16:30 +0200

#1642120 — [PATCH 2/2] arm64: marvell: dts: add second 1G port on the Armada 8040 DB

FromMarcin Wojtas <mw@semihalf.com>
Date2017-05-16 01:30 +0200
Subject[PATCH 2/2] arm64: marvell: dts: add second 1G port on the Armada 8040 DB
Message-ID<tHxB8-6e6-3@gated-at.bofh.it>
Armada 8040 DB is equipped with 4 (2x 10G SFI + 2x 1G RGMII)
ethernet ports of which only one was hitherto enabled.
Because currently mvpp2 driver is capable of supporting only
1G RGMII/SGMII, enable second port from CP slave HW block.

Signed-off-by: Marcin Wojtas <mw@semihalf.com>
---
 arch/arm64/boot/dts/marvell/armada-8040-db.dts | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/arch/arm64/boot/dts/marvell/armada-8040-db.dts b/arch/arm64/boot/dts/marvell/armada-8040-db.dts
index dc0d084..3cde649 100644
--- a/arch/arm64/boot/dts/marvell/armada-8040-db.dts
+++ b/arch/arm64/boot/dts/marvell/armada-8040-db.dts
@@ -169,6 +169,22 @@
 	status = "okay";
 };
 
+&cps_mdio {
+	phy0: ethernet-phy@0 {
+		reg = <0>;
+	};
+};
+
+&cps_ethernet {
+	status = "okay";
+};
+
+&cps_eth1 {
+	status = "okay";
+	phy = <&phy0>;
+	phy-mode = "rgmii-id";
+};
+
 &ap_sdhci0 {
 	status = "okay";
 	bus-width = <4>;
-- 
1.8.3.1

[toc] | [next] | [standalone]


#1648138

FromGregory CLEMENT <gregory.clement@free-electrons.com>
Date2017-05-23 16:30 +0200
Message-ID<tKiYX-4oq-43@gated-at.bofh.it>
In reply to#1642120
Hi Marcin,
 
 On mar., mai 16 2017, Marcin Wojtas <mw@semihalf.com> wrote:

> Armada 8040 DB is equipped with 4 (2x 10G SFI + 2x 1G RGMII)
> ethernet ports of which only one was hitherto enabled.
> Because currently mvpp2 driver is capable of supporting only
> 1G RGMII/SGMII, enable second port from CP slave HW block.
>

Applied on mvebu/dt64

Thanks,

Gregory

> Signed-off-by: Marcin Wojtas <mw@semihalf.com>
> ---
>  arch/arm64/boot/dts/marvell/armada-8040-db.dts | 16 ++++++++++++++++
>  1 file changed, 16 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/marvell/armada-8040-db.dts b/arch/arm64/boot/dts/marvell/armada-8040-db.dts
> index dc0d084..3cde649 100644
> --- a/arch/arm64/boot/dts/marvell/armada-8040-db.dts
> +++ b/arch/arm64/boot/dts/marvell/armada-8040-db.dts
> @@ -169,6 +169,22 @@
>  	status = "okay";
>  };
>  
> +&cps_mdio {
> +	phy0: ethernet-phy@0 {
> +		reg = <0>;
> +	};
> +};
> +
> +&cps_ethernet {
> +	status = "okay";
> +};
> +
> +&cps_eth1 {
> +	status = "okay";
> +	phy = <&phy0>;
> +	phy-mode = "rgmii-id";
> +};
> +
>  &ap_sdhci0 {
>  	status = "okay";
>  	bus-width = <4>;
> -- 
> 1.8.3.1
>

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

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web