PICOSTATION_M2HP.hints revision 276716
11541Srgrimes# $FreeBSD: stable/10/sys/mips/conf/PICOSTATION_M2HP.hints 276716 2015-01-05 19:54:40Z hiren $
21541Srgrimes
31541Srgrimes# arge1 MDIO bus
41541Srgrimeshint.argemdio.0.at="nexus0"
51541Srgrimeshint.argemdio.0.maddr=0x1a000000
61541Srgrimeshint.argemdio.0.msize=0x1000
71541Srgrimeshint.argemdio.0.order=0
81541Srgrimes
91541Srgrimes# Override MAC Address with the one on EEPROM
101541Srgrimeshint.arge.0.eeprommac=0x1fff0000
111541Srgrimes
121541Srgrimes# arge0: dedicated switch port; RMII; dedicated PHY 4 on switch, connected
131541Srgrimes# via internal switch MDIO bus.
141541Srgrimeshint.arge.0.media=100           # Map to 100/full
151541Srgrimeshint.arge.0.fduplex=1           #
161541Srgrimeshint.arge.0.phymask=0x10        # PHY4
171541Srgrimeshint.arge.0.mdio=mdioproxy1     # .. off of the switch mdiobus
181541Srgrimes
191541Srgrimes# arge1: nail to 1000/full, RMII - connected to the switch
201541Srgrimeshint.arge.1.media=1000          # Map to 1000/full
211541Srgrimeshint.arge.1.fduplex=1           #
221541Srgrimeshint.arge.1.phymask=0x0         # no directly mapped PHYs
231541Srgrimes
241541Srgrimes#
251541Srgrimes# AR7240 switch config
261541Srgrimes#
271541Srgrimeshint.arswitch.0.at="mdio0"
281541Srgrimeshint.arswitch.0.is_7240=1       # We need to be explicitly told this
291541Srgrimeshint.arswitch.0.numphys=4       # 4 active switch PHYs (PHY 0 -> 3)
301541Srgrimeshint.arswitch.0.phy4cpu=1       # Yes, PHY 4 == dedicated PHY
311541Srgrimeshint.arswitch.0.is_rgmii=0      # No, not RGMII
321541Srgrimeshint.arswitch.0.is_gmii=0       # No, not GMII
3314489Shsu
3450477Speter# ath0 hint - pcie slot 0
351541Srgrimeshint.pcib.0.bus.0.0.0.ath_fixup_addr=0x1fff1000
361541Srgrimeshint.pcib.0.bus.0.0.0.ath_fixup_size=4096
372165Spaul
382165Spaul# ath
392165Spaulhint.ath.0.eeprom_firmware="pcib.0.bus.0.0.0.eeprom_firmware"
4095100Smike
4195100Smike# GPIO pins
4295100Smike# Pin 0: red led (sig1)
4395100Smike# Pin 1: yellow led (sig2)
4495100Smike# Pin 11: green len (sig3)
4595100Smike# Pin 7: green len (sig4)
4695100Smike# Pin 12: Reset switch
4795100Smikehint.gpio.0.pinmask=0x1883
481541Srgrimes
491541Srgrimes# Signal leds
501541Srgrimeshint.gpioled.0.at="gpiobus0"
5183045Sobrienhint.gpioled.0.name="sig1"
5298445Smikehint.gpioled.0.pins=0x0001     # pin 0
5395100Smikehint.gpioled.1.at="gpiobus0"
541541Srgrimeshint.gpioled.1.name="sig2"
551541Srgrimeshint.gpioled.1.pins=0x0002     # pin 1
561541Srgrimeshint.gpioled.2.at="gpiobus0"
5795100Smikehint.gpioled.2.name="sig3"
5895100Smikehint.gpioled.2.pins=0x0800     # pin 11
5981857Sddhint.gpioled.3.at="gpiobus0"
6081857Sddhint.gpioled.3.name="sig4"
6181857Sddhint.gpioled.3.pins=0x0080     # pin 7
6255205Speter
6328270Swollman# GEOM_MAP
6436124Sbde#
6584439Sbde# Picostation M2 HP
6614489Shsu#
6792719Salfred# mtdparts=ar7240-nor0:256k(u-boot),64k(u-boot-env),1024k(kernel),6528k(rootfs),256k(cfg),64k(EEPROM)
6892719Salfred
6992719Salfredhint.map.0.at="flash/spi0"
7092719Salfredhint.map.0.start=0x00000000
7192719Salfredhint.map.0.end=0x00040000       # 256k u-boot
7292719Salfredhint.map.0.name="u-boot"
7392719Salfredhint.map.0.readonly=1
7425201Swollman
7595100Smikehint.map.1.at="flash/spi0"
7655205Speterhint.map.1.start=0x00040000
7714489Shsuhint.map.1.end=0x00050000       # 64k u-boot-env 
781541Srgrimeshint.map.1.name="u-boot-env"
791541Srgrimeshint.map.1.readonly=1
801541Srgrimes
812165Spaulhint.map.2.at="flash/spi0"
8255205Speterhint.map.2.start=0x00050000
8314489Shsuhint.map.2.end="search:0x00100000:0x10000:.!/bin/sh"
8495100Smikehint.map.2.name="kernel"
8595100Smikehint.map.2.readonly=1
8614489Shsu
87hint.map.3.at="flash/spi0"
88hint.map.3.start="search:0x00100000:0x10000:.!/bin/sh"
89hint.map.3.end=0x007b0000
90hint.map.3.name="rootfs"
91hint.map.3.readonly=0
92
93hint.map.4.at="flash/spi0"
94hint.map.4.start=0x007b0000
95hint.map.4.end=0x007f0000       # 256k cfg
96hint.map.4.name="cfg"
97hint.map.4.readonly=0
98
99hint.map.5.at="flash/spi0"
100hint.map.5.start=0x007f0000
101hint.map.5.end=0x00800000       # 64k EEPROM
102hint.map.5.name="eeprom"
103hint.map.5.readonly=1
104