1 From 32847947e1d1e1ac2a73c7ea8ad47cca49aef5d4 Mon Sep 17 00:00:00 2001
2 From: Stefan Wahren <wahrenst@gmx.net>
3 Date: Mon, 11 Nov 2019 20:49:26 +0100
4 Subject: [PATCH] ARM: dts: bcm2711-rpi-4: Enable GENET support
6 This enables the Gigabit Ethernet support on the Raspberry Pi 4.
7 The defined PHY mode is equivalent to the default register settings
8 in the downstream tree.
10 Signed-off-by: Matthias Brugger <mbrugger@suse.com>
11 Signed-off-by: Stefan Wahren <wahrenst@gmx.net>
12 Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
13 Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
15 arch/arm/boot/dts/bcm2711-rpi-4-b.dts | 17 +++++++++++++++++
16 arch/arm/boot/dts/bcm2711.dtsi | 26 ++++++++++++++++++++++++++
17 2 files changed, 43 insertions(+)
19 --- a/arch/arm/boot/dts/bcm2711-rpi-4-b.dts
20 +++ b/arch/arm/boot/dts/bcm2711-rpi-4-b.dts
31 gpios = <&gpio 42 GPIO_ACTIVE_HIGH>;
37 + phy-handle = <&phy1>;
38 + phy-mode = "rgmii-rxid";
43 + phy1: ethernet-phy@1 {
44 + /* No PHY interrupt */
49 /* uart0 communicates with the BT module */
51 pinctrl-names = "default";
52 --- a/arch/arm/boot/dts/bcm2711.dtsi
53 +++ b/arch/arm/boot/dts/bcm2711.dtsi
55 cpu-release-addr = <0x0 0x000000f0>;
60 + compatible = "simple-bus";
61 + #address-cells = <2>;
64 + ranges = <0x0 0x7c000000 0x0 0xfc000000 0x03800000>;
66 + genet: ethernet@7d580000 {
67 + compatible = "brcm,bcm2711-genet-v5";
68 + reg = <0x0 0x7d580000 0x10000>;
69 + #address-cells = <0x1>;
70 + #size-cells = <0x1>;
71 + interrupts = <GIC_SPI 157 IRQ_TYPE_LEVEL_HIGH>,
72 + <GIC_SPI 158 IRQ_TYPE_LEVEL_HIGH>;
73 + status = "disabled";
75 + genet_mdio: mdio@e14 {
76 + compatible = "brcm,genet-mdio-v5";
79 + #address-cells = <0x0>;
80 + #size-cells = <0x1>;