1# $FreeBSD$
2
3# arge0 MDIO bus
4hint.argemdio.0.at="nexus0"
5hint.argemdio.0.maddr=0x19000000
6hint.argemdio.0.msize=0x1000
7hint.argemdio.0.order=0
8
9# arge1 MDIO bus doesn't exist on the AR7240
10
11# arge0: MII; dedicated PHY 4 on switch, connected via internal switch
12# MDIO bus.
13
14# hint.arge.0.eeprommac=0x83fe9ff0
15hint.arge.0.phymask=0x10	# PHY 4
16# hint.arge.0.miimode=2		# MII
17hint.arge.0.mdio=mdioproxy1	# Hanging off the arswitch MDIO bus
18hint.arge.0.eeprommac=0x1fff0000
19
20# arge1: connected to the LAN switch MAC, at 1000BaseTX / GMII.
21hint.arge.1.phymask=0x0
22# hint.arge.1.miimode=1		# GMII
23hint.arge.1.media=1000		# Force to 1000BaseTX/full
24hint.arge.1.fduplex=1
25hint.arge.1.eeprommac=0x1fff0006
26
27#
28# AR7240 switch config
29#
30hint.arswitch.0.at="mdio0"
31hint.arswitch.0.is_7240=1	# We need to be explicitly told this
32hint.arswitch.0.numphys=4	# 4 active switch PHYs (PHY 0 -> 3)
33hint.arswitch.0.phy4cpu=1	# Yes, PHY 4 == dedicated PHY
34hint.arswitch.0.is_rgmii=0	# No, not RGMII
35hint.arswitch.0.is_gmii=0	# No, not GMII
36
37# ath0 hint - pcie slot 0
38hint.pcib.0.bus.0.0.0.ath_fixup_addr=0x1fff1000
39hint.pcib.0.bus.0.0.0.ath_fixup_size=4096
40
41# ath0 - eeprom comes from here
42hint.ath.0.eeprom_firmware="pcib.0.bus.0.0.0.eeprom_firmware"
43
44# Signal leds
45hint.gpioled.0.at="gpiobus0"
46hint.gpioled.0.name="sig1"
47hint.gpioled.0.pins=0x0001	# pin 0
48hint.gpioled.1.at="gpiobus0"
49hint.gpioled.1.name="sig2"
50hint.gpioled.1.pins=0x0002	# pin 1
51hint.gpioled.2.at="gpiobus0"
52hint.gpioled.2.name="sig3"
53hint.gpioled.2.pins=0x0800	# pin 11
54hint.gpioled.3.at="gpiobus0"
55hint.gpioled.3.name="sig4"
56hint.gpioled.3.pins=0x0080	# pin 7
57
58# nvram mapping - XXX ?
59hint.nvram.0.base=0x1f030000
60hint.nvram.0.maxsize=0x2000
61hint.nvram.0.flags=3 # 1 = No check, 2 = Format Generic
62hint.nvram.1.base=0x1f032000
63hint.nvram.1.maxsize=0x4000
64hint.nvram.1.flags=3 # 1 = No check, 2 = Format Generic
65
66# GEOM_MAP
67#
68# From my AP93 environment:
69#
70# 256k - uboot
71# 256k - uboot-env
72# 3072k - spare-rootfs
73# 1024k - spare-uImage
74# 3072k - rootfs
75# 1024k - uImage
76# 64k - mib0
77# 64k - mib1
78# 4096k - ct
79# 3392k - var
80# 64k - ART
81
82# To make it useful for FreeBSD for now, treat spare rootfs, spare
83# uimage and rootfs as 'rootfs'.
84
85hint.map.0.at="flash/spi0"
86hint.map.0.start=0x00000000
87hint.map.0.end=0x00040000
88hint.map.0.name="uboot"
89hint.map.0.readonly=1
90
91hint.map.1.at="flash/spi0"
92hint.map.1.start=0x00040000
93hint.map.1.end=0x00080000
94hint.map.1.name="uboot-env"
95hint.map.1.readonly=1
96
97hint.map.2.at="flash/spi0"
98hint.map.2.start=0x00080000
99hint.map.2.end="search:0x00080000:0x10000:.!/bin/sh"
100hint.map.2.name="kernel"
101hint.map.2.readonly=0
102
103hint.map.3.at="flash/spi0"
104hint.map.3.start="search:0x00080000:0x10000:.!/bin/sh"
105hint.map.3.end=0x00880000
106hint.map.3.name="rootfs"
107hint.map.3.readonly=0
108
109hint.map.4.at="flash/spi0"
110hint.map.4.start=0x00880000
111hint.map.4.end=0x00890000
112# hint.map.4.name="mib0"
113hint.map.4.name="cfg"
114# hint.map.4.readonly=1
115
116hint.map.5.at="flash/spi0"
117hint.map.5.start=0x00890000
118hint.map.5.end=0x008a0000
119hint.map.5.name="mib1"
120hint.map.5.readonly=1
121
122hint.map.6.at="flash/spi0"
123hint.map.6.start=0x008a0000
124hint.map.6.end=0x00ca0000
125hint.map.6.name="ct"
126hint.map.6.readonly=1
127
128hint.map.7.at="flash/spi0"
129hint.map.7.start=0x00ca0000
130hint.map.7.end=0x00ff0000
131hint.map.7.name="var"
132hint.map.7.readonly=1
133
134hint.map.8.at="flash/spi0"
135hint.map.8.start=0x00ff0000
136hint.map.8.end=0x01000000	# 64k ART
137hint.map.8.name="ART"
138hint.map.8.readonly=1
139
140