RPI revision 1.68
11.1Sskrll#
21.68Saymeric#	$NetBSD: RPI,v 1.68 2016/10/18 18:56:32 aymeric Exp $
31.1Sskrll#
41.1Sskrll#	RPi -- Raspberry Pi
51.1Sskrll#
61.1Sskrll
71.1Sskrllinclude	"arch/evbarm/conf/std.rpi"
81.62Sskrllinclude "arch/evbarm/conf/GENERIC.common"
91.1Sskrll
101.1Sskrll# CPU options
111.1Sskrll
121.60Sskrlloptions 	CPU_ARM1176
131.60Sskrlloptions 	TPIDRPRW_IS_CURLWP
141.61Sjmcneilloptions 	ARM11_COMPAT_MMU
151.60Sskrlloptions 	__HAVE_MM_MD_CACHE_ALIASING
161.60Sskrllmakeoptions 	CPUFLAGS="-march=armv6z -mtune=arm1176jzf-s -mfpu=vfp"
171.1Sskrll
181.1Sskrll# Architecture options
191.1Sskrll
201.1Sskrll# Development and Debugging options
211.33Sreinoud#options 	KGDB,KGDB_PLCOMUNIT=0,KGDB_DEVRATE=115200,KGDB_CONMODE=0xB00
221.1Sskrllmakeoptions	DEBUG="-g"	# compile full symbol table
231.48Sjoergmakeoptions	COPY_SYMTAB=1
241.1Sskrlloptions 	PLCONSOLE
251.1Sskrll#options 	PLCONSOLE,PLCOMCNUNIT=0,PLCONSPEED=115200,PLCONMODE=0xB00
261.1Sskrll
271.1Sskrll## USB Debugging options
281.1Sskrlloptions USB_DEBUG
291.65Sskrll#options DWC2_DEBUG
301.1Sskrll#options UHUB_DEBUG
311.1Sskrll
321.1Sskrll
331.1Sskrll# Valid options for BOOT_ARGS:
341.1Sskrll#  single		Boot to single user only
351.1Sskrll#  kdb			Give control to kernel debugger
361.1Sskrll#  ask			Ask for file name to reboot from
371.1Sskrll#  pmapdebug=<n>	If PMAP_DEBUG, set pmap_debug_level to <n>
381.1Sskrll#  memorydisk=<n>	Set memorydisk size to <n> KB
391.1Sskrll#  quiet		Show aprint_naive output
401.1Sskrll#  verbose		Show aprint_normal and aprint_verbose output
411.1Sskrll#options		BOOT_ARGS="\"\""
421.1Sskrll
431.22Sjakllschconfig		netbsd		root on ? type ?
441.1Sskrll
451.1Sskrll# The main bus device
461.1Sskrllmainbus0	at root
471.1Sskrll
481.60Sskrll# The CPU(s)
491.60Sskrllcpu*		at mainbus?
501.1Sskrll
511.1Sskrll# OBIO
521.1Sskrllobio0		at mainbus?
531.1Sskrll
541.1Sskrll# Interrupt Controller
551.1Sskrllbcmicu0		at obio?
561.1Sskrll
571.4Sskrll# VC Mailbox
581.4Sskrllbcmmbox0	at obio?
591.13Sjmcneillvcmbox0 	at bcmmbox0
601.4Sskrll
611.51Sjmcneill# DMA Controller
621.54Sskrllbcmdmac0	at obio?
631.51Sjmcneill
641.27Sjmcneill# VCHIQ
651.30Sjmcneillvchiq0		at obio?
661.30Sjmcneill
671.30Sjmcneill# AUDS
681.30Sjmcneillvcaudio0	at vchiq0
691.30Sjmcneillaudio0		at vcaudio0
701.27Sjmcneill
711.1Sskrll# PL011 uart
721.1Sskrllplcom0		at obio?
731.1Sskrll
741.15Sjmcneill# Framebuffer console
751.20Sjmcneillgenfb0		at obio?
761.20Sjmcneillwsdisplay*	at genfb?
771.31Sreinoudoptions		VCONS_DRAW_INTR
781.56Sskrll#options 	RPI_HWCURSOR
791.15Sjmcneill
801.1Sskrll# System timer
811.1Sskrllbcmtmr0		at obio?
821.1Sskrll
831.1Sskrll# Power management, Reset controller and Watchdog registers
841.1Sskrllbcmpm0		at obio?
851.1Sskrll
861.23Sjmcneill# Random number generator
871.23Sjmcneillbcmrng0 	at obio?
881.23Sjmcneill
891.44Skardel# GPIO
901.44Skardelbcmgpio0	at obio?	# pins  0 ... 31
911.44Skardelbcmgpio1	at obio?	# pins 32 ... 53
921.44Skardel
931.1Sskrll# Arasan SD/MMC Interface
941.1Sskrllsdhc* at obio?
951.1Sskrllsdmmc*  at sdhc?
961.1Sskrll
971.1Sskrllld*     at sdmmc?
981.1Sskrll
991.17Sskrll# On-board USB
1001.41Sskrlldwctwo* 	at obio?
1011.41Sskrllusb* 		at dwctwo?
1021.7Sjakllsch
1031.38Sskrll# USB device drivers
1041.17Sskrllinclude "dev/usb/usbdevices.config"
1051.7Sjakllsch
1061.57Suebayasimidi*		at midibus?
1071.57Suebayasi
1081.50Sskrll# MII/PHY support
1091.50Sskrllexphy* 		at mii? phy ?		# 3Com internal PHYs
1101.50Sskrllgentbi* 	at mii? phy ?		# Generic Ten-Bit 1000BASE-[CLS]X PHYs
1111.50Sskrllglxtphy*	at mii? phy ?		# Level One LXT-1000 PHYs
1121.50Sskrllgphyter* 	at mii? phy ?		# NS83861 Gig-E PHY
1131.50Sskrllicsphy*		at mii? phy ?		# Integrated Circuit Systems ICS189x
1141.50Sskrlligphy*		at mii? phy ?		# Intel IGP01E1000
1151.50Sskrllihphy*		at mii? phy ?		# Intel 82577 PHYs
1161.50Sskrllikphy*		at mii? phy ?		# Intel 82563 PHYs
1171.50Sskrllinphy*		at mii? phy ?		# Intel 82555 PHYs
1181.50Sskrlliophy*		at mii? phy ?		# Intel 82553 PHYs
1191.50Sskrlllxtphy*		at mii? phy ?		# Level One LXT-970 PHYs
1201.50Sskrllmakphy*		at mii? phy ?		# Marvell Semiconductor 88E1000 PHYs
1211.50Sskrllnsphy*		at mii? phy ?		# NS83840 PHYs
1221.50Sskrllnsphyter*	at mii? phy ? 		# NS83843 PHYs
1231.50Sskrllpnaphy*		at mii? phy ?		# generic HomePNA PHYs
1241.50Sskrllqsphy*		at mii? phy ?		# Quality Semiconductor QS6612 PHYs
1251.50Sskrllrdcphy*		at mii? phy ?		# RDC R6040 10/100 PHY
1261.50Sskrllrgephy*		at mii? phy ?		# Realtek 8169S/8110S internal PHYs
1271.50Sskrllrlphy*		at mii? phy ?		# Realtek 8139/8201L PHYs
1281.50Sskrllsqphy*		at mii? phy ?		# Seeq 80220/80221/80223 PHYs
1291.50Sskrlltlphy*		at mii? phy ?		# ThunderLAN PHYs
1301.50Sskrlltqphy*		at mii? phy ?		# TDK Semiconductor PHYs
1311.50Sskrllurlphy*		at mii? phy ?		# Realtek RTL8150L internal PHYs
1321.50Sskrllukphy*		at mii? phy ?		# generic unknown PHYs
1331.18Sskrll
1341.14Sjakllsch# Broadcom Serial Control (I2C)
1351.14Sjakllschbsciic* at obio?
1361.14Sjakllschiic* at i2cbus?
1371.14Sjakllsch
1381.58Smacallan# 'DS3231 Raspberry Pi RTC Board Real Time Clock Module for Arduino'
1391.58Smacallan# sold by linksprite.com
1401.58Smacallan#dsrtc* at iic1 addr 0x68 flags 3231
1411.58Smacallan
1421.68Saymeric# MCP7940 based PiFace Real Time Clock
1431.68Saymeric#dsrtc* at iic1 addr 0x6f flags 7940
1441.68Saymeric
1451.14Sjakllsch# SPI controller
1461.14Sjakllschbcmspi* at obio?
1471.14Sjakllschspi* at spibus?
1481.14Sjakllsch
1491.64Sphx# MCP3x0x ADC
1501.64Sphx# flags selects the actual chip, refer to mcp3kadc(4)
1511.64Sphx#mcp3kadc0 at spi? slave 0 flags 0
1521.64Sphx
1531.43Skardel# PIFace or other boards using that chip (needs gpio)
1541.43Skardel#mcp23s17gpio0 at spi? slave 0 flags 0
1551.55Sjakllsch#mcp23s17gpio1 at spi? slave 0 flags 1
1561.43Skardel#mcp23s17gpio2 at spi? slave 0 flags 2
1571.43Skardel#mcp23s17gpio3 at spi? slave 0 flags 3
1581.43Skardel
1591.44Skardel# gpio support (e. g. mcp23s17gpio, bcmgpio)
1601.44Skardelgpio*		at gpiobus?
1611.43Skardel
1621.1Sskrll# various options for wscons - we try to look as much like a standard
1631.1Sskrll# sun console as possible
1641.1Sskrlloptions 	WSEMUL_VT100		# sun terminal emulation
1651.5Sskrlloptions 	WS_DEFAULT_FG=WSCOL_WHITE
1661.5Sskrlloptions 	WS_DEFAULT_BG=WSCOL_BLACK
1671.5Sskrlloptions 	WS_KERNEL_FG=WSCOL_GREEN
1681.5Sskrlloptions 	WS_KERNEL_BG=WSCOL_BLACK
1691.24Sskrlloptions 	WSDISPLAY_COMPAT_PCVT		# emulate some ioctls
1701.24Sskrlloptions 	WSDISPLAY_COMPAT_SYSCONS	# emulate some more ioctls
1711.3Sabsoptions 	WSDISPLAY_COMPAT_USL		# wsconscfg VT handling
1721.1Sskrlloptions 	WSDISPLAY_COMPAT_RAWKBD		# can get raw scancodes
1731.1Sskrlloptions 	WSDISPLAY_DEFAULTSCREENS=4
1741.24Sskrll
1751.15Sjmcneill#options 	FONT_QVSS8x15
1761.1Sskrll#options 	FONT_GALLANT12x22	# the console font
1771.1Sskrll
1781.1Sskrll# Pseudo-Devices
1791.1Sskrll
1801.1Sskrll# network pseudo-devices
1811.9Sskrll#pseudo-device	carp			# Common Address Redundancy Protocol
1821.9Sskrll#pseudo-device	ipfilter		# IP filter (firewall) and NAT
1831.1Sskrll#pseudo-device	kttcp			# network loopback
1841.9Sskrll#pseudo-device	ppp			# Point-to-Point Protocol
1851.9Sskrll#pseudo-device	pppoe			# PPP over Ethernet (RFC 2516)
1861.9Sskrll#options 	PPPOE_SERVER		# Enable PPPoE server via link0
1871.9Sskrll#pseudo-device	sl			# Serial Line IP
1881.9Sskrll#pseudo-device	strip			# Starmode Radio IP (Metricom)
1891.9Sskrll#pseudo-device	irframetty		# IrDA frame line discipline
1901.9Sskrll#pseudo-device	tap			# virtual Ethernet
1911.9Sskrll#pseudo-device	tun			# network tunneling over tty
1921.9Sskrll#pseudo-device	gre			# generic L3 over IP tunnel
1931.9Sskrll#pseudo-device	gif			# IPv[46] over IPv[46] tunnel (RFC 1933)
1941.9Sskrll#pseudo-device	faith			# IPv[46] TCP relay translation i/f
1951.9Sskrll#pseudo-device	stf			# 6to4 IPv6 over IPv4 encapsulation
1961.9Sskrll#pseudo-device	vlan			# IEEE 802.1q encapsulation
1971.9Sskrll#pseudo-device	bridge			# simple inter-network bridging
1981.9Sskrll#options	BRIDGE_IPF		# bridge uses IP/IPv6 pfil hooks too
1991.9Sskrll#pseudo-device	agr			# IEEE 802.3ad link aggregation
2001.9Sskrll#pseudo-device	pf			# PF packet filter
2011.9Sskrll#pseudo-device	pflog			# PF log if
2021.1Sskrll
2031.1Sskrll# miscellaneous pseudo-devices
2041.9Sskrll
2051.9Sskrll# wscons pseudo-devices
2061.9Sskrllpseudo-device	wsmux			# mouse & keyboard multiplexor
2071.9Sskrllpseudo-device	wsfont
2081.9Sskrll
2091.29Sjmcneill# userland interface to drivers, including autoconf and properties retrieval
2101.29Sjmcneill
2111.16Sjmcneill# local configuration
2121.16Sjmcneillcinclude "arch/evbarm/conf/RPI.local"
213