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.
7 hint.argemdio.0.at="nexus0"
8 hint.argemdio.0.maddr=0x19000000
9 hint.argemdio.0.msize=0x1000
10 hint.argemdio.0.order=0
12 hint.arge.0.phymask=0x1
13 hint.arge.0.media=1000
15 hint.arge.0.eeprommac=0x1f05120c
16 hint.arge.0.mdio=mdioproxy1 # .. off of the switch mdiobus
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
25 # AR7240 switch config
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=1 # No, not RGMII
32 hint.arswitch.0.is_gmii=0 # No, not GMII
35 hint.pcib.0.bus.0.0.0.ath_fixup_addr=0x1f051000
36 hint.pcib.0.bus.0.0.0.ath_fixup_size=4096
38 # .. and now, telling each ath(4) NIC where to find the firmware
40 hint.ath.0.eeprom_firmware="pcib.0.bus.0.0.0.eeprom_firmware"
42 # Inherited from AR724X_BASE.hints
43 #hint.mx25l.0.at="spibus0"
45 # This board has two 16 MB flash devices on difference Chip Select pins
46 hint.mx25l.1.at="spibus0"
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.
55 # mtdparts=ar7240-nor0:
61 # 64k@8128k(properties)
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"
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"
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"
92 hint.map.2.at="flash/spi0"
93 hint.map.2.start=0x00050000
94 hint.map.2.end= 0x00060000 # 64k ART
98 hint.map.3.at="flash/spi0"
99 hint.map.3.start=0x00060000
100 hint.map.3.end= "search:0x00100000:0x10000:.!/bin/sh"
101 hint.map.3.name="kernel"
102 hint.map.3.readonly=1
104 hint.map.4.at="flash/spi0"
105 hint.map.4.start="search:0x00100000:0x10000:.!/bin/sh"
106 hint.map.4.end= 0x00FF0000
107 hint.map.4.name="rootfs"
108 hint.map.4.readonly=1
110 #hint.map.5.at="flash/spi1"
111 hint.map.5.at="flash/spi1"
112 hint.map.5.start=0x00FF0000
113 hint.map.5.end= 0x01000000
114 hint.map.5.name="cfg"
115 hint.map.5.readonly=0
117 # GPIO specific configuration block
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 */
134 # Pin 5 - USB (LED Blue)
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)
143 # Pin 14 - USB Power (turn on by default)
146 # Pin 17 - diag (LED red)
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
153 # These are the GPIO LEDs and buttons which can be software controlled.
154 hint.gpio.0.pinmask=0x000103D0
156 hint.gpio.0.pinon=0x00000000
158 hint.gpioiic.0.at="gpiobus0"
159 hint.gpioiic.0.pins=0x0003
163 # LEDs are configured separately and driven by the LED device
165 hint.gpioled.0.at="gpiobus0"
166 hint.gpioled.0.name="blue-usb"
167 hint.gpioled.0.pins=0x00000010
169 hint.gpioled.1.at="gpiobus0"
170 hint.gpioled.1.name="orange-security"
171 hint.gpioled.1.pins=0x00000040
173 hint.gpioled.2.at="gpiobus0"
174 hint.gpioled.2.name="green-router"
175 hint.gpioled.2.pins=0x00000080
177 hint.gpioled.3.at="gpiobus0"
178 hint.gpioled.3.name="blue-movie-engine-on"
179 hint.gpioled.3.pins=0x00000100
181 hint.gpioled.4.at="gpiobus0"
182 hint.gpioled.4.name="blue-movie-engine-off"
183 hint.gpioled.4.pins=0x00000200
185 hint.gpioled.5.at="gpiobus0"
186 hint.gpioled.5.name="red-diag"
187 hint.gpioled.5.pins=0x00010000