1239799Sadrian# $FreeBSD$ 2239799Sadrian 3239799Sadrian# arge0 MDIO bus 4239799Sadrianhint.argemdio.0.at="nexus0" 5239799Sadrianhint.argemdio.0.maddr=0x19000000 6239799Sadrianhint.argemdio.0.msize=0x1000 7239799Sadrianhint.argemdio.0.order=0 8239799Sadrian 9239799Sadrian# arge1 MDIO bus doesn't exist on the AR7240 10239799Sadrian 11239799Sadrian# arge0: MII; dedicated PHY 4 on switch, connected via internal switch 12239799Sadrian# MDIO bus. 13239799Sadrian 14239799Sadrianhint.arge.0.at="nexus0" 15239799Sadrianhint.arge.0.maddr=0x19000000 16239799Sadrianhint.arge.0.msize=0x1000 17239799Sadrianhint.arge.0.irq=2 18239799Sadrian# hint.arge.0.eeprommac=0x83fe9ff0 19239799Sadrianhint.arge.0.phymask=0x10 # PHY 4 20239799Sadrian# hint.arge.0.miimode=2 # MII 21239799Sadrianhint.arge.0.mdio=mdioproxy1 # Hanging off the arswitch MDIO bus 22239799Sadrian 23239799Sadrian# arge1: connected to the LAN switch MAC, at 1000BaseTX / GMII. 24239799Sadrian 25239799Sadrianhint.arge.1.phymask=0x0 26239799Sadrian# hint.arge.1.miimode=1 # GMII 27239799Sadrianhint.arge.1.media=1000 # Force to 1000BaseTX/full 28239799Sadrianhint.arge.1.fduplex=1 29239799Sadrian 30239799Sadrian# 31239799Sadrian# AR7240 switch config 32239799Sadrian# 33242718Srayhint.arswitch.0.at="mdio0" 34239799Sadrianhint.arswitch.0.is_7240=1 # We need to be explicitly told this 35239799Sadrianhint.arswitch.0.numphys=4 # 4 active switch PHYs (PHY 0 -> 3) 36239799Sadrianhint.arswitch.0.phy4cpu=1 # Yes, PHY 4 == dedicated PHY 37239799Sadrianhint.arswitch.0.is_rgmii=0 # No, not RGMII 38239799Sadrianhint.arswitch.0.is_gmii=0 # No, not GMII 39239799Sadrian 40239799Sadrian# ath0 hint - pcie slot 0 41239799Sadrianhint.pcib.0.bus.0.0.0.ath_fixup_addr=0x1fff1000 42239799Sadrianhint.pcib.0.bus.0.0.0.ath_fixup_size=4096 43239799Sadrian 44239799Sadrian# ath 45239799Sadrianhint.ath.0.eeprom_firmware="pcib.0.bus.0.0.0.eeprom_firmware" 46239799Sadrian 47239799Sadrian# Signal leds 48239799Sadrianhint.gpioled.0.at="gpiobus0" 49239799Sadrianhint.gpioled.0.name="sig1" 50239799Sadrianhint.gpioled.0.pins=0x0001 # pin 0 51239799Sadrianhint.gpioled.1.at="gpiobus0" 52239799Sadrianhint.gpioled.1.name="sig2" 53239799Sadrianhint.gpioled.1.pins=0x0002 # pin 1 54239799Sadrianhint.gpioled.2.at="gpiobus0" 55239799Sadrianhint.gpioled.2.name="sig3" 56239799Sadrianhint.gpioled.2.pins=0x0800 # pin 11 57239799Sadrianhint.gpioled.3.at="gpiobus0" 58239799Sadrianhint.gpioled.3.name="sig4" 59239799Sadrianhint.gpioled.3.pins=0x0080 # pin 7 60239799Sadrian 61239799Sadrian# nvram mapping - XXX ? 62239799Sadrianhint.nvram.0.base=0x1f030000 63239799Sadrianhint.nvram.0.maxsize=0x2000 64239799Sadrianhint.nvram.0.flags=3 # 1 = No check, 2 = Format Generic 65239799Sadrianhint.nvram.1.base=0x1f032000 66239799Sadrianhint.nvram.1.maxsize=0x4000 67239799Sadrianhint.nvram.1.flags=3 # 1 = No check, 2 = Format Generic 68239799Sadrian 69239799Sadrian# GEOM_MAP 70239799Sadrian# 71239799Sadrian# From my AP91 environment: 72239799Sadrian# 73239799Sadrian# mtdparts=ar7240-nor0:256k(u-boot),64k(u-boot-env),2752k(rootfs), 74239799Sadrian# 960k(uImage),64k(ART) 75239799Sadrian 76239799Sadrianhint.map.0.at="flash/spi0" 77239799Sadrianhint.map.0.start=0x00000000 78239799Sadrianhint.map.0.end=0x00040000 # 256k u-boot 79239799Sadrianhint.map.0.name="u-boot" 80239799Sadrianhint.map.0.readonly=1 81239799Sadrian 82239799Sadrianhint.map.1.at="flash/spi0" 83239799Sadrianhint.map.1.start=0x00040000 84239799Sadrianhint.map.1.end=0x00050000 # 64k u-boot-env 85239799Sadrianhint.map.1.name="u-boot-env" 86239799Sadrianhint.map.1.readonly=0 87239799Sadrian 88239799Sadrianhint.map.2.at="flash/spi0" 89239799Sadrianhint.map.2.start=0x00050000 90239799Sadrianhint.map.2.end=0x00300000 # 2752k rootfs 91239799Sadrianhint.map.2.name="rootfs" 92239799Sadrianhint.map.2.readonly=1 93239799Sadrian 94239799Sadrianhint.map.3.at="flash/spi0" 95239799Sadrianhint.map.3.start=0x00300000 96239799Sadrianhint.map.3.end=0x003f0000 # 896k uImage 97239799Sadrianhint.map.3.name="uImage" 98239799Sadrianhint.map.3.readonly=1 99239799Sadrian 100239799Sadrianhint.map.4.at="flash/spi0" 101239799Sadrianhint.map.4.start=0x003f0000 102239799Sadrianhint.map.4.end=0x00400000 # 64k ART 103239799Sadrianhint.map.4.name="ART" 104239799Sadrianhint.map.4.readonly=1 105