brcm2708: add linux 4.19 support
[openwrt/staging/mkresin.git] / target / linux / brcm2708 / patches-4.19 / 950-0217-ARM-dts-bcm283x-The-lan7515-PHY-node-has-moved.patch
1 From 1606baa0882db5b08b493b59eaa2377703e536d2 Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.org>
3 Date: Tue, 27 Nov 2018 16:33:31 +0000
4 Subject: [PATCH 217/703] ARM: dts: bcm283x: The lan7515 PHY node has moved
5
6 The DT node describing the LAN7800s PHY has now moved inside an "mdio"
7 node. Update the DT declarations accordingly.
8
9 Signed-off-by: Phil Elwell <phil@raspberrypi.org>
10 ---
11 arch/arm/boot/dts/bcm283x-rpi-lan7515.dtsi | 31 ++++++++++++++--------
12 1 file changed, 20 insertions(+), 11 deletions(-)
13
14 --- a/arch/arm/boot/dts/bcm283x-rpi-lan7515.dtsi
15 +++ b/arch/arm/boot/dts/bcm283x-rpi-lan7515.dtsi
16 @@ -1,4 +1,6 @@
17 // SPDX-License-Identifier: GPL-2.0
18 +#include <dt-bindings/net/microchip-lan78xx.h>
19 +
20 / {
21 aliases {
22 ethernet0 = &ethernet;
23 @@ -21,13 +23,20 @@
24 ethernet: ethernet@1 {
25 compatible = "usb424,7800";
26 reg = <1>;
27 - microchip,eee-enabled;
28 - microchip,tx-lpi-timer = <600>; /* non-aggressive*/
29 - /*
30 - * led0 = 1:link1000/activity
31 - * led1 = 6:link10/100/activity
32 - */
33 - microchip,led-modes = <1 6>;
34 +
35 + mdio {
36 + #address-cells = <0x1>;
37 + #size-cells = <0x0>;
38 + eth_phy: ethernet-phy@1 {
39 + reg = <1>;
40 + microchip,eee-enabled;
41 + microchip,tx-lpi-timer = <600>; /* non-aggressive*/
42 + microchip,led-modes = <
43 + LAN78XX_LINK_1000_ACTIVITY
44 + LAN78XX_LINK_10_100_ACTIVITY
45 + >;
46 + };
47 + };
48 };
49 };
50 };
51 @@ -36,9 +45,9 @@
52
53 / {
54 __overrides__ {
55 - eee = <&ethernet>,"microchip,eee-enabled?";
56 - tx_lpi_timer = <&ethernet>,"microchip,tx-lpi-timer:0";
57 - eth_led0 = <&ethernet>,"microchip,led-modes:0";
58 - eth_led1 = <&ethernet>,"microchip,led-modes:4";
59 + eee = <&eth_phy>,"microchip,eee-enabled?";
60 + tx_lpi_timer = <&eth_phy>,"microchip,tx-lpi-timer:0";
61 + eth_led0 = <&eth_phy>,"microchip,led-modes:0";
62 + eth_led1 = <&eth_phy>,"microchip,led-modes:4";
63 };
64 };