54e97c702875a639b91e3257c79c46aa96dc1c7f
[openwrt/staging/noltari.git] /
1 From e94821ffebf0550b7244029b0fe360fd5627fb9b Mon Sep 17 00:00:00 2001
2 From: derpeter <derpeter@users.noreply.github.com>
3 Date: Sun, 25 Mar 2018 23:27:30 +0200
4 Subject: [PATCH 259/454] This commit adds support for RP3-B-Plus in in arch
5 arm64 (#2464)
6
7 ---
8 arch/arm64/boot/dts/broadcom/Makefile | 1 +
9 arch/arm64/boot/dts/broadcom/bcm2710-rpi-3-b-plus.dts | 3 +++
10 arch/arm64/boot/dts/broadcom/bcm283x-rpi-lan7515.dtsi | 1 +
11 arch/arm64/configs/bcmrpi3_defconfig | 1 +
12 4 files changed, 6 insertions(+)
13 create mode 100644 arch/arm64/boot/dts/broadcom/bcm2710-rpi-3-b-plus.dts
14 create mode 120000 arch/arm64/boot/dts/broadcom/bcm283x-rpi-lan7515.dtsi
15
16 --- a/arch/arm64/boot/dts/broadcom/Makefile
17 +++ b/arch/arm64/boot/dts/broadcom/Makefile
18 @@ -8,6 +8,7 @@ endif
19 dtb-$(CONFIG_ARCH_BCM2835) += bcm2837-rpi-3-b.dtb
20 dtb-$(CONFIG_ARCH_BCM2709) += bcm2710-rpi-3-b.dtb
21 dtb-$(CONFIG_ARCH_BCM2835) += bcm2710-rpi-3-b.dtb
22 +dtb-$(CONFIG_ARCH_BCM2835) += bcm2710-rpi-3-b-plus.dtb
23
24 dts-dirs += ../overlays
25
26 --- /dev/null
27 +++ b/arch/arm64/boot/dts/broadcom/bcm2710-rpi-3-b-plus.dts
28 @@ -0,0 +1,3 @@
29 +#define RPI364
30 +
31 +#include "../../../../arm/boot/dts/bcm2710-rpi-3-b-plus.dts"
32 --- /dev/null
33 +++ b/arch/arm64/boot/dts/broadcom/bcm283x-rpi-lan7515.dtsi
34 @@ -0,0 +1,43 @@
35 +/ {
36 + aliases {
37 + ethernet0 = &ethernet;
38 + };
39 +};
40 +
41 +&usb {
42 + usb1@1 {
43 + compatible = "usb424,2514";
44 + reg = <1>;
45 + #address-cells = <1>;
46 + #size-cells = <0>;
47 +
48 + usb1_1@1 {
49 + compatible = "usb424,2514";
50 + reg = <1>;
51 + #address-cells = <1>;
52 + #size-cells = <0>;
53 +
54 + ethernet: usbether@1 {
55 + compatible = "usb424,7800";
56 + reg = <1>;
57 + microchip,eee-enabled;
58 + microchip,tx-lpi-timer = <600>; /* non-aggressive*/
59 + /*
60 + * led0 = 1:link1000/activity
61 + * led1 = 6:link10/100/activity
62 + */
63 + microchip,led-modes = <1 6>;
64 + };
65 + };
66 + };
67 +};
68 +
69 +
70 +/ {
71 + __overrides__ {
72 + eee = <&ethernet>,"microchip,eee-enabled?";
73 + tx_lpi_timer = <&ethernet>,"microchip,tx-lpi-timer:0";
74 + eth_led0 = <&ethernet>,"microchip,led-modes:0";
75 + eth_led1 = <&ethernet>,"microchip,led-modes:4";
76 + };
77 +};
78 --- a/arch/arm64/configs/bcmrpi3_defconfig
79 +++ b/arch/arm64/configs/bcmrpi3_defconfig
80 @@ -479,6 +479,7 @@ CONFIG_USB_NET_SR9700=m
81 CONFIG_USB_NET_SR9800=m
82 CONFIG_USB_NET_SMSC75XX=m
83 CONFIG_USB_NET_SMSC95XX=y
84 +CONFIG_USB_LAN78XX=y
85 CONFIG_USB_NET_GL620A=m
86 CONFIG_USB_NET_NET1080=m
87 CONFIG_USB_NET_PLUSB=m