--- elwix/config/ELWIX_ALFA_N2.hints 2014/01/14 20:09:32 1.1 +++ elwix/config/ELWIX_ALFA_N2.hints 2014/09/15 19:06:42 1.2 @@ -0,0 +1,186 @@ +# +## ELWIX - ALFA Nx kernel hints file +# +# $Id: ELWIX_ALFA_N2.hints,v 1.2 2014/09/15 19:06:42 misho Exp $ +# + +hint.apb.0.at="nexus0" +hint.apb.0.irq=4 + +# uart0 +hint.uart.0.at="apb0" +# see atheros/uart_cpu_ar71xx.c why +3 +hint.uart.0.maddr=0x18020003 +hint.uart.0.msize=0x18 +hint.uart.0.irq=3 + +#ehci - note the 0x100 offset for the AR913x/AR724x +hint.ehci.0.at="nexus0" +hint.ehci.0.maddr=0x1b000100 +hint.ehci.0.msize=0x00ffff00 +hint.ehci.0.irq=1 + +# pci +hint.pcib.0.at="nexus0" +hint.pcib.0.irq=0 + +# ath0 hint - pcie slot 0 +hint.pcib.0.bus.0.0.0.ath_fixup_addr=0x1fff1000 +hint.pcib.0.bus.0.0.0.ath_fixup_size=4096 + +# ath +hint.ath.0.eeprom_firmware="pcib.0.bus.0.0.0.eeprom_firmware" +# Where the ART is +hint.ath.0.eepromaddr=0x1fff1000 + +# mdiobus on arge0 +hint.argemdio.0.at="nexus0" +hint.argemdio.0.maddr=0x19000000 +hint.argemdio.0.msize=0x1000 +hint.argemdio.0.order=0 + +# +# AR7240 switch config +# +hint.arswitch.0.at="mdio0" +hint.arswitch.0.is_7240=1 # We need to be explicitly told this +hint.arswitch.0.numphys=4 # 4 active switch PHYs (PHY 0 -> 3) +hint.arswitch.0.phy4cpu=1 # Yes, PHY 4 == dedicated PHY +hint.arswitch.0.is_rgmii=0 # No, not RGMII +hint.arswitch.0.is_gmii=1 # No, not GMII + +# arge0: MII; dedicated PHY 4 on switch, connected via internal switch +# MDIO bus. +hint.arge.0.at="nexus0" +hint.arge.0.maddr=0x19000000 +hint.arge.0.msize=0x1000 +hint.arge.0.irq=2 +hint.arge.0.eeprommac=0x1fff0000 +hint.arge.0.phymask=0x10 # PHY 4 +# hint.arge.0.miimode=2 # MII +hint.arge.0.mdio=mdioproxy1 # Hanging off the arswitch MDIO bus + +# arge1: connected to the LAN switch MAC, at 1000BaseTX / GMII. +hint.arge.1.at="nexus0" +hint.arge.1.maddr=0x1a000000 +hint.arge.1.msize=0x1000 +hint.arge.1.irq=3 +hint.arge.1.eeprommac=0x1fff0006 +hint.arge.1.phymask=0x0 +#hint.arge.1.mdio=mdioproxy1 # Hanging off the arswitch MDIO bus +# hint.arge.1.miimode=1 # GMII +hint.arge.1.media=1000 # Force to 1000BaseTX/full +hint.arge.1.fduplex=1 + +# GPIO +hint.gpio.0.at="apb0" +hint.gpio.0.maddr=0x18040000 +hint.gpio.0.msize=0x1000 +hint.gpio.0.irq=2 +hint.gpio.0.pinmask=0x319c0 + +hint.gpio.0.function_set=0x00000001 +hint.gpio.0.function_clear=0x00000038 + +# Signal leds +hint.gpioled.0.at="gpiobus0" +hint.gpioled.0.name="but_0" +hint.gpioled.0.pins=0x00800 # pin 11 +hint.gpioled.2.at="gpiobus0" +hint.gpioled.2.name="led_2" +hint.gpioled.2.pins=0x20000 # pin 17 ? +hint.gpioled.3.at="gpiobus0" +hint.gpioled.3.name="led_3" +hint.gpioled.3.pins=0x10000 # pin 16 ? +hint.gpioled.5.at="gpiobus0" +hint.gpioled.5.name="led_5" +hint.gpioled.5.pins=0x01000 # pin 12 +hint.gpioled.6.at="gpiobus0" +hint.gpioled.6.name="led_6" +hint.gpioled.6.pins=0x00100 # pin 8 ? +hint.gpioled.7.at="gpiobus0" +hint.gpioled.7.name="led_7" +hint.gpioled.7.pins=0x00040 # pin 6 ? +hint.gpioled.8.at="gpiobus0" +hint.gpioled.8.name="led_8" +hint.gpioled.8.pins=0x00080 # pin 7 ? + + +# SPI controller/bus +hint.spi.0.at="nexus0" +hint.spi.0.maddr=0x1f000000 +hint.spi.0.msize=0x10 + +# SPI flash +hint.mx25l.0.at="spibus0" +hint.mx25l.0.cs=0 + +# Watchdog +hint.ar71xx_wdog.0.at="nexus0" + +# nvram mapping - XXX ? +hint.nvram.0.base=0x1f030000 +hint.nvram.0.maxsize=0x2000 +hint.nvram.0.flags=3 # 1 = No check, 2 = Format Generic +hint.nvram.1.base=0x1f032000 +hint.nvram.1.maxsize=0x4000 +hint.nvram.1.flags=3 # 1 = No check, 2 = Format Generic + +# hwpmc device +hint.ar71xx_pmc.0.at="apb0" +hint.ar71xx_pmc.0.irq=5 + +# GEOM_MAP +# +# From my PB92 environment: +# +# mtdparts=ar7240-nor0:256k(u-boot),64k(u-boot-env),2752k(rootfs),896k(uImage),64k(NVRAM),64k(ART) + +hint.map.0.at="flash/spi0" +hint.map.0.start=0x00000000 +hint.map.0.end=0x00040000 # 256k u-boot +hint.map.0.name="u-boot" +hint.map.0.readonly=1 + +hint.map.1.at="flash/spi0" +hint.map.1.start=0x00040000 +hint.map.1.end=0x00050000 # 64k u-boot-env +hint.map.1.name="u-boot-env" +hint.map.1.readonly=0 + +hint.map.2.at="flash/spi0" +hint.map.2.start=0x00050000 +#hint.map.2.end=0x00300000 # 2752k rootfs +hint.map.2.end=0x00650000 # 6144k rootfs +hint.map.2.name="rootfs" +hint.map.2.readonly=1 + +hint.map.3.at="flash/spi0" +#hint.map.3.start=0x00300000 +#hint.map.3.end=0x003e0000 # 896k uImage +hint.map.3.start=0x00650000 +hint.map.3.end=0x007e0000 # 1600k uImage +hint.map.3.name="uImage" +hint.map.3.readonly=1 + +hint.map.4.at="flash/spi0" +#hint.map.4.start=0x003e0000 +#hint.map.4.end=0x003f0000 # 64k cfg +hint.map.4.start=0x007e0000 +hint.map.4.end=0x007f0000 # 64k cfg +hint.map.4.name="cfg" +hint.map.4.readonly=0 + +hint.map.5.at="flash/spi0" +#hint.map.5.start=0x003f0000 +#hint.map.5.end=0x00400000 # 64k ART +hint.map.5.start=0x007f0000 +hint.map.5.end=0x00800000 # 64k ART +hint.map.5.name="ART" +hint.map.5.readonly=1 + +hint.map.6.at="flash/spi0" +hint.map.6.start=0x00050000 +hint.map.6.end=0x007f0000 # 7808k firmware + cfg +hint.map.6.name="firmware" +hint.map.6.readonly=0