From 3eae19acee79d40ecb151a23f1f79110995f9386 Mon Sep 17 00:00:00 2001 From: Edmunt Pienkowsky Date: Sat, 21 Oct 2017 11:07:43 +0200 Subject: ramips: fix Youku-YK1 support Remove the ephy-pins from the ethernet device tree node. The ephy-pins are useed to controll the ePHY LEDs and this board doesn't have these. Instead one of the ePHY pins is used in GPIO mode to control the WAN LED. Use the switch LED trigger to control the WAN LED. Move the power LED handling to diag.sh to show the boot status via this LED. Add the missing kernel packages for USB and microSD card reader to the default package selection. Fix the maximum image size value. The board has a 32MByte flash chip. Fixes: FS#1055 Signed-off-by: Edmunt Pienkowsky [make the commit message more verbose, remove GPIO pinmux for pins not used as GPIOs] Signed-off-by: Mathias Kresin --- target/linux/ramips/base-files/etc/board.d/01_leds | 2 +- target/linux/ramips/base-files/etc/diag.sh | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'target/linux/ramips/base-files') diff --git a/target/linux/ramips/base-files/etc/board.d/01_leds b/target/linux/ramips/base-files/etc/board.d/01_leds index 2956defca8..e8c29fa037 100755 --- a/target/linux/ramips/base-files/etc/board.d/01_leds +++ b/target/linux/ramips/base-files/etc/board.d/01_leds @@ -387,9 +387,9 @@ zte-q7) set_wifi_led "$board:blue:status" ;; youku-yk1) - ucidef_set_led_default "power" "power" "$board:blue:power" "1" set_wifi_led "$board:blue:air" set_usb_led "$board:blue:usb" + ucidef_set_led_switch "wan" "wan" "$board:blue:wan" "switch0" "0x10" ;; esac diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh index cf3d2ca9c9..fa0391ca9b 100644 --- a/target/linux/ramips/base-files/etc/diag.sh +++ b/target/linux/ramips/base-files/etc/diag.sh @@ -122,7 +122,8 @@ get_status_led() { wli-tx4-ag300n|\ wt3020|\ y1|\ - y1s) + y1s|\ + youku-yk1) status_led="$board:blue:power" ;; db-wrt01|\ -- cgit v1.2.3