1264085Ssbruno# $FreeBSD: releng/11.0/sys/mips/conf/DIR-825C1.hints 300050 2016-05-17 12:52:31Z eadler $ 2264085Ssbruno 3264085Ssbruno# mdiobus0 on arge0 4264085Ssbrunohint.argemdio.0.at="nexus0" 5264085Ssbrunohint.argemdio.0.maddr=0x19000000 6264085Ssbrunohint.argemdio.0.msize=0x1000 7264085Ssbrunohint.argemdio.0.order=0 8264085Ssbruno 9300050Seadler# 0x1ffe0004 is the "unit MAC". 10281122Sadrian# 0x1ffe0018 is the second "MAC". 11281122Sadrian# Right now this doesn't have any option for more than one 12281122Sadrian# "unit MACs", so: 13281122Sadrian# ath0: unit MAC 14281122Sadrian# ath1: unit MAC + 1 15281122Sadrian# arge0: unit MAC + 2 16281122Sadrian# arge1: leave as default; not used. 17281122Sadrianhint.ar71xx.0.eeprom_mac_addr=0x1ffe0004 18281122Sadrianhint.ar71xx.0.eeprom_mac_isascii=1 19281122Sadrian 20281122Sadrianhint.ar71xx_mac_map.0.devid=ath 21281122Sadrianhint.ar71xx_mac_map.0.unitid=0 22281122Sadrianhint.ar71xx_mac_map.0.offset=0 23281122Sadrianhint.ar71xx_mac_map.0.is_local=0 24281122Sadrian 25281122Sadrianhint.ar71xx_mac_map.1.devid=ath 26281122Sadrianhint.ar71xx_mac_map.1.unitid=1 27281122Sadrianhint.ar71xx_mac_map.1.offset=1 28281122Sadrianhint.ar71xx_mac_map.1.is_local=0 29281122Sadrian 30281122Sadrianhint.ar71xx_mac_map.2.devid=arge 31281122Sadrianhint.ar71xx_mac_map.2.unitid=0 32281122Sadrianhint.ar71xx_mac_map.2.offset=2 33281122Sadrianhint.ar71xx_mac_map.2.is_local=0 34281122Sadrian 35264085Ssbruno# DIR-825C1 GMAC configuration 36264085Ssbruno# + AR934X_ETH_CFG_RGMII_GMAC0 (1 << 0) 37264085Ssbruno# Onboard AR9344 10/100 switch is not wired up 38264085Ssbrunohint.ar934x_gmac.0.gmac_cfg=0x1 39264085Ssbruno 40264085Ssbruno# GMAC0 here - connected to an AR8327 41264085Ssbrunohint.arswitch.0.at="mdio0" 42264085Ssbrunohint.arswitch.0.is_7240=0 43264085Ssbrunohint.arswitch.0.is_9340=0 # not the internal switch! 44264085Ssbrunohint.arswitch.0.numphys=5 45264085Ssbrunohint.arswitch.0.phy4cpu=0 46264085Ssbrunohint.arswitch.0.is_rgmii=1 47264085Ssbrunohint.arswitch.0.is_gmii=0 48264085Ssbruno 49264085Ssbruno# Other AR8327 configuration parameters 50264085Ssbruno 51264085Ssbruno# AR8327_PAD_MAC_RGMII 52264085Ssbrunohint.arswitch.0.pad.0.mode=6 53264085Ssbrunohint.arswitch.0.pad.0.txclk_delay_en=1 54264085Ssbrunohint.arswitch.0.pad.0.rxclk_delay_en=1 55264085Ssbruno 56264085Ssbruno# AR8327_CLK_DELAY_SEL1 57264085Ssbrunohint.arswitch.0.pad.0.txclk_delay_sel=1 58264085Ssbruno# AR8327_CLK_DELAY_SEL2 59264085Ssbrunohint.arswitch.0.pad.0.rxclk_delay_sel=2 60264085Ssbruno 61264085Ssbruno# XXX there's no LED management just yet! 62264085Ssbrunohint.arswitch.0.led.ctrl0=0x00000000 63264085Ssbrunohint.arswitch.0.led.ctrl1=0xc737c737 64264085Ssbrunohint.arswitch.0.led.ctrl2=0x00000000 65264085Ssbrunohint.arswitch.0.led.ctrl3=0x00c30c00 66264085Ssbrunohint.arswitch.0.led.open_drain=1 67264085Ssbruno 68264085Ssbruno# force_link=1 is required for the rest of the parameters 69264085Ssbruno# to be configured. 70264085Ssbrunohint.arswitch.0.port.0.force_link=1 71264085Ssbrunohint.arswitch.0.port.0.speed=1000 72264085Ssbrunohint.arswitch.0.port.0.duplex=1 73264085Ssbrunohint.arswitch.0.port.0.txpause=1 74264085Ssbrunohint.arswitch.0.port.0.rxpause=1 75264085Ssbruno 76264085Ssbruno# XXX OpenWRT DB120 BSP doesn't have media/duplex set? 77264085Ssbrunohint.arge.0.phymask=0x0 78264085Ssbrunohint.arge.0.media=1000 79264085Ssbrunohint.arge.0.fduplex=1 80264085Ssbrunohint.arge.0.miimode=3 # RGMII 81264085Ssbrunohint.arge.0.pll_1000=0x06000000 82264085Ssbruno 83264085Ssbruno# ath0: Where the ART is - last 64k in the flash 84264085Ssbrunohint.ath.0.eepromaddr=0x1fff0000 85264085Ssbrunohint.ath.0.eepromsize=16384 86264085Ssbruno 87264085Ssbruno# ath1: it's different; it's a PCIe attached device, so 88264085Ssbruno# we instead need to teach the PCIe bridge code about it 89264085Ssbruno# (ie, the 'early pci fixup' stuff that programs the PCIe 90264085Ssbruno# host registers on the NIC) and then we teach ath where 91264085Ssbruno# to find it. 92264085Ssbruno 93264085Ssbruno# ath1 hint - pcie slot 0 94264085Ssbrunohint.pcib.0.bus.0.0.0.ath_fixup_addr=0x1fff4000 95264085Ssbrunohint.pcib.0.bus.0.0.0.ath_fixup_size=16384 96264085Ssbruno 97264085Ssbruno# ath0 - eeprom comes from here 98264085Ssbrunohint.ath.1.eeprom_firmware="pcib.0.bus.0.0.0.eeprom_firmware" 99264085Ssbruno 100264085Ssbruno# flash layout: 101264085Ssbruno# m25p80 spi0.0: mx25l12805d (16384 Kbytes) 102264085Ssbruno# 103264085Ssbruno# uBoot firmware variables: 104264085Ssbruno# bootargs=console=ttyS0,115200 root=31:02 rootfstype=jffs2 init=/sbin/init 105264085Ssbruno# mtdparts=ath-nor0:256k(u-boot),64k(u-boot-env),6336k(rootfs),1408k(uImage),64k(mib0),64k(ART) 106264085Ssbruno 107264085Ssbruno# 64KiB u-boot 108264085Ssbrunohint.map.0.at="flash/spi0" 109264085Ssbrunohint.map.0.start=0x00000000 110280319Sadrianhint.map.0.end=0x00010000 111264085Ssbrunohint.map.0.name="u-boot" 112264085Ssbrunohint.map.0.readonly=1 113264085Ssbruno 114264085Ssbruno# 64KiB u-boot-env 115264085Ssbrunohint.map.1.at="flash/spi0" 116264085Ssbrunohint.map.1.start=0x00010000 117280319Sadrianhint.map.1.end=0x00020000 118264085Ssbrunohint.map.1.name="u-boot-env" 119264085Ssbrunohint.map.1.readonly=1 120264085Ssbruno 121264085Ssbruno# 1344KiB kernel 122264085Ssbrunohint.map.2.at="flash/spi0" 123264085Ssbrunohint.map.2.start=0x00020000 124280319Sadrianhint.map.2.end="search:0x00020000:0x10000:.!/bin/sh" 125264085Ssbrunohint.map.2.name="kernel" 126264085Ssbrunohint.map.2.readonly=1 127264085Ssbruno 128264085Ssbruno# 14592KiB rootfs 129264085Ssbrunohint.map.3.at="flash/spi0" 130280319Sadrianhint.map.3.start="search:0x00020000:0x10000:.!/bin/sh" 131264085Ssbrunohint.map.3.end=0x00fb0000 132264085Ssbrunohint.map.3.name="rootfs" 133264085Ssbrunohint.map.3.readonly=1 134264085Ssbruno 135264085Ssbruno# 192KiB lang -- remapped to cfg 136264085Ssbrunohint.map.4.at="flash/spi0" 137264085Ssbrunohint.map.4.start=0x00fb0000 138280319Sadrianhint.map.4.end=0x00fe0000 139264085Ssbrunohint.map.4.name="cfg" 140264085Ssbrunohint.map.4.readonly=0 141264085Ssbruno 142264085Ssbruno# 64KiB mac 143264085Ssbrunohint.map.5.at="flash/spi0" 144264085Ssbrunohint.map.5.start=0x00fe0000 145280319Sadrianhint.map.5.end=0x00ff0000 146264085Ssbrunohint.map.5.name="mac" 147264085Ssbrunohint.map.5.readonly=1 148264085Ssbruno 149264085Ssbruno# 64KiB art 150264085Ssbrunohint.map.6.at="flash/spi0" 151264085Ssbrunohint.map.6.start=0x00ff0000 152280319Sadrianhint.map.6.end=0x01000000 153264085Ssbrunohint.map.6.name="art" 154264085Ssbrunohint.map.6.readonly=1 155