1# $FreeBSD$ 2 3# This is a placeholder until the hardware support is complete. 4 5# mdiobus0 on arge0 6hint.argemdio.0.at="nexus0" 7hint.argemdio.0.maddr=0x19000000 8hint.argemdio.0.msize=0x1000 9hint.argemdio.0.order=0 10 11# DB120 GMAC configuration 12# + AR934X_ETH_CFG_RGMII_GMAC0 (1 << 0) 13# + AR934X_ETH_CFG_SW_ONLY_MODE (1 << 6) 14hint.ar934x_gmac.0.gmac_cfg=0x41 15 16# GMAC0 here - connected to an AR8327 17hint.arswitch.0.at="mdio0" 18hint.arswitch.0.is_7240=0 19hint.arswitch.0.is_9340=0 # not the internal switch! 20hint.arswitch.0.numphys=5 21hint.arswitch.0.phy4cpu=0 22hint.arswitch.0.is_rgmii=1 23hint.arswitch.0.is_gmii=0 24 25# Other AR8327 configuration parameters 26 27# AR8327_PAD_MAC_RGMII 28hint.arswitch.0.pad.0.mode=6 29hint.arswitch.0.pad.0.txclk_delay_en=1 30hint.arswitch.0.pad.0.rxclk_delay_en=1 31# AR8327_CLK_DELAY_SEL1 32hint.arswitch.0.pad.0.txclk_delay_sel=1 33# AR8327_CLK_DELAY_SEL2 34hint.arswitch.0.pad.0.rxclk_delay_sel=2 35 36# XXX there's no LED management just yet! 37hint.arswitch.0.led.ctrl0=0x00000000 38hint.arswitch.0.led.ctrl1=0xc737c737 39hint.arswitch.0.led.ctrl2=0x00000000 40hint.arswitch.0.led.ctrl3=0x00c30c00 41hint.arswitch.0.led.open_drain=1 42 43# force_link=1 is required for the rest of the parameters 44# to be configured. 45hint.arswitch.0.port.0.force_link=1 46hint.arswitch.0.port.0.speed=1000 47hint.arswitch.0.port.0.duplex=1 48hint.arswitch.0.port.0.txpause=1 49hint.arswitch.0.port.0.rxpause=1 50 51# XXX OpenWRT DB120 BSP doesn't have media/duplex set? 52hint.arge.0.phymask=0x0 53hint.arge.0.media=1000 54hint.arge.0.fduplex=1 55hint.arge.0.miimode=3 # RGMII 56hint.arge.0.pll_1000=0x06000000 57 58# MAC for arge0 is the first 6 bytes of the ART 59hint.arge.0.eeprommac=0x1f7f0000 60 61# mdiobus1 on arge1 62hint.argemdio.1.at="nexus0" 63hint.argemdio.1.maddr=0x1a000000 64hint.argemdio.1.msize=0x1000 65hint.argemdio.1.order=0 66 67# Embedded switch on the AR9344 68# mdio1 is actually created as the AR8327 internal bus; so 69# this pops up as mdio2. 70hint.arswitch.1.at="mdio2" 71hint.arswitch.1.is_7240=0 72hint.arswitch.1.is_9340=1 73hint.arswitch.1.numphys=5 74hint.arswitch.1.phy4cpu=0 # phy 4 is not a "CPU port" PHY here 75hint.arswitch.1.is_rgmii=0 76hint.arswitch.1.is_gmii=1 # arge1 <-> switch PHY is GMII 77 78# arge1 - lock up to 1000/full 79hint.arge.1.phymask=0x0 # Nothing attached here (XXX?) 80hint.arge.1.media=1000 81hint.arge.1.fduplex=1 82hint.arge.1.miimode=1 # GMII 83 84# MAC for arge1 is the second 6 bytes of the ART 85hint.arge.1.eeprommac=0x1f7f0006 86 87# ART calibration data mapping - for the AR934x AHB device 88hint.ar71xx_caldata.0.at="nexus0" 89hint.ar71xx_caldata.0.order=0 90# Where the ART is - last 64k in the first 8MB of flash 91hint.ar71xx_caldata.0.map.0.ath_fixup_addr=0x1fff0000 92hint.ar71xx_caldata.0.map.0.ath_fixup_size=16384 93 94# And now tell the ath(4) driver where to look! 95hint.ath.0.eeprom_firmware="ar71xx_caldata.0.map.0.eeprom_firmware" 96 97# ath1: it's different; it's a PCIe attached device, so 98# we instead need to teach the PCIe bridge code about it 99# (ie, the 'early pci fixup' stuff that programs the PCIe 100# host registers on the NIC) and then we teach ath where 101# to find it. 102 103# ath1 hint - pcie slot 0 104hint.pcib.0.bus.0.0.0.ath_fixup_addr=0x1fff4000 105hint.pcib.0.bus.0.0.0.ath_fixup_size=16384 106 107# ath0 - eeprom comes from here 108hint.ath.1.eeprom_firmware="pcib.0.bus.0.0.0.eeprom_firmware" 109 110# flash layout: 111# 112# 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) 113 114# 256KiB u-boot 115hint.map.0.at="flash/spi0" 116hint.map.0.start=0x00000000 117hint.map.0.end=0x00040000 # 256k u-boot 118hint.map.0.name="u-boot" 119hint.map.0.readonly=1 120 121# 64KiB u-boot-env 122hint.map.1.at="flash/spi0" 123hint.map.1.start=0x00040000 124hint.map.1.end=0x00050000 # 64k u-boot-env 125hint.map.1.name="u-boot-env" 126hint.map.1.readonly=1 127 128# 6336KiB rootfs + 1344KiB uImage; turn into a single long 129# combo image for FreeBSD. 130 131hint.map.2.at="flash/spi0" 132hint.map.2.start=0x00050000 133hint.map.2.end="search:0x00050000:0x10000:.!/bin/sh" 134hint.map.2.name="kernel" 135hint.map.2.readonly=0 136 137hint.map.3.at="flash/spi0" 138hint.map.3.start="search:0x00050000:0x10000:.!/bin/sh" 139hint.map.3.end=0x007d0000 140hint.map.3.name="rootfs" 141hint.map.3.readonly=0 142 143# 64KiB cfg 144hint.map.4.at="flash/spi0" 145hint.map.4.start=0x007d0000 146hint.map.4.end=0x007e0000 147hint.map.4.name="cfg" 148hint.map.4.readonly=0 149 150# 64KiB mib0 151hint.map.5.at="flash/spi0" 152hint.map.5.start=0x007e0000 153hint.map.5.end=0x007f0000 # 64k mib0 154hint.map.5.name="mib0" 155hint.map.5.readonly=1 156 157# 64KiB ART 158hint.map.6.at="flash/spi0" 159hint.map.6.start=0x007f0000 160hint.map.6.end=0x00800000 # 64k ART 161hint.map.6.name="ART" 162hint.map.6.readonly=1 163