aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2021-12-23 18:10:05 +0000
committerDaniel Golle <daniel@makrotopia.org>2021-12-23 20:17:42 +0000
commitf81a06408eec28d479f699bd762b703ac65e2150 (patch)
treec6f330626be31fc000e722f8b5019ca1728fbeac
parent7b9d2d6f7b142a8839bc3eb7f2e9e6c549eca9cd (diff)
downloadupstream-f81a06408eec28d479f699bd762b703ac65e2150.tar.gz
upstream-f81a06408eec28d479f699bd762b703ac65e2150.tar.bz2
upstream-f81a06408eec28d479f699bd762b703ac65e2150.zip
mvebu: enable Aquantia phy driver for Puzzle devices
Fixes Ethernet link status on all ports and makes 2.5G ports usable in 2.5G and 1G full-duplex mode. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
-rw-r--r--target/linux/mvebu/cortexa72/config-5.101
-rw-r--r--target/linux/mvebu/files/arch/arm64/boot/dts/marvell/cn9131-puzzle-m901.dts12
-rw-r--r--target/linux/mvebu/files/arch/arm64/boot/dts/marvell/cn9132-puzzle-m902.dts18
3 files changed, 16 insertions, 15 deletions
diff --git a/target/linux/mvebu/cortexa72/config-5.10 b/target/linux/mvebu/cortexa72/config-5.10
index 9b431b75ce..be78be5a34 100644
--- a/target/linux/mvebu/cortexa72/config-5.10
+++ b/target/linux/mvebu/cortexa72/config-5.10
@@ -1,4 +1,5 @@
CONFIG_64BIT=y
+CONFIG_AQUANTIA_PHY=y
CONFIG_ARCH_DMA_ADDR_T_64BIT=y
CONFIG_ARCH_MMAP_RND_BITS=18
CONFIG_ARCH_MMAP_RND_BITS_MAX=24
diff --git a/target/linux/mvebu/files/arch/arm64/boot/dts/marvell/cn9131-puzzle-m901.dts b/target/linux/mvebu/files/arch/arm64/boot/dts/marvell/cn9131-puzzle-m901.dts
index acf2ed6422..80d876b4ad 100644
--- a/target/linux/mvebu/files/arch/arm64/boot/dts/marvell/cn9131-puzzle-m901.dts
+++ b/target/linux/mvebu/files/arch/arm64/boot/dts/marvell/cn9131-puzzle-m901.dts
@@ -169,21 +169,21 @@
status = "okay";
phy-mode = "2500base-x";
phys = <&cp0_comphy2 0>;
- managed = "in-band-status";
+ phy = <&cp0_nbaset_phy0>;
};
&cp0_eth1 {
status = "okay";
phy-mode = "2500base-x";
phys = <&cp0_comphy4 1>;
- managed = "in-band-status";
+ phy = <&cp0_nbaset_phy1>;
};
&cp0_eth2 {
status = "okay";
phy-mode = "2500base-x";
phys = <&cp0_comphy5 2>;
- managed = "in-band-status";
+ phy = <&cp0_nbaset_phy2>;
};
&cp0_gpio1 {
@@ -334,21 +334,21 @@
status = "okay";
phy-mode = "2500base-x";
phys = <&cp1_comphy2 0>;
- managed = "in-band-status";
+ phy = <&cp1_nbaset_phy0>;
};
&cp1_eth1 {
status = "okay";
phy-mode = "2500base-x";
phys = <&cp1_comphy4 1>;
- managed = "in-band-status";
+ phy = <&cp1_nbaset_phy1>;
};
&cp1_eth2 {
status = "okay";
phy-mode = "2500base-x";
phys = <&cp1_comphy5 2>;
- managed = "in-band-status";
+ phy = <&cp1_nbaset_phy2>;
};
&cp1_sata0 {
diff --git a/target/linux/mvebu/files/arch/arm64/boot/dts/marvell/cn9132-puzzle-m902.dts b/target/linux/mvebu/files/arch/arm64/boot/dts/marvell/cn9132-puzzle-m902.dts
index bfa7874a67..fd99eb2d13 100644
--- a/target/linux/mvebu/files/arch/arm64/boot/dts/marvell/cn9132-puzzle-m902.dts
+++ b/target/linux/mvebu/files/arch/arm64/boot/dts/marvell/cn9132-puzzle-m902.dts
@@ -214,21 +214,21 @@
status = "okay";
phy-mode = "10gbase-kr";
phys = <&cp0_comphy2 0>;
- managed = "in-band-status";
+ phy = <&cp0_nbaset_phy0>;
};
&cp0_eth1 {
status = "okay";
phy-mode = "2500base-x";
phys = <&cp0_comphy4 1>;
- managed = "in-band-status";
+ phy = <&cp0_nbaset_phy1>;
};
&cp0_eth2 {
status = "okay";
phy-mode = "2500base-x";
phys = <&cp0_comphy1 2>;
- managed = "in-band-status";
+ phy = <&cp0_nbaset_phy2>;
};
&cp0_gpio1 {
@@ -397,21 +397,21 @@
status = "okay";
phy-mode = "10gbase-kr";
phys = <&cp1_comphy2 0>;
- managed = "in-band-status";
+ phy = <&cp1_nbaset_phy0>;
};
&cp1_eth1 {
status = "okay";
phy-mode = "2500base-x";
phys = <&cp1_comphy4 1>;
- managed = "in-band-status";
+ phy = <&cp1_nbaset_phy1>;
};
&cp1_eth2 {
status = "okay";
phy-mode = "2500base-x";
phys = <&cp1_comphy1 2>;
- managed = "in-band-status";
+ phy = <&cp1_nbaset_phy2>;
};
&cp1_gpio1 {
@@ -498,21 +498,21 @@
status = "okay";
phy-mode = "10gbase-kr";
phys = <&cp2_comphy2 0>;
- managed = "in-band-status";
+ phy = <&cp2_nbaset_phy0>;
};
&cp2_eth1 {
status = "okay";
phy-mode = "2500base-x";
phys = <&cp2_comphy4 1>;
- managed = "in-band-status";
+ phy = <&cp2_nbaset_phy1>;
};
&cp2_eth2 {
status = "okay";
phy-mode = "2500base-x";
phys = <&cp2_comphy1 2>;
- managed = "in-band-status";
+ phy = <&cp2_nbaset_phy2>;
};
&cp2_gpio1 {