Changeset 29651


Ignore:
Timestamp:
2012-01-04T18:30:47+01:00 (5 years ago)
Author:
juhosg
Message:

ar71xx: add support for TP-Link TL-MR3020

This patch adds support for the TP-Link device TL-MR3020 which is very
similiar to the TL-WR703N.
The TL-MR3020 uses 5 LEDs, 1 push button and a switch with 3 positions.
Only four LEDs can be controlled via GPIO. The power LED is connected to
the power supply.
The WPS push button has been mapped to KEY_WPS_BUTTON. The two GPIO signals
of the sliding switch have been mapped to BTN_0 and BTN_1.

I have also setup a wiki page with details here:
http://wiki.openwrt.org/toh/tp-link/tl-mr3020

USB is working and has been tested with USB mass storage and USB UMTS
stick.

Wifi also seems to work.

Ethernet is working too.

Signed-off-by: Christian Cier-Zniewski <c.cier@…>

Location:
trunk/target/linux/ar71xx
Files:
1 added
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ar71xx/base-files/etc/uci-defaults/network

    r29635 r29651  
    109109eap7660d |\ 
    110110rb-411 |\ 
     111tl-mr3020 |\ 
    111112tl-wa901nd-v2 |\ 
    112113tl-wr703n |\ 
  • trunk/target/linux/ar71xx/base-files/lib/ar71xx.sh

    r29635 r29651  
    9595                model="TP-Link TL-WR1043N/ND" 
    9696                ;; 
     97        "302000"*) 
     98                model="TP-Link TL-MR3020" 
     99                ;; 
    97100        "322000"*) 
    98101                model="TP-Link TL-MR3220" 
     
    239242                name="dir-615-c1" 
    240243                ;; 
     244        *TL-MR3020) 
     245                name="tl-mr3020" 
     246                ;; 
    241247        *TL-MR3220) 
    242248                name="tl-mr3220" 
  • trunk/target/linux/ar71xx/base-files/lib/upgrade/platform.sh

    r29635 r29651  
    120120                return 0 
    121121                ;; 
     122        tl-mr3020 | \ 
    122123        tl-mr3220 | \ 
    123124        tl-mr3420 | \ 
  • trunk/target/linux/ar71xx/config-2.6.39

    r29635 r29651  
    4444CONFIG_AR71XX_MACH_TL_WR1043ND=y 
    4545CONFIG_AR71XX_MACH_TL_WR703N=y 
     46CONFIG_AR71XX_MACH_TL_MR3020=y 
    4647CONFIG_AR71XX_MACH_TL_WR741ND=y 
    4748CONFIG_AR71XX_MACH_TL_WR741ND_V4=y 
  • trunk/target/linux/ar71xx/files/arch/mips/ar71xx/Kconfig

    r29635 r29651  
    278278        select AR71XX_DEV_LEDS_GPIO 
    279279 
     280config AR71XX_MACH_TL_MR3020 
     281        bool "TP-LINK TL-MR3020 support" 
     282        select SOC_AR933X 
     283        select AR71XX_DEV_M25P80 
     284        select AR71XX_DEV_GPIO_BUTTONS 
     285        select AR71XX_DEV_LEDS_GPIO 
     286        select AR71XX_DEV_USB 
     287        select AR71XX_DEV_AR9XXX_WMAC 
     288 
    280289config AR71XX_MACH_TL_MR3X20 
    281290        bool "TP-LINK TL-MR3220/3420 support" 
  • trunk/target/linux/ar71xx/files/arch/mips/ar71xx/Makefile

    r29635 r29651  
    5454obj-$(CONFIG_AR71XX_MACH_RB750)         += mach-rb750.o 
    5555obj-$(CONFIG_AR71XX_MACH_TEW_632BRP)    += mach-tew-632brp.o 
     56obj-$(CONFIG_AR71XX_MACH_TL_MR3020)     += mach-tl-mr3020.o 
    5657obj-$(CONFIG_AR71XX_MACH_TL_MR3X20)     += mach-tl-mr3x20.o 
    5758obj-$(CONFIG_AR71XX_MACH_TL_WA901ND)    += mach-tl-wa901nd.o 
  • trunk/target/linux/ar71xx/files/arch/mips/ar71xx/machtype.h

    r29635 r29651  
    5050        AR71XX_MACH_RB_750,     /* MikroTik RouterBOARD 750 */ 
    5151        AR71XX_MACH_TEW_632BRP, /* TRENDnet TEW-632BRP */ 
     52        AR71XX_MACH_TL_MR3020,  /* TP-LINK TL-MR3020 */ 
    5253        AR71XX_MACH_TL_MR3220,  /* TP-LINK TL-MR3220 */ 
    5354        AR71XX_MACH_TL_MR3420,  /* TP-LINK TL-MR3420 */ 
  • trunk/target/linux/ar71xx/generic/profiles/tp-link.mk

    r29461 r29651  
    55# See /LICENSE for more information. 
    66# 
     7 
     8define Profile/TLMR3020 
     9        NAME:=TP-LINK TL-MR3020 
     10        PACKAGES:=kmod-usb-core kmod-usb2 
     11endef 
     12 
     13define Profile/TLMR3020/Description 
     14        Package set optimized for the TP-LINK TL-MR3020. 
     15endef 
     16$(eval $(call Profile,TLMR3020)) 
     17 
    718 
    819define Profile/TLMR3220 
     
    3243        PACKAGES:=kmod-usb-core kmod-usb2 
    3344endef 
     45 
    3446 
    3547define Profile/TLWR703/Description 
  • trunk/target/linux/ar71xx/image/Makefile

    r29637 r29651  
    764764define Image/Build/Profile/OM2P 
    765765        $(call Image/Build/Template/$(fs_squash)/$(1),OpenMesh,om2p,OM2P) 
     766endef 
     767 
     768tlmr3020_cmdline=board=TL-MR3020 console=ttyATH0,115200 
     769define Image/Build/Profile/TLMR3020 
     770        $(call Image/Build/Template/$(fs_64k)/$(1),TPLINK-LZMA,tl-mr3020-v1,$(tlmr3020_cmdline),0x30200001,1,4Mlzma) 
    766771endef 
    767772 
     
    934939        $(call Image/Build/Profile/TEW632BRP,$(1)) 
    935940        $(call Image/Build/Profile/TEW652BRP,$(1)) 
     941        $(call Image/Build/Profile/TLMR3020,$(1)) 
    936942        $(call Image/Build/Profile/TLMR3220,$(1)) 
    937943        $(call Image/Build/Profile/TLMR3420,$(1)) 
Note: See TracChangeset for help on using the changeset viewer.