Skip to content

Commit

Permalink
Adapt device tree to use new ethernet driver
Browse files Browse the repository at this point in the history
The old ethernet driver called xemacps is deprecated in favor
of macb, however macb requires a slightly different device tree node
  • Loading branch information
EmilioPeJu committed May 20, 2021
1 parent f25cb3b commit a20222b
Showing 1 changed file with 6 additions and 24 deletions.
30 changes: 6 additions & 24 deletions boot/devicetree.dts
Original file line number Diff line number Diff line change
Expand Up @@ -282,34 +282,16 @@
};

ethernet@e000b000 {
compatible = "xlnx,ps7-ethernet-1.00.a";
compatible = "cdns,zynq-gem", "cdns,gem";
reg = <0xe000b000 0x1000>;
status = "okay";
interrupts = <0x0 0x16 0x4>;
clocks = <0x1 0xd 0x1 0x1e>;
clock-names = "ref_clk", "aper_clk";
local-mac-address = [00 0a 35 00 22 5c];
xlnx,has-mdio = <0x1>;
#address-cells = <0x1>;
#size-cells = <0x0>;
enet-reset = <0x4 0x2f 0x0>;
interrupts = <0x00 0x16 0x04>;
clocks = <0x01 0x1e 0x01 0x1e 0x01 0x0d>;
clock-names = "pclk", "hclk", "tx_clk";
#address-cells = <0x01>;
#size-cells = <0x00>;
phy-mode = "rgmii-id";
xlnx,ptp-enet-clock = <0x69f6bcb>;
phy-handle = <0x5>;

mdio {
#address-cells = <0x1>;
#size-cells = <0x0>;

phy@0 {
compatible = "marvell,88e1512";
device_type = "ethernet-phy";
reg = <0x0>;
marvell,reg-init = <0x3 0x10 0xff00 0x1e 0x3 0x11 0xfff0 0x0>;
linux,phandle = <0x5>;
phandle = <0x5>;
};
};
};

ethernet@e000c000 {
Expand Down

0 comments on commit a20222b

Please sign in to comment.