aboutsummaryrefslogtreecommitdiff
path: root/sys/mips/conf/AP93.hints
blob: 1e8f0ce7d842ddeb7fdd9fce836e2667744fd711 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
# $FreeBSD$

hint.apb.0.at="nexus0"
hint.apb.0.irq=4

# uart0
hint.uart.0.at="apb0"
# see atheros/uart_cpu_ar71xx.c why +3
hint.uart.0.maddr=0x18020003
hint.uart.0.msize=0x18
hint.uart.0.irq=3

# arge0 MDIO bus
hint.argemdio.0.at="nexus0"
hint.argemdio.0.maddr=0x19000000
hint.argemdio.0.msize=0x1000
hint.argemdio.0.order=0

# arge1 MDIO bus doesn't exist on the AR7240

# arge0: MII; dedicated PHY 4 on switch, connected via internal switch
# MDIO bus.

hint.arge.0.at="nexus0"
hint.arge.0.maddr=0x19000000
hint.arge.0.msize=0x1000
hint.arge.0.irq=2
# hint.arge.0.eeprommac=0x83fe9ff0
hint.arge.0.phymask=0x10	# PHY 4
# hint.arge.0.miimode=2		# MII
hint.arge.0.mdio=mdioproxy1	# Hanging off the arswitch MDIO bus

# arge1: connected to the LAN switch MAC, at 1000BaseTX / GMII.
hint.arge.1.at="nexus0"
hint.arge.1.maddr=0x1A000000
hint.arge.1.msize=0x1000
hint.arge.1.irq=3

hint.arge.1.phymask=0x0
# hint.arge.1.miimode=1		# GMII
hint.arge.1.media=1000		# Force to 1000BaseTX/full
hint.arge.1.fduplex=1

# AR7240 switch config
#
# XXX TODO - have the AR7240 switch auto-detect correctly?
# XXX It detects as an AR8216, which isn't strictly true!
#
hint.arswitch.0.numphys=4	# 4 active switch PHYs (PHY 0 -> 3)
hint.arswitch.0.phy4cpu=1	# Yes, PHY 4 == dedicated PHY
hint.arswitch.0.is_rgmii=0	# No, not RGMII
hint.arswitch.0.is_gmii=0	# No, not GMII

# ath0 hint - pcie slot 0
hint.pcib.0.bus.0.0.0.ath_fixup_addr=0x1fff1000
hint.pcib.0.bus.0.0.0.ath_fixup_size=4096

# ehci - note the 0x100 offset for the AR913x/AR724x
hint.ehci.0.at="nexus0"
hint.ehci.0.maddr=0x1b000100
hint.ehci.0.msize=0x00ffff00
hint.ehci.0.irq=1

# pci
hint.pcib.0.at="nexus0"
hint.pcib.0.irq=0

# ath
hint.ath.0.eeprom_firmware="pcib.0.bus.0.0.0.eeprom_firmware"

# GPIO
hint.gpio.0.at="apb0"
hint.gpio.0.maddr=0x18040000
hint.gpio.0.msize=0x1000
hint.gpio.0.irq=2

# Signal leds
hint.gpioled.0.at="gpiobus0"
hint.gpioled.0.name="sig1"
hint.gpioled.0.pins=0x0001	# pin 0
hint.gpioled.1.at="gpiobus0"
hint.gpioled.1.name="sig2"
hint.gpioled.1.pins=0x0002	# pin 1
hint.gpioled.2.at="gpiobus0"
hint.gpioled.2.name="sig3"
hint.gpioled.2.pins=0x0800	# pin 11
hint.gpioled.3.at="gpiobus0"
hint.gpioled.3.name="sig4"
hint.gpioled.3.pins=0x0080	# pin 7

# SPI controller/bus
hint.spi.0.at="nexus0"
hint.spi.0.maddr=0x1f000000
hint.spi.0.msize=0x10

# SPI flash
hint.mx25l.0.at="spibus0"
hint.mx25l.0.cs=0

# Watchdog
hint.ar71xx_wdog.0.at="nexus0"

# nvram mapping - XXX ?
hint.nvram.0.base=0x1f030000
hint.nvram.0.maxsize=0x2000
hint.nvram.0.flags=3 # 1 = No check, 2 = Format Generic
hint.nvram.1.base=0x1f032000
hint.nvram.1.maxsize=0x4000
hint.nvram.1.flags=3 # 1 = No check, 2 = Format Generic

# GEOM_MAP
#
# From my AP93 environment:
#
# 256k - uboot
# 256k - uboot-env
# 3072k - spare-rootfs
# 1024k - spare-uImage
# 3072k - rootfs
# 1024k - uImage
# 64k - mib0
# 64k - mib1
# 4096k - ct
# 3392k - var
# 64k - ART

# To make it useful for FreeBSD for now, treat spare rootfs, spare
# uimage and rootfs as 'rootfs'.

hint.map.0.at="flash/spi0"
hint.map.0.start=0x00000000
hint.map.0.end=0x00040000
hint.map.0.name="uboot"
hint.map.0.readonly=1

hint.map.1.at="flash/spi0"
hint.map.1.start=0x00040000
hint.map.1.end=0x00080000
hint.map.1.name="uboot-env"
hint.map.1.readonly=1

hint.map.2.at="flash/spi0"
hint.map.2.start=0x00080000
# hint.map.2.end=0x00380000
hint.map.2.end=0x00780000
# hint.map.2.name="spare-rootfs"
hint.map.2.name="rootfs"
hint.map.2.readonly=1

#hint.map.3.at="flash/spi0"
#hint.map.3.start=0x00380000
#hint.map.3.end=0x00480000
#hint.map.3.name="spare-uImage"
#hint.map.3.readonly=1

#hint.map.4.at="flash/spi0"
#hint.map.4.start=0x00480000
#hint.map.4.end=0x00780000
#hint.map.4.name="rootfs"
#hint.map.4.readonly=1

hint.map.3.at="flash/spi0"
hint.map.3.start=0x00780000
hint.map.3.end=0x00880000
hint.map.3.name="uImage"
hint.map.3.readonly=1

hint.map.4.at="flash/spi0"
hint.map.4.start=0x00880000
hint.map.4.end=0x00890000
hint.map.4.name="mib0"
hint.map.4.readonly=1

hint.map.5.at="flash/spi0"
hint.map.5.start=0x00890000
hint.map.5.end=0x008a0000
hint.map.5.name="mib1"
hint.map.5.readonly=1

hint.map.6.at="flash/spi0"
hint.map.6.start=0x008a0000
hint.map.6.end=0x00ca0000
hint.map.6.name="ct"
hint.map.6.readonly=1

hint.map.7.at="flash/spi0"
hint.map.7.start=0x00ca0000
hint.map.7.end=0x00ff0000
hint.map.7.name="var"
hint.map.7.readonly=1

hint.map.8.at="flash/spi0"
hint.map.8.start=0x00ff0000
hint.map.8.end=0x01000000	# 64k ART
hint.map.8.name="ART"
hint.map.8.readonly=1