diff options
author | John Crispin <blogic@openwrt.org> | 2013-08-14 18:15:35 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2013-08-14 18:15:35 +0000 |
commit | 3e3ce0c794ca984cfa58bf9d4dda1dc9df42b1a4 (patch) | |
tree | 6942c442cdc292509ab4db1ffe51305c87c11984 /target/linux/ramips | |
parent | 0e2ce7af0399711fc9b6e41812f63aa37ffc2cd2 (diff) | |
download | upstream-3e3ce0c794ca984cfa58bf9d4dda1dc9df42b1a4.tar.gz upstream-3e3ce0c794ca984cfa58bf9d4dda1dc9df42b1a4.tar.bz2 upstream-3e3ce0c794ca984cfa58bf9d4dda1dc9df42b1a4.zip |
ramips: add support for dir810l and asus rp-n53
Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37780 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips')
-rwxr-xr-x | target/linux/ramips/base-files/etc/uci-defaults/01_leds | 7 | ||||
-rwxr-xr-x | target/linux/ramips/base-files/etc/uci-defaults/02_network | 3 | ||||
-rwxr-xr-x | target/linux/ramips/base-files/lib/ramips.sh | 6 | ||||
-rwxr-xr-x | target/linux/ramips/base-files/lib/upgrade/platform.sh | 2 | ||||
-rw-r--r-- | target/linux/ramips/dts/DIR-810L.dts | 127 | ||||
-rw-r--r-- | target/linux/ramips/dts/RP-N53.dts | 149 | ||||
-rw-r--r-- | target/linux/ramips/image/Makefile | 5 |
7 files changed, 298 insertions, 1 deletions
diff --git a/target/linux/ramips/base-files/etc/uci-defaults/01_leds b/target/linux/ramips/base-files/etc/uci-defaults/01_leds index 7f69231da9..7bec16f491 100755 --- a/target/linux/ramips/base-files/etc/uci-defaults/01_leds +++ b/target/linux/ramips/base-files/etc/uci-defaults/01_leds @@ -74,6 +74,9 @@ case $board in dir-620-d1) set_wifi_led "d-link:green:wifi" ;; + dir-810l) + ucidef_set_led_default "power" "POWER" "dlink:green:power" "1" + ;; esr-9753) set_wifi_led "rt2800pci-phy0::radio" ;; @@ -135,6 +138,10 @@ case $board in wnce2001) set_wifi_led "netgear:green:wlan" ;; + rp-n53) + ucidef_set_led_netdev "eth" "Network" "asus:white:back" "eth0" + set_wifi_led "asus:blue:wifi" + ;; esac ucidef_commit_leds diff --git a/target/linux/ramips/base-files/etc/uci-defaults/02_network b/target/linux/ramips/base-files/etc/uci-defaults/02_network index ef13e364a5..441d3393cf 100755 --- a/target/linux/ramips/base-files/etc/uci-defaults/02_network +++ b/target/linux/ramips/base-files/etc/uci-defaults/02_network @@ -197,7 +197,8 @@ ramips_setup_macs() rt-n13u | \ hg255d | \ - fonera20n) + fonera20n | + dir-810l) lan_mac=$(mtd_get_mac_binary factory 40) wan_mac=$(macaddr_add "$lan_mac" 1) ;; diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh index 858a8092e7..3ec44d2fff 100755 --- a/target/linux/ramips/base-files/lib/ramips.sh +++ b/target/linux/ramips/base-files/lib/ramips.sh @@ -88,6 +88,9 @@ ramips_board_detect() { *"DIR-645") name="dir-645" ;; + *"DIR-810L") + name="dir-810l" + ;; *"DAP-1350") name="dap-1350" ;; @@ -166,6 +169,9 @@ ramips_board_detect() { *"PWH2004") name="pwh2004" ;; + *"Asus RP-N53") + name="rp-n53" + ;; *"RT-G32 B1") name="rt-g32-b1" ;; diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh index e85beada39..4545af009c 100755 --- a/target/linux/ramips/base-files/lib/upgrade/platform.sh +++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh @@ -36,6 +36,7 @@ platform_check_image() { dir-615-d | \ dir-620-a1 | \ dir-620-d1 | \ + dir-810l | \ dap-1350 | \ esr-9753 | \ f7c027 | \ @@ -56,6 +57,7 @@ platform_check_image() { omni-emb | \ omni-emb-hpm | \ psr-680w | \ + rp-n53 | \ rt-g32-b1 | \ rt-n10-plus | \ rt-n15 | \ diff --git a/target/linux/ramips/dts/DIR-810L.dts b/target/linux/ramips/dts/DIR-810L.dts new file mode 100644 index 0000000000..193771b5a6 --- /dev/null +++ b/target/linux/ramips/dts/DIR-810L.dts @@ -0,0 +1,127 @@ +/dts-v1/; + +/include/ "mt7620a.dtsi" + +/ { + compatible = "dlink,dir-810l", "ralink,mt7620a-soc"; + model = "D-Link DIR-810L"; + + palmbus@10000000 { + sysc@0 { + ralink,pinmux = "spi", "uartlite", "ephy"; + ralink,gpiomux = "jtag", "mdio", "rgmii1", "rgmii1", "i2c", "wled"; + ralink,uartmux = "gpio"; + ralink,wdtmux = <1>; + }; + + gpio0: gpio@600 { + status = "okay"; + }; + + spi@b00 { + status = "okay"; + + m25p80@0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "mx25l6405d"; + reg = <0 0>; + linux,modalias = "m25p80"; + 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; + }; + + factory5g: partition@50000 { + label = "factory5g"; + reg = <0x50000 0x10000>; + read-only; + }; + + partition@60000 { + label = "Wolf_Config"; + reg = <0x60000 0x10000>; + read-only; + }; + + partition@70000 { + label = "MyDlink"; + reg = <0x70000 0x80000>; + read-only; + }; + + partition@e0000 { + label = "Jffs2"; + reg = <0xe0000 0x80000>; + read-only; + }; + + partition@170000 { + label = "firmware"; + reg = <0x170000 0x690000>; + }; + }; + }; + }; + + ethernet@10100000 { + status = "okay"; + }; + + gsw@10110000 { + status = "okay"; + ralink,port4 = "ephy"; + }; + + pcie@10140000 { + status = "okay"; + }; + + gpio-keys-polled { + compatible = "gpio-keys-polled"; + #address-cells = <1>; + #size-cells = <0>; + poll-interval = <20>; + reset { + label = "reset"; + gpios = <&gpio0 1 1>; + linux,code = <0x100>; + }; + wps { + label = "wps"; + gpios = <&gpio0 2 1>; + linux,code = <0x100>; + }; + }; + + gpio-leds { + compatible = "gpio-leds"; + power { + label = "dlink:green:power"; + gpios = <&gpio0 9 0>; + }; + internet { + label = "asus:yellow:internet"; + gpios = <&gpio0 12 0>; + }; + status { + label = "asus:internet:status"; + gpios = <&gpio0 13 0>; + }; + }; +}; diff --git a/target/linux/ramips/dts/RP-N53.dts b/target/linux/ramips/dts/RP-N53.dts new file mode 100644 index 0000000000..d48bb08638 --- /dev/null +++ b/target/linux/ramips/dts/RP-N53.dts @@ -0,0 +1,149 @@ +/dts-v1/; + +/include/ "mt7620a.dtsi" + +/ { + compatible = "asus,rp-n53", "ralink,mt7620a-soc"; + model = "Asus RP-N53"; + + chosen { + bootargs = "console=ttyS0,57600"; + }; + + palmbus@10000000 { + sysc@0 { + ralink,pinmux = "spi", "uartlite", "wled", "ephy", "i2c"; + ralink,gpiomux = "jtag", "mdio", "rgmii1", "rgmii1"; + ralink,uartmux = "gpio"; + ralink,wdtmux = <1>; + }; + + gpio0: gpio@600 { + status = "okay"; + }; + + gpio1: gpio@638 { + status = "okay"; + }; + + i2c@900 { + status = "okay"; + }; + + spi@b00 { + status = "okay"; + + m25p80@0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "mx25l6405d"; + reg = <0 0>; + linux,modalias = "m25p80"; + 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 0x7b0000>; + }; + }; + }; + }; + + codec { + compatible = "ralink,mt7620-audio"; + }; + + ethernet@10100000 { + status = "okay"; + }; + + gsw@10110000 { + status = "okay"; + ralink,port4 = "ephy"; + }; + + pcie@10140000 { + status = "okay"; + }; + + gpio-keys-polled { + compatible = "gpio-keys-polled"; + #address-cells = <1>; + #size-cells = <0>; + poll-interval = <20>; + touch { + label = "touch"; + gpios = <&gpio1 0 1>; + linux,code = <0x100>; + }; + wps { + label = "wps"; + gpios = <&gpio1 1 1>; + linux,code = <0x100>; + }; + reset { + label = "reset"; + gpios = <&gpio1 2 1>; + linux,code = <0x100>; + }; + audio { + label = "audio"; + gpios = <&gpio1 3 0>; + linux,code = <0x101>; + }; + }; + + gpio-leds { + compatible = "gpio-leds"; + backlight { + label = "asus:white:back"; + gpios = <&gpio1 4 1>; + }; + wifi0 { + label = "asus:blue:5g3"; + gpios = <&gpio1 5 1>; + }; + wifi1 { + label = "asus:blue:5g2"; + gpios = <&gpio1 6 1>; + }; + wifi2 { + label = "asus:blue:5g1"; + gpios = <&gpio1 7 1>; + }; + wifi3 { + label = "asus:blue:wifi"; + gpios = <&gpio1 8 1>; + }; + wifi4 { + label = "asus:blue:2g1"; + gpios = <&gpio1 9 1>; + }; + wifi5 { + label = "asus:blue:2g2"; + gpios = <&gpio1 10 1>; + }; + wifi6 { + label = "asus:blue:2g3"; + gpios = <&gpio1 11 1>; + }; + }; +}; diff --git a/target/linux/ramips/image/Makefile b/target/linux/ramips/image/Makefile index 3e82432144..ccae6bee77 100644 --- a/target/linux/ramips/image/Makefile +++ b/target/linux/ramips/image/Makefile @@ -585,11 +585,16 @@ endif Image/Build/Profile/MT7620a=$(call BuildFirmware/Default8M/$(1),$(1),mt7620a,MT7620a) Image/Build/Profile/MT7620a_MT7610e=$(call BuildFirmware/Default8M/$(1),$(1),mt7620a_mt7610e,MT7620a_MT7610e) +Image/Build/Profile/RP-N53=$(call BuildFirmware/Default8M/$(1),$(1),rp_n53,RP-N53) +dlink810l_mtd_size=6881280 +Image/Build/Profile/DIR-810L=$(call BuildFirmware/CustomFlash/$(1),$(1),dir-810l,DIR-810L,$(dlink810l_mtd_size)) ifeq ($(SUBTARGET),mt7620a) define Image/Build/Profile/Default $(call Image/Build/Profile/MT7620a,$(1)) $(call Image/Build/Profile/MT7620a_MT7610e,$(1)) + $(call Image/Build/Profile/RP-N53,$(1)) + $(call Image/Build/Profile/DIR-810L,$(1)) endef endif |