diff options
author | INAGAKI Hiroshi <musashino.open@gmail.com> | 2023-03-23 23:06:14 +0900 |
---|---|---|
committer | Christian Lamparter <chunkeey@gmail.com> | 2023-05-18 16:17:52 +0200 |
commit | 4fffa0f6af7944d630687657958c9d872cf67285 (patch) | |
tree | 9f0e233b465c7c6cfb3b1da9df856e7e34b1ee9a /target/linux/mvebu | |
parent | bf12aac46435373f0ef3baaa5046046d2f51aa2f (diff) | |
download | upstream-4fffa0f6af7944d630687657958c9d872cf67285.tar.gz upstream-4fffa0f6af7944d630687657958c9d872cf67285.tar.bz2 upstream-4fffa0f6af7944d630687657958c9d872cf67285.zip |
mvebu: use PHY LED trigger for speed LEDs on FortiGate 50E
Use <mdio>:<addr>:<speed> trigger instead of netdev(link) trigger for
Fortinet FortiGate 50E, to indicate link speed on the each phys.
1000 Mbps: Green
100 Mbps : Amber
10 Mbps : (turn off)
Fixes: 102dc5a62506 ("mvebu: add support for Fortinet FortiGate 50E")
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
Diffstat (limited to 'target/linux/mvebu')
-rw-r--r-- | target/linux/mvebu/cortexa9/base-files/etc/board.d/01_leds | 9 | ||||
-rw-r--r-- | target/linux/mvebu/files/arch/arm/boot/dts/armada-385-fortinet-fg-50e.dts | 12 |
2 files changed, 12 insertions, 9 deletions
diff --git a/target/linux/mvebu/cortexa9/base-files/etc/board.d/01_leds b/target/linux/mvebu/cortexa9/base-files/etc/board.d/01_leds index bfc589e6c0..2b045d0945 100644 --- a/target/linux/mvebu/cortexa9/base-files/etc/board.d/01_leds +++ b/target/linux/mvebu/cortexa9/base-files/etc/board.d/01_leds @@ -15,15 +15,6 @@ ctera,c200-v2) ucidef_set_led_usbport "usb2" "USB2" "green:usb-2" "usb1-port1" "usb2-port1" ucidef_set_led_usbport "usb3" "USB3" "green:usb-1" "usb1-port2" "usb2-port2" ;; -fortinet,fg-50e) - ucidef_set_led_netdev "wan1_link" "WAN1 Link" "green:speed_wan1" "eth1" "link" - ucidef_set_led_netdev "wan2_link" "WAN2 Link" "green:speed_wan2" "eth2" "link" - ucidef_set_led_netdev "lan1_link" "LAN1 Link" "green:speed_lan1" "lan1" "link" - ucidef_set_led_netdev "lan2_link" "LAN2 Link" "green:speed_lan2" "lan2" "link" - ucidef_set_led_netdev "lan3_link" "LAN3 Link" "green:speed_lan3" "lan3" "link" - ucidef_set_led_netdev "lan4_link" "LAN4 Link" "green:speed_lan4" "lan4" "link" - ucidef_set_led_netdev "lan5_link" "LAN5 Link" "green:speed_lan5" "lan5" "link" - ;; kobol,helios4) ucidef_set_led_usbport "USB" "USB" "helios4:green:usb" "usb1-port1" "usb2-port1" "usb3-port1" "usb4-port1" "usb5-port1" ;; diff --git a/target/linux/mvebu/files/arch/arm/boot/dts/armada-385-fortinet-fg-50e.dts b/target/linux/mvebu/files/arch/arm/boot/dts/armada-385-fortinet-fg-50e.dts index 506e01f0ff..61d2da1755 100644 --- a/target/linux/mvebu/files/arch/arm/boot/dts/armada-385-fortinet-fg-50e.dts +++ b/target/linux/mvebu/files/arch/arm/boot/dts/armada-385-fortinet-fg-50e.dts @@ -97,72 +97,84 @@ label = "green:speed_wan1"; gpios = <&gpio2 0 GPIO_ACTIVE_HIGH>; color = <LED_COLOR_ID_GREEN>; + linux,default-trigger = "f1072004.mdio-mii:00:1Gbps"; }; led-7 { label = "green:speed_wan2"; gpios = <&gpio2 1 GPIO_ACTIVE_HIGH>; color = <LED_COLOR_ID_GREEN>; + linux,default-trigger = "f1072004.mdio-mii:01:1Gbps"; }; led-8 { label = "amber:speed_lan5"; gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>; color = <LED_COLOR_ID_AMBER>; + linux,default-trigger = "mv88e6xxx-1:00:100Mbps"; }; led-9 { label = "green:speed_lan5"; gpios = <&gpio2 3 GPIO_ACTIVE_HIGH>; color = <LED_COLOR_ID_GREEN>; + linux,default-trigger = "mv88e6xxx-1:00:1Gbps"; }; led-10 { label = "green:speed_lan4"; gpios = <&gpio2 4 GPIO_ACTIVE_LOW>; color = <LED_COLOR_ID_GREEN>; + linux,default-trigger = "mv88e6xxx-1:01:1Gbps"; }; led-11 { label = "amber:speed_lan4"; gpios = <&gpio2 5 GPIO_ACTIVE_LOW>; color = <LED_COLOR_ID_AMBER>; + linux,default-trigger = "mv88e6xxx-1:01:100Mbps"; }; led-12 { label = "amber:speed_lan3"; gpios = <&gpio2 6 GPIO_ACTIVE_LOW>; color = <LED_COLOR_ID_AMBER>; + linux,default-trigger = "mv88e6xxx-1:02:100Mbps"; }; led-13 { label = "green:speed_lan3"; gpios = <&gpio2 7 GPIO_ACTIVE_LOW>; color = <LED_COLOR_ID_GREEN>; + linux,default-trigger = "mv88e6xxx-1:02:1Gbps"; }; led-14 { label = "green:speed_lan1"; gpios = <&gpio2 12 GPIO_ACTIVE_LOW>; color = <LED_COLOR_ID_GREEN>; + linux,default-trigger = "mv88e6xxx-1:04:1Gbps"; }; led-15 { label = "amber:speed_lan1"; gpios = <&gpio2 13 GPIO_ACTIVE_LOW>; color = <LED_COLOR_ID_AMBER>; + linux,default-trigger = "mv88e6xxx-1:04:100Mbps"; }; led-16 { label = "green:speed_lan2"; gpios = <&gpio2 14 GPIO_ACTIVE_LOW>; color = <LED_COLOR_ID_GREEN>; + linux,default-trigger = "mv88e6xxx-1:03:1Gbps"; }; led-17 { label = "amber:speed_lan2"; gpios = <&gpio2 15 GPIO_ACTIVE_LOW>; color = <LED_COLOR_ID_AMBER>; + linux,default-trigger = "mv88e6xxx-1:03:100Mbps"; }; }; |