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 <roed@onet.eu>
[make the commit message more verbose, remove GPIO pinmux for pins not
used as GPIOs]
Signed-off-by: Mathias Kresin <dev@kresin.me>
This commit is contained in:
Edmunt Pienkowsky 2017-10-21 11:07:43 +02:00 committed by Mathias Kresin
parent 4425fa84da
commit 9786b53efb
4 changed files with 6 additions and 5 deletions

View file

@ -461,9 +461,9 @@ zte-q7)
set_wifi_led "$board:blue:status" set_wifi_led "$board:blue:status"
;; ;;
youku-yk1) youku-yk1)
ucidef_set_led_default "power" "power" "$board:blue:power" "1"
set_wifi_led "$board:blue:air" set_wifi_led "$board:blue:air"
set_usb_led "$board:blue:usb" set_usb_led "$board:blue:usb"
ucidef_set_led_switch "wan" "wan" "$board:blue:wan" "switch0" "0x10"
;; ;;
esac esac

View file

@ -134,7 +134,8 @@ get_status_led() {
wl-330n3g|\ wl-330n3g|\
wli-tx4-ag300n|\ wli-tx4-ag300n|\
y1|\ y1|\
y1s) y1s|\
youku-yk1)
status_led="$board:blue:power" status_led="$board:blue:power"
;; ;;
db-wrt01|\ db-wrt01|\

View file

@ -96,7 +96,7 @@
&pinctrl { &pinctrl {
state_default: pinctrl0 { state_default: pinctrl0 {
default { default {
ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "ephy", "wled", "nd_sd"; ralink,group = "i2c", "rgmii1", "ephy", "wled";
ralink,function = "gpio"; ralink,function = "gpio";
}; };
}; };
@ -104,7 +104,6 @@
&ethernet { &ethernet {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;
mtd-mac-address = <&factory 0x4>; mtd-mac-address = <&factory 0x4>;
mediatek,portmap = "llllw"; mediatek,portmap = "llllw";
}; };

View file

@ -505,8 +505,9 @@ TARGET_DEVICES += y1s
define Device/youku-yk1 define Device/youku-yk1
DTS := YOUKU-YK1 DTS := YOUKU-YK1
IMAGE_SIZE := $(ralink_default_fw_size_16M) IMAGE_SIZE := $(ralink_default_fw_size_32M)
DEVICE_TITLE := YOUKU YK1 DEVICE_TITLE := YOUKU YK1
DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-sdhci-mt7620 kmod-usb-ledtrig-usbport
endef endef
TARGET_DEVICES += youku-yk1 TARGET_DEVICES += youku-yk1