diff options
author | Rafał Miłecki <rafal@milecki.pl> | 2021-02-08 11:45:03 +0100 |
---|---|---|
committer | Rafał Miłecki <rafal@milecki.pl> | 2021-02-08 11:49:21 +0100 |
commit | 81240a9b8985de7aefe40e8ea3a3d1602094e555 (patch) | |
tree | 0eb732ad34ca12067a9045f3fe015c509ac8217e /target/linux/bcm4908/patches-5.4/302-arm64-dts-broadcom-bcm4908-describe-Ethernet-control.patch | |
parent | aed95c4cb8d5a55a795910a759d08e1393f8d967 (diff) | |
download | upstream-81240a9b8985de7aefe40e8ea3a3d1602094e555.tar.gz upstream-81240a9b8985de7aefe40e8ea3a3d1602094e555.tar.bz2 upstream-81240a9b8985de7aefe40e8ea3a3d1602094e555.zip |
bcm4908: add Ethernet driver
This commit picks up pending netdev patches.
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Diffstat (limited to 'target/linux/bcm4908/patches-5.4/302-arm64-dts-broadcom-bcm4908-describe-Ethernet-control.patch')
-rw-r--r-- | target/linux/bcm4908/patches-5.4/302-arm64-dts-broadcom-bcm4908-describe-Ethernet-control.patch | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/target/linux/bcm4908/patches-5.4/302-arm64-dts-broadcom-bcm4908-describe-Ethernet-control.patch b/target/linux/bcm4908/patches-5.4/302-arm64-dts-broadcom-bcm4908-describe-Ethernet-control.patch new file mode 100644 index 0000000000..755292dacf --- /dev/null +++ b/target/linux/bcm4908/patches-5.4/302-arm64-dts-broadcom-bcm4908-describe-Ethernet-control.patch @@ -0,0 +1,49 @@ +From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl> +Date: Mon, 8 Feb 2021 09:11:36 +0100 +Subject: [PATCH] arm64: dts: broadcom: bcm4908: describe Ethernet controller +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +BCM4908 SoCs have an integrated Ethernet controller. + +Signed-off-by: Rafał Miłecki <rafal@milecki.pl> +--- + +--- a/arch/arm64/boot/dts/broadcom/bcm4908/bcm4908-asus-gt-ac5300.dts ++++ b/arch/arm64/boot/dts/broadcom/bcm4908/bcm4908-asus-gt-ac5300.dts +@@ -87,6 +87,17 @@ + full-duplex; + }; + }; ++ ++ port@8 { ++ reg = <8>; ++ phy-mode = "internal"; ++ brcm,use-bcm-hdr; ++ ethernet = <&gmac>; ++ fixed-link { ++ speed = <1000>; ++ full-duplex; ++ }; ++ }; + }; + + &mdio { +--- a/arch/arm64/boot/dts/broadcom/bcm4908/bcm4908.dtsi ++++ b/arch/arm64/boot/dts/broadcom/bcm4908/bcm4908.dtsi +@@ -112,6 +112,14 @@ + #size-cells = <1>; + ranges = <0x00 0x00 0x80000000 0x281000>; + ++ gmac: ethernet@2000 { ++ compatible = "brcm,bcm4908enet"; ++ reg = <0x2000 0x1000>; ++ ++ interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>; ++ interrupt-names = "rx"; ++ }; ++ + usb_phy: usb-phy@c200 { + compatible = "brcm,bcm4908-usb-phy"; + reg = <0xc200 0x100>; |