1# $FreeBSD$ 2 3# arge0 is connected to the LAN side of the switch PHY. 4# arge1 is connected to the single port WAN side of the switch PHY. 5 6# arge1 MDIO bus 7hint.argemdio.0.at="nexus0" 8hint.argemdio.0.maddr=0x1a000000 9hint.argemdio.0.msize=0x1000 10hint.argemdio.0.order=0 11 12hint.arge.0.phymask=0x0 13hint.arge.0.media=1000 14hint.arge.0.fduplex=1 15hint.arge.0.eeprommac=0x1f05120c 16hint.arge.0.mdio=mdioproxy1 # .. off of the switch mdiobus 17 18 19# arge1: nail to 1000/full, RMII - connected to the switch 20hint.arge.1.media=1000 # Map to 1000/full 21hint.arge.1.fduplex=1 # 22hint.arge.1.phymask=0x0 # no directly mapped PHYs 23 24# 25# AR7240 switch config 26# 27hint.arswitch.0.at="mdio0" 28hint.arswitch.0.is_7240=1 # We need to be explicitly told this 29hint.arswitch.0.numphys=4 # 4 active switch PHYs (PHY 0 -> 3) 30hint.arswitch.0.phy4cpu=1 # Yes, PHY 4 == dedicated PHY 31hint.arswitch.0.is_rgmii=0 # No, not RGMII 32hint.arswitch.0.is_gmii=0 # No, not GMII 33 34# ath0 - slot 0 35hint.pcib.0.bus.0.0.0.ath_fixup_addr=0x1f051000 36hint.pcib.0.bus.0.0.0.ath_fixup_size=4096 37 38# .. and now, telling each ath(4) NIC where to find the firmware 39# image. 40hint.ath.0.eeprom_firmware="pcib.0.bus.0.0.0.eeprom_firmware" 41 42# Inherited from AR724X_BASE.hints 43#hint.mx25l.0.at="spibus0" 44#hint.mx25l.0.cs=0 45# This board has two 16 MB flash devices on difference Chip Select pins 46hint.mx25l.1.at="spibus0" 47hint.mx25l.1.cs=1 48 49 50# Geom MAP 51 52# The WRZ-300HP has 2 16MB flash part - HOWEVER, the 64k caldata isn't 53# at the end of the flash. It's ~ 328KB into the flash image. 54 55# mtdparts=ar7240-nor0: 56# 256k(u-boot) 57# 64k(u-boot-env) 58# 64k@320k(ART) 59# 1152k@384k(uImage) 60# 6592k@1536k(rootfs) 61# 64k@8128k(properties) 62 63# Uboot lies like a lying liar. OpenWRT does this: 64# [ 0.570000] Concatenating MTD devices: 65# [ 0.570000] (0): "spi0.0" 66# [ 0.570000] (1): "spi0.1" 67# [ 0.580000] into device "flash" 68# [ 0.580000] Creating 7 MTD partitions on "flash": 69# [ 0.590000] 0x000000000000-0x000000040000 : "u-boot" 70# [ 0.600000] 0x000000040000-0x000000050000 : "u-boot-env" 71# [ 0.600000] 0x000000050000-0x000000060000 : "art" 72# [ 0.610000] 0x000000060000-0x000000160000 : "kernel" 73# [ 0.620000] 0x000000160000-0x000001ff0000 : "rootfs" 74# [ 0.620000] mtd: partition "rootfs" set to be root filesystem 75# [ 0.630000] mtd: partition "rootfs_data" created automatically, ofs=330000, len=1CC0000 76# [ 0.640000] 0x000000330000-0x000001ff0000 : "rootfs_data" 77# [ 0.650000] 0x000001ff0000-0x000002000000 : "user_property" 78# [ 0.650000] 0x000000060000-0x000001ff0000 : "firmware" 79 80hint.map.0.at="flash/spi0" 81hint.map.0.start=0x00000000 82hint.map.0.end= 0x00040000 83hint.map.0.name="uboot" 84hint.map.0.readonly=1 85 86hint.map.1.at="flash/spi0" 87hint.map.1.start=0x00040000 88hint.map.1.end= 0x00050000 # 64k u-boot-env 89hint.map.1.name="u-boot-env" 90hint.map.1.readonly=1 91 92hint.map.2.at="flash/spi0" 93hint.map.2.start=0x00050000 94hint.map.2.end= 0x00060000 # 64k ART 95hint.map.2.name="ART" 96hint.map.2.readonly=1 97 98hint.map.3.at="flash/spi0" 99hint.map.3.start=0x00060000 100hint.map.3.end= 0x00160000 101hint.map.3.name="kernel" 102hint.map.3.readonly=1 103 104hint.map.4.at="flash/spi0" 105hint.map.4.start=0x00160000 106hint.map.4.end= 0x00FF0000 107hint.map.4.name="rootfs" 108hint.map.4.readonly=1 109 110#hint.map.5.at="flash/spi1" 111hint.map.5.at="flash/spi0" 112hint.map.5.start=0x00FF0000 113hint.map.5.end= 0x01000000 114hint.map.5.name="cfg" 115hint.map.5.readonly=0 116 117# GPIO specific configuration block 118 119#define GPIO_PIN_INPUT 0x0001 /* input direction */ 120#define GPIO_PIN_OUTPUT 0x0002 /* output direction */ 121#define GPIO_PIN_OPENDRAIN 0x0004 /* open-drain output */ 122#define GPIO_PIN_PUSHPULL 0x0008 /* push-pull output */ 123#define GPIO_PIN_TRISTATE 0x0010 /* output disabled */ 124#define GPIO_PIN_PULLUP 0x0020 /* internal pull-up enabled */ 125#define GPIO_PIN_PULLDOWN 0x0040 /* internal pull-down enabled */ 126#define GPIO_PIN_INVIN 0x0080 /* invert input */ 127#define GPIO_PIN_INVOUT 0x0100 /* invert output */ 128#define GPIO_PIN_PULSATE 0x0200 /* pulsate in hardware */ 129 130# Pin 1 - SCK 131# Pin 2 - SDA 132# Pin 3 - test 2 133# Pin 4 - test 3 134# Pin 5 - USB (LED Blue) 135# Pin 6 - test a 136# Pin 7 - Security (LED Orange) 137# Pin 8 - Router (LED Green) 138# Pin 9 - Movie Engine On (LED Blue) 139# Pin 10 - Movie Engine Off (LED Blue) 140# Pin 11 - test a 141# Pin 12 - test a 142# Pin 13 - test a 143# Pin 14 - USB Power (turn on by default) 144# Pin 15 - test a 145# Pin 16 - test a 146# Pin 17 - diag (LED red) 147 148# Don't flip on anything that isn't already enabled. 149# Force on USB power pin 14 150#hint.gpio.0.function_set=0x00000000 151#hint.gpio.0.function_clear=0x00000000 152 153# These are the GPIO LEDs and buttons which can be software controlled. 154hint.gpio.0.pinmask=0x000103D0 155 156hint.gpio.0.pinon=0x00000000 157 158hint.gpioiic.0.at="gpiobus0" 159hint.gpioiic.0.pins=0x0003 160hint.gpioiic.0.sda=0 161hint.gpioiic.0.scl=1 162 163# LEDs are configured separately and driven by the LED device 164# usb tested good 165hint.gpioled.0.at="gpiobus0" 166hint.gpioled.0.name="blue-usb" 167hint.gpioled.0.pins=0x00000010 168 169hint.gpioled.1.at="gpiobus0" 170hint.gpioled.1.name="orange-security" 171hint.gpioled.1.pins=0x00000040 172 173hint.gpioled.2.at="gpiobus0" 174hint.gpioled.2.name="green-router" 175hint.gpioled.2.pins=0x00000080 176 177hint.gpioled.3.at="gpiobus0" 178hint.gpioled.3.name="blue-movie-engine-on" 179hint.gpioled.3.pins=0x00000100 180 181hint.gpioled.4.at="gpiobus0" 182hint.gpioled.4.name="blue-movie-engine-off" 183hint.gpioled.4.pins=0x00000200 184 185hint.gpioled.5.at="gpiobus0" 186hint.gpioled.5.name="red-diag" 187hint.gpioled.5.pins=0x00010000 188