brcm2708: rename target to bcm27xx
[openwrt/staging/wigyori.git] / target / linux / bcm27xx / patches-4.19 / 950-0196-BCM270X_DT-Add-new-Ethernet-DT-parameters.patch
1 From 18867d71460b80385146e8d91a23cfb1729858f8 Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.org>
3 Date: Tue, 27 Nov 2018 16:56:50 +0000
4 Subject: [PATCH] BCM270X_DT: Add new Ethernet DT parameters
5
6 Add "eth_downshift_after" DT parameter to allow the delay before the
7 downshift to be specified. The default is 2 auto-negotiation cycles,
8 and legal values are 2, 3, 4, 5 and 0 (disabled).
9
10 Add "eth_max_speed" DT parameter as a way of prohibiting 1000Mbps
11 links. This can be used to avoid the delay until the downshift mechanism
12 activates. Legal values are 10, 100 and 1000, where the default is
13 unlimited (effectively 1000Mbps).
14
15 Signed-off-by: Phil Elwell <phil@raspberrypi.org>
16 ---
17 arch/arm/boot/dts/bcm283x-rpi-lan7515.dtsi | 2 ++
18 arch/arm/boot/dts/overlays/README | 9 +++++++++
19 2 files changed, 11 insertions(+)
20
21 --- a/arch/arm/boot/dts/bcm283x-rpi-lan7515.dtsi
22 +++ b/arch/arm/boot/dts/bcm283x-rpi-lan7515.dtsi
23 @@ -50,5 +50,7 @@
24 tx_lpi_timer = <&eth_phy>,"microchip,tx-lpi-timer:0";
25 eth_led0 = <&eth_phy>,"microchip,led-modes:0";
26 eth_led1 = <&eth_phy>,"microchip,led-modes:4";
27 + eth_downshift_after = <&eth_phy>,"microchip,downshift-after";
28 + eth_max_speed = <&eth_phy>,"max-speed:0";
29 };
30 };
31 --- a/arch/arm/boot/dts/overlays/README
32 +++ b/arch/arm/boot/dts/overlays/README
33 @@ -98,6 +98,11 @@ Params:
34 compatible devices (default "on"). See also
35 "tx_lpi_timer".
36
37 + eth_downshift_after Set the number of auto-negotiation failures
38 + after which the 1000Mbps modes are disabled.
39 + Legal values are 2, 3, 4, 5 and 0, where
40 + 0 means never downshift (default 2).
41 +
42 eth_led0 Set mode of LED0 (usually orange) (default
43 "1"). The legal values are:
44 0=link/activity 1=link1000/activity
45 @@ -108,6 +113,10 @@ Params:
46 eth_led1 Set mode of LED1 (usually green) (default
47 "6"). See eth_led0 for legal values.
48
49 + eth_max_speed Set the maximum speed a link is allowed
50 + to negotiate. Legal values are 10, 100 and
51 + 1000 (default 1000).
52 +
53 i2c_arm Set to "on" to enable the ARM's i2c interface
54 (default "off")
55