ramips: add support for A5-V11 board (resubmit)
(Reposted due to an issue with the patchwork server during original submission) Unbranded. Silkscreen on PCB is “A5-V11”, believed to be made by Bococom (or at least uses Bococom image encryption - as used on poray devices - but different key) Signed-off-by: Gareth Bryan <gareth@mx9.org> SVN-Revision: 43102
This commit is contained in:
@@ -27,6 +27,9 @@ case $board in
|
||||
3g300m)
|
||||
set_usb_led "tenda:blue:3g"
|
||||
;;
|
||||
a5-v11)
|
||||
ucidef_set_led_default "power" "POWER" "a5-v11:red:power" "1"
|
||||
;;
|
||||
air3gii)
|
||||
set_wifi_led "airlive:green:wlan"
|
||||
set_usb_led "airlive:green:mobile"
|
||||
|
||||
@@ -37,6 +37,12 @@ ramips_setup_interfaces()
|
||||
ucidef_set_interface_loopback
|
||||
|
||||
case $board in
|
||||
a5-v11)
|
||||
ucidef_set_interface_lan "eth0.1"
|
||||
ucidef_add_switch "switch0" "1" "1"
|
||||
ucidef_add_switch_vlan "switch0" "1" "0 6t"
|
||||
;;
|
||||
|
||||
3g300m | \
|
||||
w150m | \
|
||||
all0256n | \
|
||||
@@ -252,6 +258,7 @@ ramips_setup_macs()
|
||||
lan_mac=$(macaddr_add "$lan_mac" -2)
|
||||
;;
|
||||
|
||||
a5-v11 |\
|
||||
bc2 |\
|
||||
broadway |\
|
||||
d105 |\
|
||||
|
||||
@@ -25,6 +25,9 @@ ramips_board_detect() {
|
||||
*"Edimax 3g-6200nl")
|
||||
name="3g-6200nl"
|
||||
;;
|
||||
*"A5-V11")
|
||||
name="a5-v11"
|
||||
;;
|
||||
*"Airlink101 AR725W")
|
||||
name="ar725w"
|
||||
;;
|
||||
|
||||
@@ -17,6 +17,7 @@ platform_check_image() {
|
||||
3g-6200n | \
|
||||
3g-6200nl | \
|
||||
3g300m | \
|
||||
a5-v11 | \
|
||||
air3gii | \
|
||||
all0239-3g | \
|
||||
all0256n | \
|
||||
|
||||
117
target/linux/ramips/dts/A5-V11.dts
Normal file
117
target/linux/ramips/dts/A5-V11.dts
Normal file
@@ -0,0 +1,117 @@
|
||||
/dts-v1/;
|
||||
|
||||
/include/ "rt5350.dtsi"
|
||||
|
||||
/ {
|
||||
compatible = "A5-V11", "ralink,rt5350-soc";
|
||||
model = "A5-V11";
|
||||
|
||||
palmbus@10000000 {
|
||||
spi@b00 {
|
||||
status = "okay";
|
||||
m25p80@0 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
compatible = "pm25lq032";
|
||||
reg = <0 0>;
|
||||
linux,modalias = "m25p80", "pm25lq032";
|
||||
spi-max-frequency = <10000000>;
|
||||
|
||||
partition@0 {
|
||||
label = "u-boot";
|
||||
reg = <0x0 0x30000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@30000 {
|
||||
label = "u-boot-env";
|
||||
reg = <0x30000 0x10000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
factory: partition@40000 {
|
||||
label = "factory";
|
||||
reg = <0x40000 0x10000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@50000 {
|
||||
label = "firmware";
|
||||
reg = <0x50000 0x3b0000>;
|
||||
};
|
||||
};
|
||||
};
|
||||
gpio1: gpio@660 {
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
pinctrl {
|
||||
state_default: pinctrl0 {
|
||||
gpio {
|
||||
ralink,group = "i2c", "jtag", "uartf", "led";
|
||||
ralink,function = "gpio";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
ethernet@10100000 {
|
||||
mtd-mac-address = <&factory 0x4>;
|
||||
};
|
||||
|
||||
esw@10110000 {
|
||||
ralink,portmap = <0x2f>;
|
||||
};
|
||||
|
||||
wmac@10180000 {
|
||||
ralink,mtd-eeprom = <&factory 0>;
|
||||
};
|
||||
|
||||
ehci@101c0000 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
ohci@101c1000 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
system {
|
||||
label = "a5-v11:blue:system";
|
||||
gpios = <&gpio0 20 1>;
|
||||
};
|
||||
power {
|
||||
label = "a5-v11:red:power";
|
||||
gpios = <&gpio0 17 1>;
|
||||
};
|
||||
};
|
||||
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
poll-interval = <20>;
|
||||
reset {
|
||||
label = "reset";
|
||||
gpios = <&gpio0 0 1>;
|
||||
linux,code = <0x198>;
|
||||
};
|
||||
};
|
||||
|
||||
gpio_export {
|
||||
compatible = "gpio-export";
|
||||
#size-cells = <0>;
|
||||
|
||||
usb {
|
||||
gpio-export,name = "usb";
|
||||
gpio-export,output = <1>;
|
||||
gpios = <&gpio0 7 0>;
|
||||
};
|
||||
root_hub {
|
||||
gpio-export,name = "root_hub";
|
||||
gpio-export,output = <1>;
|
||||
gpios = <&gpio0 12 0>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@@ -336,6 +336,8 @@ Image/Build/Profile/3G6200NL=$(call BuildFirmware/Edimax/$(1),$(1),3g-6200nl,3G-
|
||||
|
||||
Image/Build/Profile/3G300M=$(call BuildFirmware/CustomFlashFactory/$(1),$(1),3g300m,3G300M,$(ralink_default_fw_size_4M),3G150M_SPI Kernel Image,factory)
|
||||
|
||||
Image/Build/Profile/A5-V11=$(call BuildFirmware/Poray4M/$(1),$(1),a5-v11,A5-V11)
|
||||
|
||||
Image/Build/Profile/AIR3GII=$(call BuildFirmware/Default4M/$(1),$(1),air3gii,AIR3GII)
|
||||
|
||||
define BuildFirmware/UIMAGE_8M
|
||||
@@ -593,6 +595,7 @@ define Image/Build/Profile/Default
|
||||
$(call Image/Build/Profile/3G6200N,$(1))
|
||||
$(call Image/Build/Profile/3G6200NL,$(1))
|
||||
$(call Image/Build/Profile/3G300M,$(1))
|
||||
$(call Image/Build/Profile/A5-11,$(1))
|
||||
$(call Image/Build/Profile/AIR3GII,$(1))
|
||||
$(call Image/Build/Profile/ALL02393G,$(1))
|
||||
$(call Image/Build/Profile/ALL0256N,$(1))
|
||||
|
||||
18
target/linux/ramips/rt305x/profiles/misc.mk
Normal file
18
target/linux/ramips/rt305x/profiles/misc.mk
Normal file
@@ -0,0 +1,18 @@
|
||||
#
|
||||
# Copyright (C) 2014 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
define Profile/A5-V11
|
||||
NAME:=A5-V11
|
||||
PACKAGES:=\
|
||||
kmod-usb-core kmod-usb-ohci kmod-usb2
|
||||
endef
|
||||
|
||||
define Profile/A5-V11/Description
|
||||
Package set for A5-V11
|
||||
endef
|
||||
|
||||
$(eval $(call Profile,A5-V11))
|
||||
Reference in New Issue
Block a user