Skip to content

Commit be8af7a

Browse files
lategoodbyeffainelli
authored andcommitted
ARM: dts: bcm2711-rpi-4: Enable GENET support
This enables the Gigabit Ethernet support on the Raspberry Pi 4. The defined PHY mode is equivalent to the default register settings in the downstream tree. Signed-off-by: Matthias Brugger <[email protected]> Signed-off-by: Stefan Wahren <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Signed-off-by: Florian Fainelli <[email protected]>
1 parent d98a8db commit be8af7a

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

arch/arm/boot/dts/bcm2711-rpi-4-b.dts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
reg = <0 0 0>;
2020
};
2121

22+
aliases {
23+
ethernet0 = &genet;
24+
};
25+
2226
leds {
2327
act {
2428
gpios = <&gpio 42 GPIO_ACTIVE_HIGH>;
@@ -97,6 +101,19 @@
97101
status = "okay";
98102
};
99103

104+
&genet {
105+
phy-handle = <&phy1>;
106+
phy-mode = "rgmii-rxid";
107+
status = "okay";
108+
};
109+
110+
&genet_mdio {
111+
phy1: ethernet-phy@1 {
112+
/* No PHY interrupt */
113+
reg = <0x1>;
114+
};
115+
};
116+
100117
/* uart0 communicates with the BT module */
101118
&uart0 {
102119
pinctrl-names = "default";

arch/arm/boot/dts/bcm2711.dtsi

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,32 @@
325325
cpu-release-addr = <0x0 0x000000f0>;
326326
};
327327
};
328+
329+
scb {
330+
compatible = "simple-bus";
331+
#address-cells = <2>;
332+
#size-cells = <1>;
333+
334+
ranges = <0x0 0x7c000000 0x0 0xfc000000 0x03800000>;
335+
336+
genet: ethernet@7d580000 {
337+
compatible = "brcm,bcm2711-genet-v5";
338+
reg = <0x0 0x7d580000 0x10000>;
339+
#address-cells = <0x1>;
340+
#size-cells = <0x1>;
341+
interrupts = <GIC_SPI 157 IRQ_TYPE_LEVEL_HIGH>,
342+
<GIC_SPI 158 IRQ_TYPE_LEVEL_HIGH>;
343+
status = "disabled";
344+
345+
genet_mdio: mdio@e14 {
346+
compatible = "brcm,genet-mdio-v5";
347+
reg = <0xe14 0x8>;
348+
reg-names = "mdio";
349+
#address-cells = <0x0>;
350+
#size-cells = <0x1>;
351+
};
352+
};
353+
};
328354
};
329355

330356
&clk_osc {

0 commit comments

Comments
 (0)