summaryrefslogtreecommitdiffstats
path: root/arch/arm/boot
diff options
context:
space:
mode:
authorHoratiu Vultur <horatiu.vultur@microchip.com>2022-07-19 22:11:58 +0200
committerClaudiu Beznea <claudiu.beznea@microchip.com>2022-07-22 16:54:09 +0200
commitd3e71a2eae1f43fd318922694b843d34b4920b07 (patch)
treee8bb9ad5c39b771d62c1656eff62472ec0d1ee76 /arch/arm/boot
parentARM: dts: lan966x: Disable can0 on pcb8291 (diff)
downloadlinux-d3e71a2eae1f43fd318922694b843d34b4920b07.tar.xz
linux-d3e71a2eae1f43fd318922694b843d34b4920b07.zip
ARM: dts: lan966x: Enable network driver on pcb8291
The pcb8291 has 2 ports that are connected to the internal ports of the switch. Enable them in DT. Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com> [claudiu.beznea: moved status ="okay" at the end for port0 and port1] Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com> Link: https://lore.kernel.org/r/20220719201158.1696168-4-horatiu.vultur@microchip.com
Diffstat (limited to 'arch/arm/boot')
-rw-r--r--arch/arm/boot/dts/lan966x-pcb8291.dts35
1 files changed, 35 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/lan966x-pcb8291.dts b/arch/arm/boot/dts/lan966x-pcb8291.dts
index ab80558de259..24d9055c4a08 100644
--- a/arch/arm/boot/dts/lan966x-pcb8291.dts
+++ b/arch/arm/boot/dts/lan966x-pcb8291.dts
@@ -4,6 +4,7 @@
*/
/dts-v1/;
#include "lan966x.dtsi"
+#include "dt-bindings/phy/phy-lan966x-serdes.h"
/ {
model = "Microchip EVB - LAN9662";
@@ -55,6 +56,40 @@
};
};
+&mdio1 {
+ status = "okay";
+};
+
+&phy0 {
+ status = "okay";
+};
+
+&phy1 {
+ status = "okay";
+};
+
+&port0 {
+ phy-handle = <&phy0>;
+ phy-mode = "gmii";
+ phys = <&serdes 0 CU(0)>;
+ status = "okay";
+};
+
+&port1 {
+ phy-handle = <&phy1>;
+ phy-mode = "gmii";
+ phys = <&serdes 1 CU(1)>;
+ status = "okay";
+};
+
+&serdes {
+ status = "okay";
+};
+
+&switch {
+ status = "okay";
+};
+
&watchdog {
status = "okay";
};