ramips: add asiarf awapn2403 support
Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 41177v19.07.3_mercusys_ac12_duma
parent
4f03c52dd8
commit
6d213a644d
@ -0,0 +1,78 @@
|
||||
/dts-v1/;
|
||||
|
||||
/include/ "rt3050.dtsi"
|
||||
|
||||
/ {
|
||||
compatible = "AWAPN2403", "ralink,rt3052-soc";
|
||||
model = "AsiaRF AWAPN2403";
|
||||
|
||||
palmbus@10000000 {
|
||||
spi@b00 {
|
||||
status = "okay";
|
||||
m25p80@0 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
compatible = "mx25l3205d";
|
||||
reg = <0 0>;
|
||||
linux,modalias = "m25p80", "mx25l3205d";
|
||||
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>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
pinctrl {
|
||||
state_default: pinctrl0 {
|
||||
gpio {
|
||||
ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
|
||||
ralink,function = "gpio";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
esw@10110000 {
|
||||
ralink,portmap = <0x3e>;
|
||||
};
|
||||
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
link {
|
||||
label = "asiarf:green:wps";
|
||||
gpios = <&gpio0 14 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>;
|
||||
};
|
||||
};
|
||||
};
|
@ -1,18 +1,16 @@
|
||||
#
|
||||
# Copyright (C) 2012 OpenWrt.org
|
||||
# Copyright (C) 2014 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
define Profile/AWM002EVB
|
||||
NAME:=AsiaRF AWM002-EVB
|
||||
PACKAGES:=kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-ledtrig-usbdev \
|
||||
kmod-i2c-core kmod-i2c-gpio
|
||||
define Profile/AWAPN2403
|
||||
NAME:=AisaRF AWAPN2403
|
||||
endef
|
||||
|
||||
define Profile/AWM002EVB/Description
|
||||
Package set for AsiaRF AWM002 Evaluation Board
|
||||
define Profile/AWAPN2403/Description
|
||||
Package set for Allnet ALL0239-3G
|
||||
endef
|
||||
|
||||
$(eval $(call Profile,AWM002EVB))
|
||||
$(eval $(call Profile,AWAPN2403))
|
||||
|
Loading…
Reference in New Issue