1 From 30bd619480b6a2b92d404a61a1e90ddb76ae4be8 Mon Sep 17 00:00:00 2001
2 From: Stefan Wahren <wahrenst@gmx.net>
3 Date: Wed, 25 Dec 2019 16:40:47 +0100
4 Subject: [PATCH] ARM: dts: bcm2838: Backport genet from upstream
6 This backport all genet differences (different compatible, right PHY mode,
7 board specific stuff) from upstream.
9 Signed-off-by: Stefan Wahren <wahrenst@gmx.net>
11 arch/arm/boot/dts/bcm2711-rpi-4-b.dts | 14 ++++++++++++++
12 arch/arm/boot/dts/bcm2838-rpi-4-b.dts | 14 ++++++++++++++
13 arch/arm/boot/dts/bcm2838.dtsi | 17 ++++-------------
14 3 files changed, 32 insertions(+), 13 deletions(-)
16 --- a/arch/arm/boot/dts/bcm2711-rpi-4-b.dts
17 +++ b/arch/arm/boot/dts/bcm2711-rpi-4-b.dts
19 vqmmc-supply = <&sd_io_1v8_reg>;
23 + phy-handle = <&phy1>;
24 + phy-mode = "rgmii-rxid";
29 + phy1: ethernet-phy@1 {
30 + /* No PHY interrupt */
32 + led-modes = <0x00 0x08>; /* link/activity link */
39 --- a/arch/arm/boot/dts/bcm2838-rpi-4-b.dts
40 +++ b/arch/arm/boot/dts/bcm2838-rpi-4-b.dts
42 vqmmc-supply = <&sd_io_1v8_reg>;
46 + phy-handle = <&phy1>;
47 + phy-mode = "rgmii-rxid";
52 + phy1: ethernet-phy@1 {
53 + /* No PHY interrupt */
55 + led-modes = <0x00 0x08>; /* link/activity link */
59 /* uart0 communicates with the BT module */
61 pinctrl-names = "default";
62 --- a/arch/arm/boot/dts/bcm2838.dtsi
63 +++ b/arch/arm/boot/dts/bcm2838.dtsi
67 genet: ethernet@7d580000 {
68 - compatible = "brcm,genet-v5";
69 + compatible = "brcm,bcm2711-genet-v5", "brcm,genet-v5";
70 reg = <0x0 0x7d580000 0x10000>;
72 #address-cells = <0x1>;
74 interrupts = <GIC_SPI 157 IRQ_TYPE_LEVEL_HIGH>,
75 <GIC_SPI 158 IRQ_TYPE_LEVEL_HIGH>;
76 - phy-handle = <&phy1>;
79 + status = "disabled";
81 + genet_mdio: mdio@e14 {
82 #address-cells = <0x0>;
84 compatible = "brcm,genet-mdio-v5";
87 - phy1: ethernet-phy@0 {
89 - "ethernet-phy-ieee802.3-c22";
90 - /* No interrupts - use PHY_POLL */
93 - led-modes = <0x00 0x08>; /* link/activity link */