OpenWrt – Blame information for rev 4
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | From 8dfd69beccc1c582fba134825df65f7e5d2f17ad Mon Sep 17 00:00:00 2001 |
2 | From: Phil Elwell <phil@raspberrypi.org> |
||
3 | Date: Wed, 21 Mar 2018 16:04:18 +0000 |
||
4 | Subject: [PATCH 258/454] BCM27XX_DT: Set LED modes from Device Tree |
||
5 | |||
6 | The new default values for LAN7515 (LAN7800) are: |
||
7 | |||
8 | LED0 = 1 (link1000/activity) |
||
9 | LED1 = 6 (link10/link100/activity) |
||
10 | |||
11 | Also add two dtparams - eth_led0 and eth_led1 - to provide user control |
||
12 | over the LEDs. |
||
13 | |||
14 | Signed-off-by: Phil Elwell <phil@raspberrypi.org> |
||
15 | --- |
||
16 | arch/arm/boot/dts/bcm283x-rpi-lan7515.dtsi | 7 +++++++ |
||
17 | arch/arm/boot/dts/overlays/README | 10 ++++++++++ |
||
18 | 2 files changed, 17 insertions(+) |
||
19 | |||
20 | --- a/arch/arm/boot/dts/bcm283x-rpi-lan7515.dtsi |
||
21 | +++ b/arch/arm/boot/dts/bcm283x-rpi-lan7515.dtsi |
||
22 | @@ -22,6 +22,11 @@ |
||
23 | reg = <1>; |
||
24 | microchip,eee-enabled; |
||
25 | microchip,tx-lpi-timer = <600>; /* non-aggressive*/ |
||
26 | + /* |
||
27 | + * led0 = 1:link1000/activity |
||
28 | + * led1 = 6:link10/100/activity |
||
29 | + */ |
||
30 | + microchip,led-modes = <1 6>; |
||
31 | }; |
||
32 | }; |
||
33 | }; |
||
34 | @@ -32,5 +37,7 @@ |
||
35 | __overrides__ { |
||
36 | eee = <ðernet>,"microchip,eee-enabled?"; |
||
37 | tx_lpi_timer = <ðernet>,"microchip,tx-lpi-timer:0"; |
||
38 | + eth_led0 = <ðernet>,"microchip,led-modes:0"; |
||
39 | + eth_led1 = <ðernet>,"microchip,led-modes:4"; |
||
40 | }; |
||
41 | }; |
||
42 | --- a/arch/arm/boot/dts/overlays/README |
||
43 | +++ b/arch/arm/boot/dts/overlays/README |
||
44 | @@ -93,6 +93,16 @@ Params: |
||
45 | compatible devices (default "on"). See also |
||
46 | "tx_lpi_timer". |
||
47 | |||
48 | + eth_led0 Set mode of LED0 (usually orange) (default |
||
49 | + "1"). The legal values are: |
||
50 | + 0=link/activity 1=link1000/activity |
||
51 | + 2=link100/activity 3=link10/activity |
||
52 | + 4=link100/1000/activity 5=link10/1000/activity |
||
53 | + 6=link10/100/activity 14=off 15=on |
||
54 | + |
||
55 | + eth_led1 Set mode of LED1 (usually green) (default |
||
56 | + "6"). See eth_led0 for legal values. |
||
57 | + |
||
58 | i2c_arm Set to "on" to enable the ARM's i2c interface |
||
59 | (default "off") |
||
60 |