diff options
author | Álvaro Fernández Rojas <noltari@gmail.com> | 2019-07-09 20:32:28 +0200 |
---|---|---|
committer | Álvaro Fernández Rojas <noltari@gmail.com> | 2019-07-14 12:44:14 +0200 |
commit | 42954857190b9df16d9d873ecc7f6cc38e013e44 (patch) | |
tree | 98c588f629ff534d458eb0884782ea99672d7634 /target/linux/brcm2708/patches-4.19/950-0221-BCM270X_DT-Add-new-Ethernet-DT-parameters.patch | |
parent | f1875e902d0afb7d9b9e5285b4fd8da7f6c5e30a (diff) | |
download | upstream-42954857190b9df16d9d873ecc7f6cc38e013e44.tar.gz upstream-42954857190b9df16d9d873ecc7f6cc38e013e44.tar.bz2 upstream-42954857190b9df16d9d873ecc7f6cc38e013e44.zip |
brcm2708: add linux 4.19 support
Boot tested on Raspberry Pi B+ (BCM2708) and Raspberry Pi 2 (BCM2709)
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Diffstat (limited to 'target/linux/brcm2708/patches-4.19/950-0221-BCM270X_DT-Add-new-Ethernet-DT-parameters.patch')
-rw-r--r-- | target/linux/brcm2708/patches-4.19/950-0221-BCM270X_DT-Add-new-Ethernet-DT-parameters.patch | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/target/linux/brcm2708/patches-4.19/950-0221-BCM270X_DT-Add-new-Ethernet-DT-parameters.patch b/target/linux/brcm2708/patches-4.19/950-0221-BCM270X_DT-Add-new-Ethernet-DT-parameters.patch new file mode 100644 index 0000000000..4b40e2f4d9 --- /dev/null +++ b/target/linux/brcm2708/patches-4.19/950-0221-BCM270X_DT-Add-new-Ethernet-DT-parameters.patch @@ -0,0 +1,55 @@ +From 64c215470c985bd740e378cc3cd6963e15f0a927 Mon Sep 17 00:00:00 2001 +From: Phil Elwell <phil@raspberrypi.org> +Date: Tue, 27 Nov 2018 16:56:50 +0000 +Subject: [PATCH 221/703] BCM270X_DT: Add new Ethernet DT parameters + +Add "eth_downshift_after" DT parameter to allow the delay before the +downshift to be specified. The default is 2 auto-negotiation cycles, +and legal values are 2, 3, 4, 5 and 0 (disabled). + +Add "eth_max_speed" DT parameter as a way of prohibiting 1000Mbps +links. This can be used to avoid the delay until the downshift mechanism +activates. Legal values are 10, 100 and 1000, where the default is +unlimited (effectively 1000Mbps). + +Signed-off-by: Phil Elwell <phil@raspberrypi.org> +--- + arch/arm/boot/dts/bcm283x-rpi-lan7515.dtsi | 2 ++ + arch/arm/boot/dts/overlays/README | 9 +++++++++ + 2 files changed, 11 insertions(+) + +--- a/arch/arm/boot/dts/bcm283x-rpi-lan7515.dtsi ++++ b/arch/arm/boot/dts/bcm283x-rpi-lan7515.dtsi +@@ -50,5 +50,7 @@ + tx_lpi_timer = <ð_phy>,"microchip,tx-lpi-timer:0"; + eth_led0 = <ð_phy>,"microchip,led-modes:0"; + eth_led1 = <ð_phy>,"microchip,led-modes:4"; ++ eth_downshift_after = <ð_phy>,"microchip,downshift-after"; ++ eth_max_speed = <ð_phy>,"max-speed:0"; + }; + }; +--- a/arch/arm/boot/dts/overlays/README ++++ b/arch/arm/boot/dts/overlays/README +@@ -98,6 +98,11 @@ Params: + compatible devices (default "on"). See also + "tx_lpi_timer". + ++ eth_downshift_after Set the number of auto-negotiation failures ++ after which the 1000Mbps modes are disabled. ++ Legal values are 2, 3, 4, 5 and 0, where ++ 0 means never downshift (default 2). ++ + eth_led0 Set mode of LED0 (usually orange) (default + "1"). The legal values are: + 0=link/activity 1=link1000/activity +@@ -108,6 +113,10 @@ Params: + eth_led1 Set mode of LED1 (usually green) (default + "6"). See eth_led0 for legal values. + ++ eth_max_speed Set the maximum speed a link is allowed ++ to negotiate. Legal values are 10, 100 and ++ 1000 (default 1000). ++ + i2c_arm Set to "on" to enable the ARM's i2c interface + (default "off") + |