Skip to content

Commit defbbb8

Browse files
committed
boards: qemu_cortex_a9: add MDIO and PHY
enable MDIO in the board's Kconfig, specify the Ethernet operational mode for QEMU, add/configure MDIO/PHY nodes in the device tree. Signed-off-by: Immo Birnbaum <mail@birnbaum.immo>
1 parent e0bda5d commit defbbb8

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

boards/qemu/cortex_a9/Kconfig.defconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ if NETWORKING
2929
config NET_L2_ETHERNET
3030
default y
3131

32+
config MDIO
33+
default y
34+
3235
config NET_TX_STACK_SIZE
3336
default 8192
3437

boards/qemu/cortex_a9/qemu_cortex_a9.dts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,17 @@
5757

5858
&gem0 {
5959
status = "okay";
60+
phy-handle = <&gem0_phy>;
6061
clock-frequency = <1000000000>;
61-
mdc-divider = <XLNX_GEM_MDC_DIVIDER_224>;
6262
local-mac-address = [00 00 00 01 02 03];
6363
};
64+
65+
&gem0_mdio {
66+
status = "okay";
67+
68+
gem0_phy: phy@1 {
69+
compatible = "marvell,88e1xxx";
70+
reg = <1>;
71+
status = "okay";
72+
};
73+
};

0 commit comments

Comments
 (0)