Changeset 36564


Ignore:
Timestamp:
2013-05-06T18:45:35+02:00 (5 years ago)
Author:
blogic
Message:

ramips: Update ARC Freestation profile

These devices are actually built around the 8devices Carambola dev board.

ARC FreeStation, Flex mARC, iFlex, and SplitStation devices are
supported with this image, see "ARCFlex Firmware Downloads":
http://www.antennas.com/wiki/index.php?title=ARC-OS_Firmware_Downloads_and_Revision_History

Funnily enough if present the external USB wlan ends up being wlan-0, with the
SoC device being wlan-1.

  • Invert port map so special handling of vlan config can be removed.
  • Add LED config similar to original ArcOS firmware.
  • Add GPIO export for enabling PoE passthrough from ethernet port 0 to port 1
  • Get MACs from factory partition.
  • Update description to list supported devices.
  • Carambola uses RT3050 (not RT3052), though my Carambola CPU actually reports itself as being an RT3350 while still having RT3050F markings.

Signed-off-by: Tobias Diedrich <ranma+openwrt@…>

Location:
trunk/target/linux/ramips
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ramips/base-files/etc/uci-defaults/02_network

    r36435 r36564  
    130130                ;; 
    131131 
    132         freestation5 | \ 
    133132        wcr-150gn) 
    134133                ucidef_set_interfaces_lan_wan "eth0.2" "eth0.1" 
     
    256255        all0239-3g | \ 
    257256        carambola | \ 
     257        freestation5 | \ 
    258258        w502u | \ 
    259259        wnce2001) 
  • trunk/target/linux/ramips/dts/FREESTATION5.dts

    r36290 r36564  
    44 
    55/ { 
    6         compatible = "FREESTATION5", "ralink,rt3052-soc"; 
     6        compatible = "FREESTATION5", "ralink,rt3050-soc"; 
    77        model = "ARC FreeStation5"; 
    88 
    99        chosen { 
    1010                bootargs = "console=ttyS0,115200"; 
     11        }; 
     12 
     13        palmbus@10000000 { 
     14                sysc@0 { 
     15                        ralink,pinmux = "i2c", "spi", "uartlite", "jtag", "mdio", "sdram", "rgmii"; 
     16                        ralink,uartmux = "gpio"; 
     17                        ralink,wdtmux = <1>; 
     18                }; 
     19 
     20                gpio0: gpio@600 { 
     21                        status = "okay"; 
     22                }; 
    1123        }; 
    1224 
     
    5062        esw@10110000 { 
    5163                status = "okay"; 
    52                 ralink,portmap = <0x3e>; 
     64                ralink,portmap = <0x01>; 
    5365        }; 
    5466 
     
    6072                status = "okay"; 
    6173        }; 
     74 
     75        gpio-export { 
     76                compatible = "gpio-export"; 
     77                // Used to enable power-over-ethernet passthrough from port0 to port1. 
     78                // Disable passthrough by default to prevent accidental equipment damage. 
     79                poe { 
     80                        gpio-export,name = "poe-passthrough"; 
     81                        gpio-export,output = <1>; // OUT_INIT_HIGH 
     82                        gpios = <&gpio0 11 1>;    // GPIO 11, ACTIVE_LOW 
     83                }; 
     84        }; 
     85 
     86        gpio-leds { 
     87                compatible = "gpio-leds"; 
     88                // The following leds are defined in the ArcOS firmware, but reportedly 
     89                // not present in the Freestation5 device. 
     90                wifi { 
     91                        label = "freestation:unknown:wifi"; 
     92                        gpios = <&gpio0 7 1>; 
     93                }; 
     94                powerg { 
     95                        label = "freestation:unknown:powerg"; 
     96                        gpios = <&gpio0 9 1>; 
     97                }; 
     98                usb { 
     99                        label = "freestation:unknown:usb"; 
     100                        gpios = <&gpio0 14 1>; 
     101                }; 
     102        }; 
    62103}; 
  • trunk/target/linux/ramips/rt305x/profiles/freestation5.mk

    r31144 r36564  
    1313 
    1414define Profile/FREESTATION5/Description 
    15         Package set for ARC Flex FreeStation5 
     15        Package set for ARC FreeStation, Flex mARC, iFlex, and SplitStation 
    1616endef 
    1717 
Note: See TracChangeset for help on using the changeset viewer.