1# $FreeBSD: head/sys/mips/conf/RT305X.hints 220297 2011-04-03 14:39:55Z adrian $
| 1# $FreeBSD: head/sys/mips/conf/RT305X.hints 224005 2011-07-14 10:05:28Z ray $
|
2# device.hints 3hint.obio.0.at="nexus0" 4hint.obio.0.maddr=0x10000000 5hint.obio.0.msize=0x10000000 6
| 2# device.hints 3hint.obio.0.at="nexus0" 4hint.obio.0.maddr=0x10000000 5hint.obio.0.msize=0x10000000 6
|
7hint.nvram.0.sig=0xe5e60a74
| 7# on-board Ralink Frame Engine 8hint.rt.0.at="nexus0" 9hint.rt.0.maddr=0x10100000 10hint.rt.0.msize=0x10000 11hint.rt.0.irq=3 12 13# UART Light 14hint.uart.1.flags="0x30" 15 16# Lines below is Board specific 17# D-Link DIR-620
|
8hint.nvram.0.base=0x1f030000 9hint.nvram.0.maxsize=0x2000
| 18hint.nvram.0.base=0x1f030000 19hint.nvram.0.maxsize=0x2000
|
10hint.nvram.0.flags=3 # 1 = No check, 2 = Format Generic 11hint.nvram.1.sig=0x5a045e94
| 20hint.nvram.0.flags=9 # 1 = No check, 2 = Format U-Boot
|
12hint.nvram.1.base=0x1f032000 13hint.nvram.1.maxsize=0x4000
| 21hint.nvram.1.base=0x1f032000 22hint.nvram.1.maxsize=0x4000
|
14hint.nvram.1.flags=3 # 1 = No check, 2 = Format Generic
| 23hint.nvram.1.flags=9 # 1 = No check, 2 = Format U-Boot
|
15
| 24
|
16# on-board Ralink Frame Engine 17#hint.rt.0.at="nexus0" 18#hint.rt.0.maddr=0x12000000 19#hint.rt.0.msize=0x200000 20#hint.rt.0.irq=9 21hint.rt.0.macaddr="00:18:e7:d5:83:90"
| 25# Configure SYSCTL_GPIOMODE to pass FUART pins to GPIO 26# original: 27# hint.rt305x_sysctl.0.gpiomode=0x000283 28# required: 29hint.rt305x_sysctl.0.gpiomode=0x00029f
|
22
| 30
|
23# on-board Ralink 2872 802.11n core 24hint.rt2860.0.at="nexus0" 25hint.rt2860.0.maddr=0x10180000 26hint.rt2860.0.msize=0x40000 27hint.rt2860.0.irq=4
| 31# gpio
|
28
| 32
|
29# uart0 30#hint.uart.0.at="obio0" 31#hint.uart.0.maddr=0x10000C00 32#hint.uart.0.msize=0x100 33#hint.uart.0.irq=12 34#hint.uart.0.flags="0x30"
| 33# Buttons 34# GPIO10 - Reset BTN IN PU II INT 35hint.gpioreset.0.at="gpiobus0" 36hint.gpioreset.0.pins="0x0400" 37hint.gpioreset.0.name="reset" 38hint.gpioreset.0.flags="0x04a1" # (INPUT|PULLUP|INVIN|REPORT)
|
35
| 39
|
36# uart1 37#hint.uart.1.at="obio0" 38#hint.uart.1.maddr=0x10000500 39#hint.uart.1.msize=0x100 40#hint.uart.1.irq=5 41#hint.uart.1.flags="0x30" 42 43 44# gpio 45# GPIO0 - WPS BTN IN II IO
| 40## GPIO0 - WPS BTN IN PU II INT
|
46hint.gpiobutton.0.at="gpiobus0" 47hint.gpiobutton.0.pins="0x01" 48hint.gpiobutton.0.name="wps"
| 41hint.gpiobutton.0.at="gpiobus0" 42hint.gpiobutton.0.pins="0x01" 43hint.gpiobutton.0.name="wps"
|
49hint.gpiobutton.0.flags="0x0581"
| 44hint.gpiobutton.0.flags="0x04a1" # (INPUT|PULLUP|INVIN|REPORT)
|
50
| 45
|
51# GPIO7 - MODE SW AP IN II IO 52hint.gpiobutton.1.at="gpiobus0" 53hint.gpiobutton.1.pins="0x80" 54hint.gpiobutton.1.name="mode_ap" 55hint.gpiobutton.1.flags="0x0581" 56 57# GPIO8 - ST LEDRED OUT /* 2pin BiDir RED/BLUE LED */ 58# GPIO9 - ST LEDBLUE OUT
| 46# LEDs 47# Power Yellow 8 48# Power Green 9 49# WAN Green 12 50# WAN Yellow 14 51# WPS Orange 11 52# WPS Blue 13 53#GPIO8 STATUS ?
|
59hint.gpioled.0.at="gpiobus0"
| 54hint.gpioled.0.at="gpiobus0"
|
60hint.gpioled.0.pins="0x100" 61hint.gpioled.0.name="status_red" 62hint.gpioled.0.flags="0x0002"
| 55hint.gpioled.0.pins="0x0100" 56hint.gpioled.0.name="status_yellow" 57hint.gpioled.0.flags="0x0102" # (OUTPUT|INVOUT) 58 59#GPIO9 STATUS
|
63hint.gpioled.1.at="gpiobus0"
| 60hint.gpioled.1.at="gpiobus0"
|
64hint.gpioled.1.pins="0x200" 65#hint.gpioled.1.name="status_blue"
| 61hint.gpioled.1.pins="0x0200"
|
66hint.gpioled.1.name="status"
| 62hint.gpioled.1.name="status"
|
67hint.gpioled.1.flags="0x0002"
| 63hint.gpioled.1.flags="0x0102" # (OUTPUT|INVOUT)
|
68
| 64
|
69# GPIO10 - RST BTN IN II IO 70hint.gpiobutton.2.at="gpiobus0" 71hint.gpiobutton.2.pins="0x400" 72hint.gpiobutton.2.name="reset" 73hint.gpiobutton.2.flags="0x0581"
| 65#GPIO11 WPS Orange 66hint.gpioled.2.at="gpiobus0" 67hint.gpioled.2.pins="0x0800" 68hint.gpioled.2.name="wps_orange" 69hint.gpioled.2.flags="0x0002" # (OUTPUT|INVOUT)
|
74
| 70
|
75# GPIO11 - MODE SW CL IN II IO 76hint.gpiobutton.3.at="gpiobus0" 77hint.gpiobutton.3.pins="0x800" 78hint.gpiobutton.3.name="mode_wlan_client" 79hint.gpiobutton.3.flags="0x0581"
| 71#GPIO12 WAN Green 72hint.gpioled.3.at="gpiobus0" 73hint.gpioled.3.pins="0x1000" 74hint.gpioled.3.name="wan" 75hint.gpioled.3.flags="0x0102" # (OUTPUT|INVOUT)
|
80
| 76
|
81# GPIO14 - WPS LED OUT II IO 82hint.gpioled.2.at="gpiobus0" 83hint.gpioled.2.pins="0x4000" 84hint.gpioled.2.name="wps" 85hint.gpioled.2.flags="0x0182"
| 77#GPIO13 WPS Blue 78hint.gpioled.4.at="gpiobus0" 79hint.gpioled.4.pins="0x2000" 80hint.gpioled.4.name="wps" 81hint.gpioled.4.flags="0x0002" # (OUTPUT|INVOUT)
|
86
| 82
|
| 83#GPIO14 WAN Yellow 84hint.gpioled.5.at="gpiobus0" 85hint.gpioled.5.pins="0x4000" 86hint.gpioled.5.name="wan_yellow" 87hint.gpioled.5.flags="0x0102" # (OUTPUT|INVOUT)
|
87
| 88
|
| 89hint.cfi.0.width=2 90hint.cfi.0.shift=2
|
88 89#0x00000000-0x00030000 : "Bootloader" 90#0x00030000-0x00040000 : "Factory" 91#0x00040000-0x00070000 : "Config" 92#0x00070000-0x000b0000 : "Language" 93#0x000b0000-0x001a0000 : "Kernel" 94#0x001a0000-0x01000000 : "RootFS" 95 96hint.map.0.at="cfid0" 97hint.map.0.start=0x00000000 98hint.map.0.end=0x00030000 99hint.map.0.name="bootloader" 100hint.map.0.readonly=1 101 102hint.map.1.at="cfid0" 103hint.map.1.start=0x00030000 104hint.map.1.end=0x00040000
| 91 92#0x00000000-0x00030000 : "Bootloader" 93#0x00030000-0x00040000 : "Factory" 94#0x00040000-0x00070000 : "Config" 95#0x00070000-0x000b0000 : "Language" 96#0x000b0000-0x001a0000 : "Kernel" 97#0x001a0000-0x01000000 : "RootFS" 98 99hint.map.0.at="cfid0" 100hint.map.0.start=0x00000000 101hint.map.0.end=0x00030000 102hint.map.0.name="bootloader" 103hint.map.0.readonly=1 104 105hint.map.1.at="cfid0" 106hint.map.1.start=0x00030000 107hint.map.1.end=0x00040000
|
105hint.map.1.name="factory"
| 108hint.map.1.name="linuxconfig"
|
106 107hint.map.2.at="cfid0" 108hint.map.2.start=0x00040000
| 109 110hint.map.2.at="cfid0" 111hint.map.2.start=0x00040000
|
109hint.map.2.end=0x00800000 110hint.map.2.name="upgrade"
| 112hint.map.2.end=0x00050000 113hint.map.2.name="factory"
|
111 112hint.map.3.at="cfid0"
| 114 115hint.map.3.at="cfid0"
|
113hint.map.3.start=0x00040000 114hint.map.3.end=0x00050000 115hint.map.3.name="config"
| 116hint.map.3.start=0x00050000 117hint.map.3.end=0x007e0000 118hint.map.3.name="upgrade"
|
116 117hint.map.4.at="cfid0"
| 119 120hint.map.4.at="cfid0"
|
118hint.map.4.start=0x00000000 119hint.map.4.end=0x00000000 120hint.map.4.name="language"
| 121hint.map.4.name="kernel" 122hint.map.4.start=0x00050000 123hint.map.4.end="search:0x00100000:0x10000:.!/bin/sh"
|
121 122hint.map.5.at="cfid0"
| 124 125hint.map.5.at="cfid0"
|
123hint.map.5.start=0x00050000 124hint.map.5.end=0x00150000 125hint.map.5.name="kernel"
| 126hint.map.5.name="rootfs" 127hint.map.5.start="search:0x00100000:0x10000:.!/bin/sh" 128hint.map.5.end=0x007e0000
|
126 127hint.map.6.at="cfid0"
| 129 130hint.map.6.at="cfid0"
|
128hint.map.6.start=0x00150000
| 131hint.map.6.start=0x007e0000
|
129hint.map.6.end=0x00800000
| 132hint.map.6.end=0x00800000
|
130hint.map.6.name="rootfs"
| 133hint.map.6.name="config"
|
131
| 134
|
132 133hint.rt.0.phymask=0x1f 134hint.rt.0.media=100 135hint.rt.0.fduplex=1 136
| |
| |