1# $FreeBSD$
2
3# arge0 is connected to the LAN side of the switch PHY.
4# arge1 is connected to the single port WAN side of the switch PHY.
5
6hint.argemdio.0.at="nexus0"
7hint.argemdio.0.maddr=0x19000000
8hint.argemdio.0.msize=0x1000
9hint.argemdio.0.order=0
10
11hint.arge.0.phymask=0x0
12hint.arge.0.media=1000
13hint.arge.0.fduplex=1
14hint.arge.0.eeprommac=0x1f05120c
15hint.arge.0.mdio=mdioproxy0     # .. off of the switch mdiobus
16hint.arge.0.miimode=3 
17
18hint.arge.1.phymask=0x10
19hint.arge.1.media=1000
20hint.arge.1.fduplex=1
21hint.arge.1.eeprommac=0x1f05520c
22hint.arge.1.mdio=mdioproxy1     # .. off of the switch mdiobus
23hint.arge.1.miimode=3 
24
25#
26# AR8316 switch config
27#
28hint.arswitch.0.at="mdio0"
29hint.arswitch.0.is_7240=0       # We need to be explicitly told this
30hint.arswitch.0.numphys=4       # 5 active switch PHYs (PHY 0 -> 4)
31hint.arswitch.0.phy4cpu=1       # No, PHY 4 == dedicated PHY
32hint.arswitch.0.is_rgmii=1      # Yes, is RGMII
33hint.arswitch.0.is_gmii=0       # No, not GMII
34
35# ath0 - slot 17
36hint.pcib.0.bus.0.17.0.ath_fixup_addr=0x1f051000
37hint.pcib.0.bus.0.17.0.ath_fixup_size=4096
38
39# ath1 - slot 18
40hint.pcib.0.bus.0.18.0.ath_fixup_addr=0x1f055000
41hint.pcib.0.bus.0.18.0.ath_fixup_size=4096
42# .. and now, telling each ath(4) NIC where to find the firmware
43# image.
44hint.ath.0.eeprom_firmware="pcib.0.bus.0.17.0.eeprom_firmware"
45hint.ath.1.eeprom_firmware="pcib.0.bus.0.18.0.eeprom_firmware"
46
47# Inherited from AR71XX_BASE.hints
48#hint.mx25l.0.at="spibus0"
49#hint.mx25l.0.cs=0
50# This board has two 16 MB flash devices on difference Chip Select pins
51hint.mx25l.1.at="spibus0"
52hint.mx25l.1.cs=1
53
54
55# Geom MAP
56
57hint.map.0.at="flash/spi0"
58hint.map.0.start=0x00000000
59hint.map.0.end=0x00040000
60hint.map.0.name="uboot"
61hint.map.0.readonly=1
62
63hint.map.1.at="flash/spi0"
64hint.map.1.start=0x00040000
65hint.map.1.end=0x00050000
66hint.map.1.name="u-boot-env"
67hint.map.1.readonly=1
68
69hint.map.2.at="flash/spi0"
70hint.map.2.start=0x00050000
71hint.map.2.end=0x00060000
72hint.map.2.name="ART"
73hint.map.2.readonly=1
74
75# requires a 1M alignment and padding in the image.
76# make sure you are using conv=sync and bs=1M in your dd
77hint.map.3.at="flash/spi0"
78hint.map.3.start=0x00060000
79hint.map.3.end="search:0x00160000:0x100000:.!/bin/sh"
80hint.map.3.name="kernel"
81hint.map.3.readonly=1
82
83hint.map.4.at="flash/spi0"
84hint.map.4.start="search:0x00160000:0x100000:.!/bin/sh"
85hint.map.4.end=0x01000000
86hint.map.4.name="rootfs"
87hint.map.4.readonly=1
88
89hint.map.5.at="flash/spi1"
90hint.map.5.start=0x00FF0000
91hint.map.5.end=0x01000000
92hint.map.5.name="cfg"
93hint.map.5.readonly=0
94
95# Pin 1  - SCK
96# Pin 2  - SDA
97# Pin 3  - usb 
98# Pin 4  - 
99# Pin 5  - aoss
100# Pin 6  - router auto
101# Pin 7  - router off
102# Pin 8  - movie engine
103# Pin 9  - 
104# Pin 10 - 
105# Pin 11 - reset button
106# Pin 12 - CS0
107# Pin 13 - CS1
108# Pin 14 - 
109# Pin 15 - 
110# Pin 16 - 
111# Pin 17 - 
112
113# Don't flip on anything that isn't already enabled.
114# Force on CS lines for flash devices, apparently this isn't done
115# by uboot in normal booting.  No idea why. 
116hint.gpio.0.function_set=0x00003004
117hint.gpio.0.function_clear=0x00000000
118
119# These are the GPIO LEDs and buttons which can be software controlled.
120hint.gpio.0.pinmask=0x0001
121
122hint.gpio.0.pinon=0x00000004
123
124hint.gpioiic.0.at="gpiobus0"
125#hint.gpioiic.0.pins=0x0003
126hint.gpioiic.0.sda=0
127hint.gpioiic.0.scl=1
128
129# LEDs are configured separately and driven by the LED device
130hint.gpioled.0.at="gpiobus0"
131hint.gpioled.0.name="red-diag"
132hint.gpioled.0.pins=0x0001
133