DIR-825C1.hints revision 302408
1# $FreeBSD: stable/11/sys/mips/conf/DIR-825C1.hints 300050 2016-05-17 12:52:31Z eadler $ 2 3# mdiobus0 on arge0 4hint.argemdio.0.at="nexus0" 5hint.argemdio.0.maddr=0x19000000 6hint.argemdio.0.msize=0x1000 7hint.argemdio.0.order=0 8 9# 0x1ffe0004 is the "unit MAC". 10# 0x1ffe0018 is the second "MAC". 11# Right now this doesn't have any option for more than one 12# "unit MACs", so: 13# ath0: unit MAC 14# ath1: unit MAC + 1 15# arge0: unit MAC + 2 16# arge1: leave as default; not used. 17hint.ar71xx.0.eeprom_mac_addr=0x1ffe0004 18hint.ar71xx.0.eeprom_mac_isascii=1 19 20hint.ar71xx_mac_map.0.devid=ath 21hint.ar71xx_mac_map.0.unitid=0 22hint.ar71xx_mac_map.0.offset=0 23hint.ar71xx_mac_map.0.is_local=0 24 25hint.ar71xx_mac_map.1.devid=ath 26hint.ar71xx_mac_map.1.unitid=1 27hint.ar71xx_mac_map.1.offset=1 28hint.ar71xx_mac_map.1.is_local=0 29 30hint.ar71xx_mac_map.2.devid=arge 31hint.ar71xx_mac_map.2.unitid=0 32hint.ar71xx_mac_map.2.offset=2 33hint.ar71xx_mac_map.2.is_local=0 34 35# DIR-825C1 GMAC configuration 36# + AR934X_ETH_CFG_RGMII_GMAC0 (1 << 0) 37# Onboard AR9344 10/100 switch is not wired up 38hint.ar934x_gmac.0.gmac_cfg=0x1 39 40# GMAC0 here - connected to an AR8327 41hint.arswitch.0.at="mdio0" 42hint.arswitch.0.is_7240=0 43hint.arswitch.0.is_9340=0 # not the internal switch! 44hint.arswitch.0.numphys=5 45hint.arswitch.0.phy4cpu=0 46hint.arswitch.0.is_rgmii=1 47hint.arswitch.0.is_gmii=0 48 49# Other AR8327 configuration parameters 50 51# AR8327_PAD_MAC_RGMII 52hint.arswitch.0.pad.0.mode=6 53hint.arswitch.0.pad.0.txclk_delay_en=1 54hint.arswitch.0.pad.0.rxclk_delay_en=1 55 56# AR8327_CLK_DELAY_SEL1 57hint.arswitch.0.pad.0.txclk_delay_sel=1 58# AR8327_CLK_DELAY_SEL2 59hint.arswitch.0.pad.0.rxclk_delay_sel=2 60 61# XXX there's no LED management just yet! 62hint.arswitch.0.led.ctrl0=0x00000000 63hint.arswitch.0.led.ctrl1=0xc737c737 64hint.arswitch.0.led.ctrl2=0x00000000 65hint.arswitch.0.led.ctrl3=0x00c30c00 66hint.arswitch.0.led.open_drain=1 67 68# force_link=1 is required for the rest of the parameters 69# to be configured. 70hint.arswitch.0.port.0.force_link=1 71hint.arswitch.0.port.0.speed=1000 72hint.arswitch.0.port.0.duplex=1 73hint.arswitch.0.port.0.txpause=1 74hint.arswitch.0.port.0.rxpause=1 75 76# XXX OpenWRT DB120 BSP doesn't have media/duplex set? 77hint.arge.0.phymask=0x0 78hint.arge.0.media=1000 79hint.arge.0.fduplex=1 80hint.arge.0.miimode=3 # RGMII 81hint.arge.0.pll_1000=0x06000000 82 83# ath0: Where the ART is - last 64k in the flash 84hint.ath.0.eepromaddr=0x1fff0000 85hint.ath.0.eepromsize=16384 86 87# ath1: it's different; it's a PCIe attached device, so 88# we instead need to teach the PCIe bridge code about it 89# (ie, the 'early pci fixup' stuff that programs the PCIe 90# host registers on the NIC) and then we teach ath where 91# to find it. 92 93# ath1 hint - pcie slot 0 94hint.pcib.0.bus.0.0.0.ath_fixup_addr=0x1fff4000 95hint.pcib.0.bus.0.0.0.ath_fixup_size=16384 96 97# ath0 - eeprom comes from here 98hint.ath.1.eeprom_firmware="pcib.0.bus.0.0.0.eeprom_firmware" 99 100# flash layout: 101# m25p80 spi0.0: mx25l12805d (16384 Kbytes) 102# 103# uBoot firmware variables: 104# bootargs=console=ttyS0,115200 root=31:02 rootfstype=jffs2 init=/sbin/init 105# mtdparts=ath-nor0:256k(u-boot),64k(u-boot-env),6336k(rootfs),1408k(uImage),64k(mib0),64k(ART) 106 107# 64KiB u-boot 108hint.map.0.at="flash/spi0" 109hint.map.0.start=0x00000000 110hint.map.0.end=0x00010000 111hint.map.0.name="u-boot" 112hint.map.0.readonly=1 113 114# 64KiB u-boot-env 115hint.map.1.at="flash/spi0" 116hint.map.1.start=0x00010000 117hint.map.1.end=0x00020000 118hint.map.1.name="u-boot-env" 119hint.map.1.readonly=1 120 121# 1344KiB kernel 122hint.map.2.at="flash/spi0" 123hint.map.2.start=0x00020000 124hint.map.2.end="search:0x00020000:0x10000:.!/bin/sh" 125hint.map.2.name="kernel" 126hint.map.2.readonly=1 127 128# 14592KiB rootfs 129hint.map.3.at="flash/spi0" 130hint.map.3.start="search:0x00020000:0x10000:.!/bin/sh" 131hint.map.3.end=0x00fb0000 132hint.map.3.name="rootfs" 133hint.map.3.readonly=1 134 135# 192KiB lang -- remapped to cfg 136hint.map.4.at="flash/spi0" 137hint.map.4.start=0x00fb0000 138hint.map.4.end=0x00fe0000 139hint.map.4.name="cfg" 140hint.map.4.readonly=0 141 142# 64KiB mac 143hint.map.5.at="flash/spi0" 144hint.map.5.start=0x00fe0000 145hint.map.5.end=0x00ff0000 146hint.map.5.name="mac" 147hint.map.5.readonly=1 148 149# 64KiB art 150hint.map.6.at="flash/spi0" 151hint.map.6.start=0x00ff0000 152hint.map.6.end=0x01000000 153hint.map.6.name="art" 154hint.map.6.readonly=1 155