]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/mips/conf/WZR-HPAG300H.hints
Assign argemdio0 to the correct base address and assign argemdio1 to its
[FreeBSD/FreeBSD.git] / sys / mips / conf / WZR-HPAG300H.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=0x19000000
9 hint.argemdio.0.msize=0x1000
10 hint.argemdio.0.order=0
11
12 hint.argemdio.1.at="nexus0"
13 hint.argemdio.1.maddr=0x1a000000
14 hint.argemdio.1.msize=0x1000
15 hint.argemdio.1.order=0
16
17 hint.arge.0.phymask=0x0
18 hint.arge.0.media=1000
19 hint.arge.0.fduplex=1
20 hint.arge.0.eeprommac=0x1f05120c
21 hint.arge.0.mdio=mdioproxy0     # .. off of the switch mdiobus
22 hint.arge.0.miimode=3 
23
24 hint.arge.1.phymask=0x10
25 hint.arge.1.media=1000
26 hint.arge.1.fduplex=1
27 hint.arge.1.eeprommac=0x1f05520c
28 hint.arge.1.mdio=mdioproxy1     # .. off of the switch mdiobus
29 hint.arge.1.miimode=3 
30
31 #
32 # AR8317 switch config
33 #
34 hint.arswitch.0.at="mdio0"
35 hint.arswitch.0.is_7240=0       # We need to be explicitly told this
36 hint.arswitch.0.numphys=4       # 5 active switch PHYs (PHY 0 -> 4)
37 hint.arswitch.0.phy4cpu=1       # No, PHY 4 == dedicated PHY
38 hint.arswitch.0.is_rgmii=1      # Yes, is RGMII
39 hint.arswitch.0.is_gmii=0       # No, not GMII
40
41 # ath0 - slot 17
42 hint.pcib.0.bus.0.17.0.ath_fixup_addr=0x1f051000
43 hint.pcib.0.bus.0.17.0.ath_fixup_size=4096
44
45 # ath1 - slot 18
46 hint.pcib.0.bus.0.18.0.ath_fixup_addr=0x1f055000
47 hint.pcib.0.bus.0.18.0.ath_fixup_size=4096
48 # .. and now, telling each ath(4) NIC where to find the firmware
49 # image.
50 hint.ath.0.eeprom_firmware="pcib.0.bus.0.17.0.eeprom_firmware"
51 hint.ath.1.eeprom_firmware="pcib.0.bus.0.18.0.eeprom_firmware"
52
53 # Inherited from AR71XX_BASE.hints
54 #hint.mx25l.0.at="spibus0"
55 #hint.mx25l.0.cs=0
56 # This board has two 16 MB flash devices on difference Chip Select pins
57 hint.mx25l.1.at="spibus0"
58 hint.mx25l.1.cs=1
59
60
61 # Geom MAP
62
63 hint.map.0.at="flash/spi0"
64 hint.map.0.start=0x00000000
65 hint.map.0.end=0x00040000
66 hint.map.0.name="uboot"
67 hint.map.0.readonly=1
68
69 hint.map.1.at="flash/spi0"
70 hint.map.1.start=0x00040000
71 hint.map.1.end=0x00050000
72 hint.map.1.name="u-boot-env"
73 hint.map.1.readonly=1
74
75 hint.map.2.at="flash/spi0"
76 hint.map.2.start=0x00050000
77 hint.map.2.end=0x00060000
78 hint.map.2.name="ART"
79 hint.map.2.readonly=1
80
81 # requires a 1M alignment and padding in the image.
82 # make sure you are using conv=sync and bs=1M in your dd
83 hint.map.3.at="flash/spi0"
84 hint.map.3.start=0x00060000
85 hint.map.3.end="search:0x00160000:0x100000:.!/bin/sh"
86 hint.map.3.name="kernel"
87 hint.map.3.readonly=1
88
89 hint.map.4.at="flash/spi0"
90 hint.map.4.start="search:0x00160000:0x100000:.!/bin/sh"
91 hint.map.4.end=0x01000000
92 hint.map.4.name="rootfs"
93 hint.map.4.readonly=1
94
95 hint.map.5.at="flash/spi1"
96 hint.map.5.start=0x00FF0000
97 hint.map.5.end=0x01000000
98 hint.map.5.name="cfg"
99 hint.map.5.readonly=0
100
101 # Pin 1  - SCK
102 # Pin 2  - SDA
103 # Pin 3  - usb 
104 # Pin 4  - 
105 # Pin 5  - aoss
106 # Pin 6  - router auto
107 # Pin 7  - router off
108 # Pin 8  - movie engine
109 # Pin 9  - 
110 # Pin 10 - 
111 # Pin 11 - reset button
112 # Pin 12 - CS0
113 # Pin 13 - CS1
114 # Pin 14 - 
115 # Pin 15 - 
116 # Pin 16 - 
117 # Pin 17 - 
118
119 # Don't flip on anything that isn't already enabled.
120 # Force on CS lines for flash devices, apparently this isn't done
121 # by uboot in normal booting.  No idea why. 
122 hint.gpio.0.function_set=0x00003004
123 hint.gpio.0.function_clear=0x00000000
124
125 # These are the GPIO LEDs and buttons which can be software controlled.
126 hint.gpio.0.pinmask=0x0001
127
128 hint.gpio.0.pinon=0x00000004
129
130 hint.gpioiic.0.at="gpiobus0"
131 #hint.gpioiic.0.pins=0x0003
132 hint.gpioiic.0.sda=0
133 hint.gpioiic.0.scl=1
134
135 # LEDs are configured separately and driven by the LED device
136 hint.gpioled.0.at="gpiobus0"
137 hint.gpioled.0.name="red-diag"
138 hint.gpioled.0.pins=0x0001