1# 2# This file adds to the values in AR91XX_BASE.hints. 3# 4# $FreeBSD$ 5 6# mdiobus on arge1 7hint.argemdio.0.at="nexus0" 8hint.argemdio.0.maddr=0x1a000000 9hint.argemdio.0.msize=0x1000 10hint.argemdio.0.order=0 11 12# Embedded Atheros Switch 13hint.arswitch.0.at="mdio0" 14hint.arswitch.0.is_7240=1 15hint.arswitch.0.numphys=4 16hint.arswitch.0.phy4cpu=1 # phy 4 is a "CPU" separate PHY 17hint.arswitch.0.is_rgmii=0 18hint.arswitch.0.is_gmii=1 # arge1 <-> switch PHY is GMII 19 20# arge0 - MII, autoneg, phy(4) 21hint.arge.0.phymask=0x10 # PHY4 22hint.arge.0.mdio=mdioproxy1 # .. off of the switch mdiobus 23 24# arge1 - GMII, 1000/full 25hint.arge.1.phymask=0x0 # No directly mapped PHYs 26hint.arge.1.media=1000 27hint.arge.1.fduplex=1 28 29# The AP121 4MB flash layout: 30# 31# bootargs=console=ttyS0,115200 root=31:02 rootfstype=squashfs 32# init=/sbin/init mtdparts=ar7240-nor0:256k(u-boot),64k(u-boot-env), 33# 2752k(rootfs),896k(uImage),64k(NVRAM),64k(ART) 34# 35# So: 36# 256k: uboot 37# 64: uboot-env 38# 2752k: rootfs 39# 896k: kernel 40# 64k: config 41# 64k: ART 42 43hint.map.0.at="flash/spi0" 44hint.map.0.start=0x00000000 45hint.map.0.end=0x000040000 46hint.map.0.name="uboot" 47hint.map.0.readonly=1 48 49hint.map.1.at="flash/spi0" 50hint.map.1.start=0x00040000 51hint.map.1.end=0x00050000 52hint.map.1.name="uboot-env" 53hint.map.1.readonly=0 54 55hint.map.2.at="flash/spi0" 56hint.map.2.start=0x00050000 57hint.map.2.end=0x00300000 58hint.map.2.name="rootfs" 59hint.map.2.readonly=0 60 61hint.map.3.at="flash/spi0" 62hint.map.3.start=0x00300000 63hint.map.3.end=0x003e0000 64hint.map.3.name="kernel" 65hint.map.3.readonly=0 66 67hint.map.4.at="flash/spi0" 68hint.map.4.start=0x003e0000 69hint.map.4.end=0x003f0000 70hint.map.4.name="cfg" 71hint.map.4.readonly=0 72 73# This is radio calibration section. It is (or should be!) unique 74# for each board, to take into account thermal and electrical differences 75# as well as the regulatory compliance data. 76# 77hint.map.5.at="flash/spi0" 78hint.map.5.start=0x003f0000 79hint.map.5.end=0x00400000 80hint.map.5.name="art" 81hint.map.5.readonly=1 82 83# GPIO specific configuration block 84 85# Don't flip on anything that isn't already enabled. 86# This includes leaving the SPI CS1/CS2 pins as GPIO pins as they're 87# not used here. 88hint.gpio.0.function_set=0x00000000 89hint.gpio.0.function_clear=0x00000000 90 91# These are the GPIO LEDs and buttons which can be software controlled. 92#hint.gpio.0.pinmask=0x001c02ae 93hint.gpio.0.pinmask=0x00001803 94 95# gpio0 - WLAN LED 96# gpio1 - USB LED 97# gpio11 - Jumpstart button 98# gpio12 - Reset button 99 100# LEDs are configured separately and driven by the LED device 101hint.gpioled.0.at="gpiobus0" 102hint.gpioled.0.name="wlan" 103hint.gpioled.0.pins=0x0001 104 105hint.gpioled.1.at="gpiobus0" 106hint.gpioled.1.name="usb" 107hint.gpioled.1.pins=0x0002 108