]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/mips/conf/DIR-825B1.hints
Add support for extended descriptor format to Altera mSGDMA driver.
[FreeBSD/FreeBSD.git] / sys / mips / conf / DIR-825B1.hints
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
6 hint.arge.0.phymask=0x0
7 hint.arge.0.media=1000
8 hint.arge.0.fduplex=1
9 hint.arge.0.eeprommac=0x1f66ffa0
10 hint.arge.0.readascii=1
11
12 hint.arge.1.phymask=0x0
13 hint.arge.1.media=1000
14 hint.arge.1.fduplex=1
15 hint.arge.1.eeprommac=0x1f66ffb4
16 hint.arge.1.readascii=1
17
18 # ath0 - slot 17
19 hint.pcib.0.bus.0.17.0.ath_fixup_addr=0x1f661000
20 hint.pcib.0.bus.0.17.0.ath_fixup_size=4096
21
22 # ath1 - slot 18
23 hint.pcib.0.bus.0.18.0.ath_fixup_addr=0x1f665000
24 hint.pcib.0.bus.0.18.0.ath_fixup_size=4096
25
26 # .. and now, telling each ath(4) NIC where to find the firmware
27 # image.
28 hint.ath.0.eeprom_firmware="pcib.0.bus.0.17.0.eeprom_firmware"
29 hint.ath.1.eeprom_firmware="pcib.0.bus.0.18.0.eeprom_firmware"
30
31 # Geom MAP
32
33 # The DIR-825B1 has an 8MB flash part - HOWEVER, the 64k caldata isn't
34 # at the end of the flash. It's ~ 6MB into the flash image.
35
36 # mtdparts=ar7100-nor0:256k(uboot),64k(Config),1024k(vmlinux),5184k(rootfs),
37 #          64k(caldata)
38
39 hint.map.0.at="flash/spi0"
40 hint.map.0.start=0x00000000
41 hint.map.0.end=0x000040000
42 hint.map.0.name="uboot"
43 hint.map.0.readonly=1
44
45 # This config partition is the D-Link specific configuration area.
46 # I'm re-purposing it for FreeBSD.
47 hint.map.1.at="flash/spi0"
48 hint.map.1.start=0x00040000
49 hint.map.1.end=0x00050000
50 hint.map.1.name="cfg"
51 hint.map.1.readonly=0
52
53 hint.map.2.at="flash/spi0"
54 hint.map.2.start=0x0050000
55 hint.map.2.end="search:0x00050000:0x10000:.!/bin/sh"
56 hint.map.2.name="kernel"
57 hint.map.2.readonly=1
58
59 hint.map.3.at="flash/spi0"
60 hint.map.3.start="search:0x00050000:0x10000:.!/bin/sh"
61 hint.map.3.end=0x00660000
62 hint.map.3.name="rootfs"
63 hint.map.3.readonly=0
64
65 hint.map.4.at="flash/spi0"
66 hint.map.4.start=0x00660000
67 hint.map.4.end=0x00670000
68 hint.map.4.name="art"
69 hint.map.4.readonly=1
70
71 # GPIO specific configuration block
72
73 # Don't flip on anything that isn't already enabled.
74 # This includes leaving the SPI CS1/CS2 pins as GPIO pins as they're
75 # not used here.
76 hint.gpio.0.function_set=0x00000000
77
78 hint.gpio.0.function_clear=0x00000000
79
80 # These are the GPIO LEDs and buttons which can be software controlled.
81 hint.gpio.0.pinmask=0x000009ff
82
83 # Pin 1  - USB (LED blue)     --> works
84 # Pin 2  - Power (LED orange) --> works
85 # Pin 3  - Power (LED blue)   --> works
86 # Pin 4  - Button (RESET)     --> works
87 # Pin 5  - WPS (LED blue)     --> works
88 # Pin 6  - RTL8366RB switch data line
89 # Pin 7  - Planet (LED orange)--> works
90 # Pin 8  - RTL8366RB switch clock line
91 # Pin 9  - Button (WPS)       --> works after set to high
92 # Pin 10 - N/C
93 # Pin 11 - N/C
94 # Pin 12 - Planet (LED blue)  --> works
95
96 # LEDs are configured separately and driven by the LED device
97 # usb tested good
98 hint.gpioled.0.at="gpiobus0"
99 hint.gpioled.0.name="usb-blue"
100 hint.gpioled.0.pins=0x0001
101
102 # no orange power led?
103 hint.gpioled.1.at="gpiobus0"
104 hint.gpioled.1.name="power-orange"
105 hint.gpioled.1.pins=0x0002
106
107 # blue power tested good
108 hint.gpioled.2.at="gpiobus0"
109 hint.gpioled.2.name="power-blue"
110 hint.gpioled.2.pins=0x0004
111
112 # wps tested good
113 hint.gpioled.3.at="gpiobus0"
114 hint.gpioled.3.name="wps-blue"
115 hint.gpioled.3.pins=0x0010
116
117 # orage globe tested good
118 hint.gpioled.4.at="gpiobus0"
119 hint.gpioled.4.name="planet-orange"
120 hint.gpioled.4.pins=0x0040
121
122 # no blue planet LED on this unit
123 hint.gpioled.5.at="gpiobus0"
124 hint.gpioled.5.name="planet-blue"
125 hint.gpioled.5.pins=0x0800
126
127 # GPIO I2C bus
128 hint.gpioiic.0.at="gpiobus0"
129 hint.gpioiic.0.pins=0x00a0
130 hint.gpioiic.0.sda=0
131 hint.gpioiic.0.scl=1
132
133 # I2C bus
134 # Don't be strict about I2C protocol - the relaxed semantics are required
135 # by the realtek switch PHY.
136 hint.iicbus.0.strict=0
137
138 # Bit bang bus - override default delay
139 #hint.iicbb.0.udelay=3
140