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