xref: /freebsd-13-stable/sys/mips/conf/ROCKET_M2HP.hints (revision 5510f79042fbd543de55807d0da7f8a2b8be2f89)
1
2# arge1 MDIO bus
3hint.argemdio.0.at="nexus0"
4hint.argemdio.0.maddr=0x1a000000
5hint.argemdio.0.msize=0x1000
6hint.argemdio.0.order=0
7
8# Override MAC Address with the one on EEPROM
9hint.arge.0.eeprommac=0x1fff0000
10
11# arge0: dedicated switch port; RMII; dedicated PHY 4 on switch, connected
12# via internal switch MDIO bus.
13hint.arge.0.media=100           # Map to 100/full
14hint.arge.0.fduplex=1           #
15hint.arge.0.phymask=0x10        # PHY4
16hint.arge.0.mdio=mdioproxy1     # .. off of the switch mdiobus
17
18# arge1: nail to 1000/full, RMII - connected to the switch
19hint.arge.1.media=1000          # Map to 1000/full
20hint.arge.1.fduplex=1           #
21hint.arge.1.phymask=0x0         # no directly mapped PHYs
22
23#
24# AR7240 switch config
25#
26hint.arswitch.0.at="mdio0"
27hint.arswitch.0.is_7240=1       # We need to be explicitly told this
28hint.arswitch.0.numphys=4       # 4 active switch PHYs (PHY 0 -> 3)
29hint.arswitch.0.phy4cpu=1       # Yes, PHY 4 == dedicated PHY
30hint.arswitch.0.is_rgmii=0      # No, not RGMII
31hint.arswitch.0.is_gmii=0       # No, not GMII
32
33# ath0 hint - pcie slot 0
34hint.pcib.0.bus.0.0.0.ath_fixup_addr=0x1fff1000
35hint.pcib.0.bus.0.0.0.ath_fixup_size=4096
36
37# ath
38hint.ath.0.eeprom_firmware="pcib.0.bus.0.0.0.eeprom_firmware"
39
40# GPIO pins
41# Pin 0: red led (sig1)
42# Pin 1: yellow led (sig2)
43# Pin 11: green len (sig3)
44# Pin 7: green len (sig4)
45# Pin 12: Reset switch
46hint.gpio.0.pinmask=0x1883
47
48# Signal leds
49hint.gpioled.0.at="gpiobus0"
50hint.gpioled.0.name="sig1"
51hint.gpioled.0.pins=0x0001     # pin 0
52hint.gpioled.1.at="gpiobus0"
53hint.gpioled.1.name="sig2"
54hint.gpioled.1.pins=0x0002     # pin 1
55hint.gpioled.2.at="gpiobus0"
56hint.gpioled.2.name="sig3"
57hint.gpioled.2.pins=0x0800     # pin 11
58hint.gpioled.3.at="gpiobus0"
59hint.gpioled.3.name="sig4"
60hint.gpioled.3.pins=0x0080     # pin 7
61
62# GEOM_MAP
63#
64# Rocket M2 HP
65#
66# mtdparts=ar7240-nor0:256k(u-boot),64k(u-boot-env),1024k(kernel),6528k(rootfs),256k(cfg),64k(EEPROM)
67
68hint.map.0.at="flash/spi0"
69hint.map.0.start=0x00000000
70hint.map.0.end=0x00040000       # 256k u-boot
71hint.map.0.name="u-boot"
72hint.map.0.readonly=1
73
74hint.map.1.at="flash/spi0"
75hint.map.1.start=0x00040000
76hint.map.1.end=0x00050000       # 64k u-boot-env
77hint.map.1.name="u-boot-env"
78hint.map.1.readonly=1
79
80hint.map.2.at="flash/spi0"
81hint.map.2.start=0x00050000
82hint.map.2.end="search:0x00100000:0x10000:.!/bin/sh"
83hint.map.2.name="kernel"
84hint.map.2.readonly=1
85
86hint.map.3.at="flash/spi0"
87hint.map.3.start="search:0x00100000:0x10000:.!/bin/sh"
88hint.map.3.end=0x007b0000
89hint.map.3.name="rootfs"
90hint.map.3.readonly=0
91
92hint.map.4.at="flash/spi0"
93hint.map.4.start=0x007b0000
94hint.map.4.end=0x007f0000       # 256k cfg
95hint.map.4.name="cfg"
96hint.map.4.readonly=0
97
98hint.map.5.at="flash/spi0"
99hint.map.5.start=0x007f0000
100hint.map.5.end=0x00800000       # 64k EEPROM
101hint.map.5.name="eeprom"
102hint.map.5.readonly=1
103