1# $FreeBSD$ 2 3# MAC/ART ? - they're 00:02:03:04:05:06 :( 4 5# ath0 chain0 EXTERNAL_LNA0: 18 6# ath0 chain1 EXTERNAL_LNA1: 19 7# These are configured as GPIO output, init low, then 8# set the GPIO 'type' AR934X_GPIO_OUT_EXT_LNA0/AR934X_GPIO_OUT_EXT_LNA1. 9 10# XXX There's no arge1 on this! 11 12# XXX RFKILL? 13 14# mdiobus0 on arge0 15hint.argemdio.0.at="nexus0" 16hint.argemdio.0.maddr=0x19000000 17hint.argemdio.0.msize=0x1000 18hint.argemdio.0.order=0 19 20# DB120 GMAC configuration 21# + AR934X_ETH_CFG_RGMII_GMAC0 (1 << 0) 22hint.ar934x_gmac.0.gmac_cfg=0x1 23 24# Board mac address is at 0x1f01fc00. 25# ath0: offset 0 26# ath1: offset -1 27# arge0: offset -2 28# arge1: not hooked up; doesn't matter 29hint.ar71xx.0.eeprom_mac_addr=0x1f01fc00 30hint.ar71xx.0.eeprom_mac_isascii=0 31 32hint.ar71xx_mac_map.0.devid=ath 33hint.ar71xx_mac_map.0.unitid=0 34hint.ar71xx_mac_map.0.offset=0 35hint.ar71xx_mac_map.0.is_local=0 36 37hint.ar71xx_mac_map.1.devid=ath 38hint.ar71xx_mac_map.1.unitid=1 39hint.ar71xx_mac_map.1.offset=-1 40hint.ar71xx_mac_map.1.is_local=0 41 42hint.ar71xx_mac_map.2.devid=arge 43hint.ar71xx_mac_map.2.unitid=0 44hint.ar71xx_mac_map.2.offset=-2 45hint.ar71xx_mac_map.2.is_local=0 46 47# GMAC0 here - connected to an AR8327 48hint.arswitch.0.at="mdio0" 49hint.arswitch.0.is_7240=0 50hint.arswitch.0.is_9340=0 # not the internal switch! 51hint.arswitch.0.numphys=5 52hint.arswitch.0.phy4cpu=0 53hint.arswitch.0.is_rgmii=0 54hint.arswitch.0.is_gmii=0 55 56# Other AR8327 configuration parameters 57 58# AR8327_PAD_MAC_RGMII 59hint.arswitch.0.pad.0.mode=6 60hint.arswitch.0.pad.0.txclk_delay_en=1 61hint.arswitch.0.pad.0.rxclk_delay_en=1 62# AR8327_CLK_DELAY_SEL1 63hint.arswitch.0.pad.0.txclk_delay_sel=1 64# AR8327_CLK_DELAY_SEL2 65hint.arswitch.0.pad.0.rxclk_delay_sel=2 66 67# XXX there's no LED management just yet! 68hint.arswitch.0.led.ctrl0=0xc737c737 69hint.arswitch.0.led.ctrl1=0x00000000 70hint.arswitch.0.led.ctrl2=0x00000000 71hint.arswitch.0.led.ctrl3=0x0030c300 72hint.arswitch.0.led.open_drain=0 73 74# force_link=1 is required for the rest of the parameters 75# to be configured. 76hint.arswitch.0.port.0.force_link=1 77hint.arswitch.0.port.0.speed=1000 78hint.arswitch.0.port.0.duplex=1 79hint.arswitch.0.port.0.txpause=1 80hint.arswitch.0.port.0.rxpause=1 81 82# XXX OpenWRT DB120 BSP doesn't have media/duplex set? 83hint.arge.0.phymask=0x0 84hint.arge.0.media=1000 85hint.arge.0.fduplex=1 86hint.arge.0.miimode=3 # RGMII 87hint.arge.0.pll_1000=0x06000000 88 89# mdiobus1 on arge1 90hint.argemdio.1.at="nexus0" 91hint.argemdio.1.maddr=0x1a000000 92hint.argemdio.1.msize=0x1000 93hint.argemdio.1.order=0 94 95# Embedded switch on the AR9344 96# mdio1 is actually created as the AR8327 internal bus; so 97# this pops up as mdio2. 98# 99# XXX TODO: there's no need for AR9344 internal switch; it isn't exposed 100hint.arswitch.1.at="mdio2" 101hint.arswitch.1.is_7240=0 102hint.arswitch.1.is_9340=1 103hint.arswitch.1.numphys=5 104hint.arswitch.1.phy4cpu=0 # phy 4 is not a "CPU port" PHY here 105hint.arswitch.1.is_rgmii=0 106hint.arswitch.1.is_gmii=1 # arge1 <-> switch PHY is GMII 107 108# arge1 - lock up to 1000/full 109hint.arge.1.phymask=0x0 # Nothing attached here (XXX?) 110hint.arge.1.media=1000 111hint.arge.1.fduplex=1 112hint.arge.1.miimode=1 # GMII 113 114# MAC for arge1 is the second 6 bytes of the ART 115# hint.arge.1.eeprommac=0x1f7f0006 116 117# ART calibration data mapping - for the AR934x AHB device 118hint.ar71xx_caldata.0.at="nexus0" 119hint.ar71xx_caldata.0.order=0 120# Where the ART is - last 64k in the first 8MB of flash 121hint.ar71xx_caldata.0.map.0.ath_fixup_addr=0x1fff0000 122hint.ar71xx_caldata.0.map.0.ath_fixup_size=16384 123 124# And now tell the ath(4) driver where to look! 125hint.ath.0.eeprom_firmware="ar71xx_caldata.0.map.0.eeprom_firmware" 126 127# ath1: it's different; it's a PCIe attached device, so 128# we instead need to teach the PCIe bridge code about it 129# (ie, the 'early pci fixup' stuff that programs the PCIe 130# host registers on the NIC) and then we teach ath where 131# to find it. 132 133# ath1 hint - pcie slot 0 134hint.pcib.0.bus.0.0.0.ath_fixup_addr=0x1fff4000 135hint.pcib.0.bus.0.0.0.ath_fixup_size=16384 136 137# ath0 - eeprom comes from here 138hint.ath.1.eeprom_firmware="pcib.0.bus.0.0.0.eeprom_firmware" 139 140# flash layout: 141# 142# bootargs=console=ttyS0,115200 root=31:02 rootfstype=jffs2 init=/sbin/init mtdparts=ath-nor0:256k(u-boot),64k(u-boot-env),6336k(rootfs),1408k(uImage),64k(mib0),64k(ART) 143 144# 128KiB uboot 145hint.map.0.at="flash/spi0" 146hint.map.0.start=0x00000000 147hint.map.0.end=0x00020000 # 128k u-boot 148hint.map.0.name="u-boot" 149hint.map.0.readonly=1 150 151# kernel 152hint.map.2.at="flash/spi0" 153hint.map.2.start=0x00020000 154hint.map.2.end="search:0x00020000:0x10000:.!/bin/sh" 155hint.map.2.name="kernel" 156hint.map.2.readonly=1 157 158# 1344KiB uImage 159hint.map.3.at="flash/spi0" 160hint.map.3.start="search:0x00020000:0x10000:.!/bin/sh" 161hint.map.3.end=0x007d0000 162hint.map.3.name="rootfs" 163hint.map.3.readonly=1 164 165# 64KiB cfg 166hint.map.4.at="flash/spi0" 167hint.map.4.start=0x007d0000 168hint.map.4.end=0x007e0000 169hint.map.4.name="cfg" 170hint.map.4.readonly=0 171 172# 64KiB mib0 173hint.map.5.at="flash/spi0" 174hint.map.5.start=0x007e0000 175hint.map.5.end=0x007f0000 # 64k mib0 176hint.map.5.name="mib0" 177hint.map.5.readonly=1 178 179# 64KiB ART 180hint.map.6.at="flash/spi0" 181hint.map.6.start=0x007f0000 182hint.map.6.end=0x00800000 # 64k ART 183hint.map.6.name="ART" 184hint.map.6.readonly=1 185 186# GPIO configuration 187# GPIO21 and GPIO22 - USB1 and USB2 power 188# ath0 chain0 EXTERNAL_LNA0: 18, output 189# ath0 chain1 EXTERNAL_LNA1: 19, output 190 191# These are the GPIO LEDs and buttons which can be software controlled. 192hint.gpio.0.pinmask=0x0063f800 193 194# Enable GPIO21, GPIO22 output and high - for USB power 195hint.gpio.0.pinon=0x00600000 196 197hint.gpio.0.func.18.gpiofunc=46 198hint.gpio.0.func.18.gpiomode=1 # output, default low 199 200hint.gpio.0.func.19.gpiofunc=47 201hint.gpio.0.func.19.gpiomode=1 # output, default low 202 203# LED QSS - 15 204# LED SYSTEM - 14 205# LED USB1 - 11 206# LED USB2 - 12 207# LED WLAN2G - 13 208 209# SWITCH WPS - 16 210# SWITCH RFKILL - 17 211 212hint.gpioled.0.at="gpiobus0" 213hint.gpioled.0.name="USB1" 214hint.gpioled.0.pins=0x0800 215hint.gpioled.0.invert=1 216 217hint.gpioled.1.at="gpiobus0" 218hint.gpioled.1.name="USB2" 219hint.gpioled.1.pins=0x1000 220hint.gpioled.1.invert=1 221 222hint.gpioled.2.at="gpiobus0" 223hint.gpioled.2.name="WLAN2G" 224hint.gpioled.2.pins=0x2000 225hint.gpioled.2.invert=1 226 227hint.gpioled.3.at="gpiobus0" 228hint.gpioled.3.name="SYSTEM" 229hint.gpioled.3.pins=0x4000 230hint.gpioled.3.invert=1 231 232hint.gpioled.4.at="gpiobus0" 233hint.gpioled.4.name="QSS" 234hint.gpioled.4.pins=0x8000 235hint.gpioled.4.invert=1 236 237# XXX TODO: WPS/RFKILL switch 238