]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/mips/conf/TL-WDR4300.hints
Upgrade Unbound to 1.6.0. More to follow.
[FreeBSD/FreeBSD.git] / sys / mips / conf / TL-WDR4300.hints
1 # $FreeBSD$
2
3 # MAC/ART ? - they're 00:02:03:04:05:06 :(
4
5 # ath0 chain0 EXTERNAL_LNA0: 18
6 # ath0 chain1 EXTERNAL_LNA1: 19
7 # These are configured as GPIO output, init low, then
8 # set the GPIO 'type' AR934X_GPIO_OUT_EXT_LNA0/AR934X_GPIO_OUT_EXT_LNA1.
9
10 # XXX There's no arge1 on this!
11
12 # XXX RFKILL?
13
14 # mdiobus0 on arge0
15 hint.argemdio.0.at="nexus0"
16 hint.argemdio.0.maddr=0x19000000
17 hint.argemdio.0.msize=0x1000
18 hint.argemdio.0.order=0
19
20 # DB120 GMAC configuration
21 # + AR934X_ETH_CFG_RGMII_GMAC0              (1 << 0)
22 hint.ar934x_gmac.0.gmac_cfg=0x1
23
24 # Board mac address is at 0x1f01fc00.
25 # ath0: offset 0
26 # ath1: offset -1
27 # arge0: offset -2
28 # arge1: not hooked up; doesn't matter
29 hint.ar71xx.0.eeprom_mac_addr=0x1f01fc00
30 hint.ar71xx.0.eeprom_mac_isascii=0
31
32 hint.ar71xx_mac_map.0.devid=ath
33 hint.ar71xx_mac_map.0.unitid=0
34 hint.ar71xx_mac_map.0.offset=0
35 hint.ar71xx_mac_map.0.is_local=0
36
37 hint.ar71xx_mac_map.1.devid=ath
38 hint.ar71xx_mac_map.1.unitid=1
39 hint.ar71xx_mac_map.1.offset=-1
40 hint.ar71xx_mac_map.1.is_local=0
41
42 hint.ar71xx_mac_map.2.devid=arge
43 hint.ar71xx_mac_map.2.unitid=0
44 hint.ar71xx_mac_map.2.offset=-2
45 hint.ar71xx_mac_map.2.is_local=0
46
47 # GMAC0 here - connected to an AR8327
48 hint.arswitch.0.at="mdio0"
49 hint.arswitch.0.is_7240=0
50 hint.arswitch.0.is_9340=0       # not the internal switch!
51 hint.arswitch.0.numphys=5
52 hint.arswitch.0.phy4cpu=0
53 hint.arswitch.0.is_rgmii=0
54 hint.arswitch.0.is_gmii=0
55
56 # Other AR8327 configuration parameters
57
58 # AR8327_PAD_MAC_RGMII
59 hint.arswitch.0.pad.0.mode=6
60 hint.arswitch.0.pad.0.txclk_delay_en=1
61 hint.arswitch.0.pad.0.rxclk_delay_en=1
62 # AR8327_CLK_DELAY_SEL1
63 hint.arswitch.0.pad.0.txclk_delay_sel=1
64 # AR8327_CLK_DELAY_SEL2
65 hint.arswitch.0.pad.0.rxclk_delay_sel=2
66
67 # XXX there's no LED management just yet!
68 hint.arswitch.0.led.ctrl0=0xc737c737
69 hint.arswitch.0.led.ctrl1=0x00000000
70 hint.arswitch.0.led.ctrl2=0x00000000
71 hint.arswitch.0.led.ctrl3=0x0030c300
72 hint.arswitch.0.led.open_drain=0
73
74 # force_link=1 is required for the rest of the parameters
75 # to be configured.
76 hint.arswitch.0.port.0.force_link=1
77 hint.arswitch.0.port.0.speed=1000
78 hint.arswitch.0.port.0.duplex=1
79 hint.arswitch.0.port.0.txpause=1
80 hint.arswitch.0.port.0.rxpause=1
81
82 # XXX OpenWRT DB120 BSP doesn't have media/duplex set?
83 hint.arge.0.phymask=0x0
84 hint.arge.0.media=1000
85 hint.arge.0.fduplex=1
86 hint.arge.0.miimode=3           # RGMII
87 hint.arge.0.pll_1000=0x06000000
88
89 # mdiobus1 on arge1
90 hint.argemdio.1.at="nexus0"
91 hint.argemdio.1.maddr=0x1a000000
92 hint.argemdio.1.msize=0x1000
93 hint.argemdio.1.order=0
94
95 # Embedded switch on the AR9344
96 # mdio1 is actually created as the AR8327 internal bus; so
97 # this pops up as mdio2.
98 #
99 # XXX TODO: there's no need for AR9344 internal switch; it isn't exposed
100 hint.arswitch.1.at="mdio2"
101 hint.arswitch.1.is_7240=0
102 hint.arswitch.1.is_9340=1
103 hint.arswitch.1.numphys=5
104 hint.arswitch.1.phy4cpu=0       # phy 4 is not a "CPU port" PHY here
105 hint.arswitch.1.is_rgmii=0
106 hint.arswitch.1.is_gmii=1       # arge1 <-> switch PHY is GMII
107
108 # arge1 - lock up to 1000/full
109 hint.arge.1.phymask=0x0         # Nothing attached here (XXX?)
110 hint.arge.1.media=1000
111 hint.arge.1.fduplex=1
112 hint.arge.1.miimode=1           # GMII
113
114 # MAC for arge1 is the second 6 bytes of the ART
115 # hint.arge.1.eeprommac=0x1f7f0006
116
117 # ART calibration data mapping - for the AR934x AHB device
118 hint.ar71xx_caldata.0.at="nexus0"
119 hint.ar71xx_caldata.0.order=0
120 # Where the ART is - last 64k in the first 8MB of flash
121 hint.ar71xx_caldata.0.map.0.ath_fixup_addr=0x1fff0000
122 hint.ar71xx_caldata.0.map.0.ath_fixup_size=16384
123
124 # And now tell the ath(4) driver where to look!
125 hint.ath.0.eeprom_firmware="ar71xx_caldata.0.map.0.eeprom_firmware"
126
127 # ath1: it's different; it's a PCIe attached device, so
128 # we instead need to teach the PCIe bridge code about it
129 # (ie, the 'early pci fixup' stuff that programs the PCIe
130 # host registers on the NIC) and then we teach ath where
131 # to find it.
132
133 # ath1 hint - pcie slot 0
134 hint.pcib.0.bus.0.0.0.ath_fixup_addr=0x1fff4000
135 hint.pcib.0.bus.0.0.0.ath_fixup_size=16384
136
137 # ath0 - eeprom comes from here
138 hint.ath.1.eeprom_firmware="pcib.0.bus.0.0.0.eeprom_firmware"
139
140 # flash layout:
141 #
142 # bootargs=console=ttyS0,115200 root=31:02 rootfstype=jffs2 init=/sbin/init mtdparts=ath-nor0:256k(u-boot),64k(u-boot-env),6336k(rootfs),1408k(uImage),64k(mib0),64k(ART)
143
144 # 128KiB uboot
145 hint.map.0.at="flash/spi0"
146 hint.map.0.start=0x00000000
147 hint.map.0.end=0x00020000       # 128k u-boot
148 hint.map.0.name="u-boot"
149 hint.map.0.readonly=1
150
151 # kernel
152 hint.map.2.at="flash/spi0"
153 hint.map.2.start=0x00020000
154 hint.map.2.end="search:0x00020000:0x10000:.!/bin/sh"
155 hint.map.2.name="kernel"
156 hint.map.2.readonly=1
157
158 # 1344KiB uImage
159 hint.map.3.at="flash/spi0"
160 hint.map.3.start="search:0x00020000:0x10000:.!/bin/sh"
161 hint.map.3.end=0x007d0000
162 hint.map.3.name="rootfs"
163 hint.map.3.readonly=1
164
165 # 64KiB cfg
166 hint.map.4.at="flash/spi0"
167 hint.map.4.start=0x007d0000
168 hint.map.4.end=0x007e0000
169 hint.map.4.name="cfg"
170 hint.map.4.readonly=0
171
172 # 64KiB mib0
173 hint.map.5.at="flash/spi0"
174 hint.map.5.start=0x007e0000
175 hint.map.5.end=0x007f0000       # 64k mib0
176 hint.map.5.name="mib0"
177 hint.map.5.readonly=1
178
179 # 64KiB ART
180 hint.map.6.at="flash/spi0"
181 hint.map.6.start=0x007f0000
182 hint.map.6.end=0x00800000       # 64k ART
183 hint.map.6.name="ART"
184 hint.map.6.readonly=1
185
186 # GPIO configuration
187 # GPIO21 and GPIO22 - USB1 and USB2 power
188 # ath0 chain0 EXTERNAL_LNA0: 18, output
189 # ath0 chain1 EXTERNAL_LNA1: 19, output
190
191 # These are the GPIO LEDs and buttons which can be software controlled.
192 hint.gpio.0.pinmask=0x0063f800
193
194 # Enable GPIO21, GPIO22 output and high - for USB power
195 hint.gpio.0.pinon=0x00600000
196
197 hint.gpio.0.func.18.gpiofunc=46
198 hint.gpio.0.func.18.gpiomode=1  # output, default low
199
200 hint.gpio.0.func.19.gpiofunc=47
201 hint.gpio.0.func.19.gpiomode=1  # output, default low
202
203 # LED QSS - 15
204 # LED SYSTEM - 14
205 # LED USB1 - 11
206 # LED USB2 - 12
207 # LED WLAN2G - 13
208
209 # SWITCH WPS - 16
210 # SWITCH RFKILL - 17
211
212 hint.gpioled.0.at="gpiobus0"
213 hint.gpioled.0.name="USB1"
214 hint.gpioled.0.pins=0x0800
215 hint.gpioled.0.invert=1
216
217 hint.gpioled.1.at="gpiobus0"
218 hint.gpioled.1.name="USB2"
219 hint.gpioled.1.pins=0x1000
220 hint.gpioled.1.invert=1
221
222 hint.gpioled.2.at="gpiobus0"
223 hint.gpioled.2.name="WLAN2G"
224 hint.gpioled.2.pins=0x2000
225 hint.gpioled.2.invert=1
226
227 hint.gpioled.3.at="gpiobus0"
228 hint.gpioled.3.name="SYSTEM"
229 hint.gpioled.3.pins=0x4000
230 hint.gpioled.3.invert=1
231
232 hint.gpioled.4.at="gpiobus0"
233 hint.gpioled.4.name="QSS"
234 hint.gpioled.4.pins=0x8000
235 hint.gpioled.4.invert=1
236
237 # XXX TODO: WPS/RFKILL switch