]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - sys/mips/conf/WZR-300HP.hints
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.git] / sys / mips / conf / WZR-300HP.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 # arge1 MDIO bus
7 hint.argemdio.0.at="nexus0"
8 hint.argemdio.0.maddr=0x1a000000
9 hint.argemdio.0.msize=0x1000
10 hint.argemdio.0.order=0
11
12 hint.arge.0.phymask=0x0
13 hint.arge.0.media=1000
14 hint.arge.0.fduplex=1
15 hint.arge.0.eeprommac=0x1f05120c
16 hint.arge.0.mdio=mdioproxy1     # .. off of the switch mdiobus
17
18
19 # arge1: nail to 1000/full, RMII - connected to the switch
20 hint.arge.1.media=1000          # Map to 1000/full
21 hint.arge.1.fduplex=1           #
22 hint.arge.1.phymask=0x0         # no directly mapped PHYs
23
24 #
25 # AR7240 switch config
26 #
27 hint.arswitch.0.at="mdio0"
28 hint.arswitch.0.is_7240=1       # We need to be explicitly told this
29 hint.arswitch.0.numphys=4       # 4 active switch PHYs (PHY 0 -> 3)
30 hint.arswitch.0.phy4cpu=1       # Yes, PHY 4 == dedicated PHY
31 hint.arswitch.0.is_rgmii=0      # No, not RGMII
32 hint.arswitch.0.is_gmii=0       # No, not GMII
33
34 # ath0 - slot 0
35 hint.pcib.0.bus.0.0.0.ath_fixup_addr=0x1f051000
36 hint.pcib.0.bus.0.0.0.ath_fixup_size=4096
37
38 # .. and now, telling each ath(4) NIC where to find the firmware
39 # image.
40 hint.ath.0.eeprom_firmware="pcib.0.bus.0.0.0.eeprom_firmware"
41
42 # Inherited from AR724X_BASE.hints
43 #hint.mx25l.0.at="spibus0"
44 #hint.mx25l.0.cs=0
45 # This board has two 16 MB flash devices on difference Chip Select pins
46 hint.mx25l.1.at="spibus0"
47 hint.mx25l.1.cs=1
48
49
50 # Geom MAP
51
52 # The WRZ-300HP has 2 16MB flash part - HOWEVER, the 64k caldata isn't
53 # at the end of the flash. It's ~ 328KB into the flash image.
54
55 # mtdparts=ar7240-nor0:
56 #  256k(u-boot)
57 #   64k(u-boot-env)
58 #   64k@320k(ART)
59 # 1152k@384k(uImage)
60 # 6592k@1536k(rootfs)
61 #   64k@8128k(properties)
62
63 # Uboot lies like a lying liar.  OpenWRT does this:
64 # [    0.570000] Concatenating MTD devices:
65 # [    0.570000] (0): "spi0.0"
66 # [    0.570000] (1): "spi0.1"
67 # [    0.580000] into device "flash"
68 # [    0.580000] Creating 7 MTD partitions on "flash":
69 # [    0.590000] 0x000000000000-0x000000040000 : "u-boot"
70 # [    0.600000] 0x000000040000-0x000000050000 : "u-boot-env"
71 # [    0.600000] 0x000000050000-0x000000060000 : "art"
72 # [    0.610000] 0x000000060000-0x000000160000 : "kernel"
73 # [    0.620000] 0x000000160000-0x000001ff0000 : "rootfs"
74 # [    0.620000] mtd: partition "rootfs" set to be root filesystem
75 # [    0.630000] mtd: partition "rootfs_data" created automatically, ofs=330000, len=1CC0000 
76 # [    0.640000] 0x000000330000-0x000001ff0000 : "rootfs_data"
77 # [    0.650000] 0x000001ff0000-0x000002000000 : "user_property"
78 # [    0.650000] 0x000000060000-0x000001ff0000 : "firmware"
79
80 hint.map.0.at="flash/spi0"
81 hint.map.0.start=0x00000000
82 hint.map.0.end=  0x00040000
83 hint.map.0.name="uboot"
84 hint.map.0.readonly=1
85
86 hint.map.1.at="flash/spi0"
87 hint.map.1.start=0x00040000
88 hint.map.1.end=  0x00050000       # 64k u-boot-env
89 hint.map.1.name="u-boot-env"
90 hint.map.1.readonly=1
91
92 hint.map.2.at="flash/spi0"
93 hint.map.2.start=0x00050000
94 hint.map.2.end=  0x00060000       # 64k ART
95 hint.map.2.name="ART"
96 hint.map.2.readonly=1
97
98 hint.map.3.at="flash/spi0"
99 hint.map.3.start=0x00060000
100 hint.map.3.end=  0x00160000
101 hint.map.3.name="kernel"
102 hint.map.3.readonly=1
103
104 hint.map.4.at="flash/spi0"
105 hint.map.4.start=0x00160000
106 hint.map.4.end=  0x00FF0000
107 hint.map.4.name="rootfs"
108 hint.map.4.readonly=1
109
110 #hint.map.5.at="flash/spi1"
111 hint.map.5.at="flash/spi0"
112 hint.map.5.start=0x00FF0000
113 hint.map.5.end=  0x01000000
114 hint.map.5.name="cfg"
115 hint.map.5.readonly=0
116
117 # GPIO specific configuration block
118
119 #define GPIO_PIN_INPUT          0x0001  /* input direction */
120 #define GPIO_PIN_OUTPUT         0x0002  /* output direction */
121 #define GPIO_PIN_OPENDRAIN      0x0004  /* open-drain output */
122 #define GPIO_PIN_PUSHPULL       0x0008  /* push-pull output */
123 #define GPIO_PIN_TRISTATE       0x0010  /* output disabled */
124 #define GPIO_PIN_PULLUP         0x0020  /* internal pull-up enabled */
125 #define GPIO_PIN_PULLDOWN       0x0040  /* internal pull-down enabled */
126 #define GPIO_PIN_INVIN          0x0080  /* invert input */
127 #define GPIO_PIN_INVOUT         0x0100  /* invert output */
128 #define GPIO_PIN_PULSATE        0x0200  /* pulsate in hardware */
129   
130 # Pin 1  - SCK
131 # Pin 2  - SDA
132 # Pin 3  - test 2
133 # Pin 4  - test 3
134 # Pin 5  - USB (LED Blue)
135 # Pin 6  - test a
136 # Pin 7  - Security (LED Orange)
137 # Pin 8  - Router (LED Green)
138 # Pin 9  - Movie Engine On (LED Blue)
139 # Pin 10 - Movie Engine Off (LED Blue)
140 # Pin 11 - test a
141 # Pin 12 - test a
142 # Pin 13 - test a
143 # Pin 14 - USB Power (turn on by default)
144 # Pin 15 - test a
145 # Pin 16 - test a
146 # Pin 17 - diag (LED red)
147
148 # Don't flip on anything that isn't already enabled.
149 # Force on USB power pin 14
150 #hint.gpio.0.function_set=0x00000000
151 #hint.gpio.0.function_clear=0x00000000
152
153 # These are the GPIO LEDs and buttons which can be software controlled.
154 hint.gpio.0.pinmask=0x000103D0
155
156 hint.gpio.0.pinon=0x00000000
157
158 hint.gpioiic.0.at="gpiobus0"
159 hint.gpioiic.0.pins=0x0003
160 hint.gpioiic.0.sda=0
161 hint.gpioiic.0.scl=1
162
163 # LEDs are configured separately and driven by the LED device
164 # usb tested good
165 hint.gpioled.0.at="gpiobus0"
166 hint.gpioled.0.name="blue-usb"
167 hint.gpioled.0.pins=0x00000010
168
169 hint.gpioled.1.at="gpiobus0"
170 hint.gpioled.1.name="orange-security"
171 hint.gpioled.1.pins=0x00000040
172
173 hint.gpioled.2.at="gpiobus0"
174 hint.gpioled.2.name="green-router"
175 hint.gpioled.2.pins=0x00000080
176
177 hint.gpioled.3.at="gpiobus0"
178 hint.gpioled.3.name="blue-movie-engine-on"
179 hint.gpioled.3.pins=0x00000100
180
181 hint.gpioled.4.at="gpiobus0"
182 hint.gpioled.4.name="blue-movie-engine-off"
183 hint.gpioled.4.pins=0x00000200
184
185 hint.gpioled.5.at="gpiobus0"
186 hint.gpioled.5.name="red-diag"
187 hint.gpioled.5.pins=0x00010000