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
14hint.arge.0.at="nexus0"
15hint.arge.0.maddr=0x19000000
16hint.arge.0.msize=0x1000
17hint.arge.0.irq=2
18# hint.arge.0.eeprommac=0x83fe9ff0
19hint.arge.0.phymask=0x10	# PHY 4
20# hint.arge.0.miimode=2		# MII
21hint.arge.0.mdio=mdioproxy1	# Hanging off the arswitch MDIO bus
22
23# arge1: connected to the LAN switch MAC, at 1000BaseTX / GMII.
24
25hint.arge.1.phymask=0x0
26# hint.arge.1.miimode=1		# GMII
27hint.arge.1.media=1000		# Force to 1000BaseTX/full
28hint.arge.1.fduplex=1
29
30#
31# AR7240 switch config
32#
33hint.arswitch.0.at="mdio0"
34hint.arswitch.0.is_7240=1	# We need to be explicitly told this
35hint.arswitch.0.numphys=4	# 4 active switch PHYs (PHY 0 -> 3)
36hint.arswitch.0.phy4cpu=1	# Yes, PHY 4 == dedicated PHY
37hint.arswitch.0.is_rgmii=0	# No, not RGMII
38hint.arswitch.0.is_gmii=0	# No, not GMII
39
40# ath0 hint - pcie slot 0
41hint.pcib.0.bus.0.0.0.ath_fixup_addr=0x1fff1000
42hint.pcib.0.bus.0.0.0.ath_fixup_size=4096
43
44# ath
45hint.ath.0.eeprom_firmware="pcib.0.bus.0.0.0.eeprom_firmware"
46
47# Signal leds
48hint.gpioled.0.at="gpiobus0"
49hint.gpioled.0.name="sig1"
50hint.gpioled.0.pins=0x0001	# pin 0
51hint.gpioled.1.at="gpiobus0"
52hint.gpioled.1.name="sig2"
53hint.gpioled.1.pins=0x0002	# pin 1
54hint.gpioled.2.at="gpiobus0"
55hint.gpioled.2.name="sig3"
56hint.gpioled.2.pins=0x0800	# pin 11
57hint.gpioled.3.at="gpiobus0"
58hint.gpioled.3.name="sig4"
59hint.gpioled.3.pins=0x0080	# pin 7
60
61# nvram mapping - XXX ?
62hint.nvram.0.base=0x1f030000
63hint.nvram.0.maxsize=0x2000
64hint.nvram.0.flags=3 # 1 = No check, 2 = Format Generic
65hint.nvram.1.base=0x1f032000
66hint.nvram.1.maxsize=0x4000
67hint.nvram.1.flags=3 # 1 = No check, 2 = Format Generic
68
69# GEOM_MAP
70#
71# From my AP91 environment:
72#
73# mtdparts=ar7240-nor0:256k(u-boot),64k(u-boot-env),2752k(rootfs),
74#    960k(uImage),64k(ART)
75
76hint.map.0.at="flash/spi0"
77hint.map.0.start=0x00000000
78hint.map.0.end=0x00040000	# 256k u-boot
79hint.map.0.name="u-boot"
80hint.map.0.readonly=1
81
82hint.map.1.at="flash/spi0"
83hint.map.1.start=0x00040000
84hint.map.1.end=0x00050000	# 64k u-boot-env
85hint.map.1.name="u-boot-env"
86hint.map.1.readonly=0
87
88hint.map.2.at="flash/spi0"
89hint.map.2.start=0x00050000
90hint.map.2.end=0x00300000	# 2752k rootfs
91hint.map.2.name="rootfs"
92hint.map.2.readonly=1
93
94hint.map.3.at="flash/spi0"
95hint.map.3.start=0x00300000
96hint.map.3.end=0x003f0000	# 896k uImage
97hint.map.3.name="uImage"
98hint.map.3.readonly=1
99
100hint.map.4.at="flash/spi0"
101hint.map.4.start=0x003f0000
102hint.map.4.end=0x00400000	# 64k ART
103hint.map.4.name="ART"
104hint.map.4.readonly=1
105