RPI revision 1.84
11.1Sskrll#
21.84Smaxv#	$NetBSD: RPI,v 1.84 2018/08/01 20:04:11 maxv 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.78Sskrllmakeoptions DTSGNUARCH="arm arm64"
111.78Sskrllmakeoptions DTSSUBDIR="broadcom"
121.78Sskrll
131.78Sskrllmakeoptions	DTS="
141.78Sskrll	bcm2835-rpi-a.dts
151.78Sskrll	bcm2835-rpi-a-plus.dts
161.78Sskrll	bcm2835-rpi-b.dts
171.78Sskrll	bcm2835-rpi-b-plus.dts
181.78Sskrll	bcm2835-rpi-b-rev2.dts
191.78Sskrll	bcm2835-rpi-zero.dts
201.82Sskrll	bcm2835-rpi-zero-w.dts
211.78Sskrll"
221.1Sskrll
231.60Sskrlloptions 	CPU_ARM1176
241.78Sskrlloptions 	SOC_BCM2835
251.60Sskrlloptions 	TPIDRPRW_IS_CURLWP
261.61Sjmcneilloptions 	ARM11_COMPAT_MMU
271.60Sskrlloptions 	__HAVE_MM_MD_CACHE_ALIASING
281.60Sskrllmakeoptions 	CPUFLAGS="-march=armv6z -mtune=arm1176jzf-s -mfpu=vfp"
291.1Sskrll
301.1Sskrll# Architecture options
311.1Sskrll
321.1Sskrll# Development and Debugging options
331.33Sreinoud#options 	KGDB,KGDB_PLCOMUNIT=0,KGDB_DEVRATE=115200,KGDB_CONMODE=0xB00
341.1Sskrllmakeoptions	DEBUG="-g"	# compile full symbol table
351.48Sjoergmakeoptions	COPY_SYMTAB=1
361.1Sskrlloptions 	PLCONSOLE
371.1Sskrll#options 	PLCONSOLE,PLCOMCNUNIT=0,PLCONSPEED=115200,PLCONMODE=0xB00
381.1Sskrll
391.1Sskrll## USB Debugging options
401.77Sskrll#options USB_DEBUG
411.65Sskrll#options DWC2_DEBUG
421.1Sskrll#options UHUB_DEBUG
431.1Sskrll
441.1Sskrll
451.1Sskrll# Valid options for BOOT_ARGS:
461.1Sskrll#  single		Boot to single user only
471.1Sskrll#  kdb			Give control to kernel debugger
481.1Sskrll#  ask			Ask for file name to reboot from
491.1Sskrll#  pmapdebug=<n>	If PMAP_DEBUG, set pmap_debug_level to <n>
501.1Sskrll#  memorydisk=<n>	Set memorydisk size to <n> KB
511.1Sskrll#  quiet		Show aprint_naive output
521.1Sskrll#  verbose		Show aprint_normal and aprint_verbose output
531.1Sskrll#options		BOOT_ARGS="\"\""
541.1Sskrll
551.22Sjakllschconfig		netbsd		root on ? type ?
561.1Sskrll
571.78Sskrll# Device tree support
581.78Sskrllarmfdt0		at root
591.81Sjmcneillsimplebus*	at fdt? pass 0
601.1Sskrll
611.60Sskrll# The CPU(s)
621.78Sskrllcpus*		at fdt? pass 0
631.80Sjmcneillcpu*		at fdt? pass 0
641.1Sskrll
651.78Sskrllfclock*		at fdt? pass 0
661.1Sskrll
671.1Sskrll# Interrupt Controller
681.78Sskrllbcmicu*		at fdt? pass 1
691.78Sskrll
701.78Sskrll# System timer
711.78Sskrllbcmtmr0		at fdt? pass 1
721.78Sskrll
731.78Sskrll# Clock manager
741.78Sskrllbcmcprman0 	at fdt? pass 1
751.78Sskrll
761.78Sskrll# AUX
771.78Sskrllbcmaux0		at fdt? pass 2
781.78Sskrll
791.78Sskrll# pulse width modulator manager
801.78Sskrll#bcmpwm0 	at fdt?
811.78Sskrll
821.78Sskrllfregulator*	at fdt?
831.78Sskrllgpiokeys*	at fdt?
841.78Sskrll
851.78Sskrll# GPIO LEDs
861.78Sskrllgpioleds*	at fdt?
871.1Sskrll
881.4Sskrll# VC Mailbox
891.78Sskrllbcmmbox*	at fdt?
901.78Sskrllvcmbox* 	at bcmmbox?
911.4Sskrll
921.51Sjmcneill# DMA Controller
931.78Sskrllbcmdmac0	at fdt?
941.51Sjmcneill
951.27Sjmcneill# VCHIQ
961.78Sskrllvchiq0		at fdt?
971.30Sjmcneill
981.30Sjmcneill# AUDS
991.30Sjmcneillvcaudio0	at vchiq0
1001.76Sjmcneillaudio*		at audiobus?
1011.27Sjmcneill
1021.71Schristosspkr*		at audio?		# PC speaker (synthesized)
1031.69Snat
1041.1Sskrll# PL011 uart
1051.78Sskrllplcom*		at fdt?
1061.1Sskrll
1071.74Sjmcneill# AUX UART
1081.78Sskrllcom0		at fdt?
1091.74Sjmcneill
1101.15Sjmcneill# Framebuffer console
1111.78Sskrllgenfb0		at fdt?
1121.20Sjmcneillwsdisplay*	at genfb?
1131.31Sreinoudoptions		VCONS_DRAW_INTR
1141.56Sskrll#options 	RPI_HWCURSOR
1151.15Sjmcneill
1161.1Sskrll# Power management, Reset controller and Watchdog registers
1171.78Sskrllwatchdog0	at fdt?
1181.1Sskrll
1191.23Sjmcneill# Random number generator
1201.78Sskrllbcmrng0 	at fdt?
1211.23Sjmcneill
1221.44Skardel# GPIO
1231.78Sskrllbcmgpio*	at fdt?
1241.44Skardel
1251.1Sskrll# Arasan SD/MMC Interface
1261.78Sskrllsdhc*		at fdt?
1271.78Sskrllsdmmc*		at sdhc?
1281.1Sskrll
1291.72Sjmcneill# SD host controller
1301.78Sskrllsdhost* 	at fdt?
1311.78Sskrllsdmmc* 		at sdhost?
1321.72Sjmcneill
1331.1Sskrllld*     at sdmmc?
1341.1Sskrll
1351.17Sskrll# On-board USB
1361.78Sskrlldwctwo* 	at fdt?
1371.41Sskrllusb* 		at dwctwo?
1381.7Sjakllsch
1391.38Sskrll# USB device drivers
1401.17Sskrllinclude "dev/usb/usbdevices.config"
1411.7Sjakllsch
1421.57Suebayasimidi*		at midibus?
1431.57Suebayasi
1441.50Sskrll# MII/PHY support
1451.50Sskrllexphy* 		at mii? phy ?		# 3Com internal PHYs
1461.50Sskrllgentbi* 	at mii? phy ?		# Generic Ten-Bit 1000BASE-[CLS]X PHYs
1471.50Sskrllglxtphy*	at mii? phy ?		# Level One LXT-1000 PHYs
1481.50Sskrllgphyter* 	at mii? phy ?		# NS83861 Gig-E PHY
1491.50Sskrllicsphy*		at mii? phy ?		# Integrated Circuit Systems ICS189x
1501.50Sskrlligphy*		at mii? phy ?		# Intel IGP01E1000
1511.50Sskrllihphy*		at mii? phy ?		# Intel 82577 PHYs
1521.50Sskrllikphy*		at mii? phy ?		# Intel 82563 PHYs
1531.50Sskrllinphy*		at mii? phy ?		# Intel 82555 PHYs
1541.50Sskrlliophy*		at mii? phy ?		# Intel 82553 PHYs
1551.50Sskrlllxtphy*		at mii? phy ?		# Level One LXT-970 PHYs
1561.50Sskrllmakphy*		at mii? phy ?		# Marvell Semiconductor 88E1000 PHYs
1571.50Sskrllnsphy*		at mii? phy ?		# NS83840 PHYs
1581.50Sskrllnsphyter*	at mii? phy ? 		# NS83843 PHYs
1591.50Sskrllpnaphy*		at mii? phy ?		# generic HomePNA PHYs
1601.50Sskrllqsphy*		at mii? phy ?		# Quality Semiconductor QS6612 PHYs
1611.50Sskrllrdcphy*		at mii? phy ?		# RDC R6040 10/100 PHY
1621.50Sskrllrgephy*		at mii? phy ?		# Realtek 8169S/8110S internal PHYs
1631.50Sskrllrlphy*		at mii? phy ?		# Realtek 8139/8201L PHYs
1641.50Sskrllsqphy*		at mii? phy ?		# Seeq 80220/80221/80223 PHYs
1651.50Sskrlltlphy*		at mii? phy ?		# ThunderLAN PHYs
1661.50Sskrlltqphy*		at mii? phy ?		# TDK Semiconductor PHYs
1671.50Sskrllurlphy*		at mii? phy ?		# Realtek RTL8150L internal PHYs
1681.50Sskrllukphy*		at mii? phy ?		# generic unknown PHYs
1691.18Sskrll
1701.14Sjakllsch# Broadcom Serial Control (I2C)
1711.78Sskrllbsciic* at fdt?
1721.14Sjakllschiic* at i2cbus?
1731.14Sjakllsch
1741.58Smacallan# 'DS3231 Raspberry Pi RTC Board Real Time Clock Module for Arduino'
1751.58Smacallan# sold by linksprite.com
1761.58Smacallan#dsrtc* at iic1 addr 0x68 flags 3231
1771.58Smacallan
1781.68Saymeric# MCP7940 based PiFace Real Time Clock
1791.68Saymeric#dsrtc* at iic1 addr 0x6f flags 7940
1801.68Saymeric
1811.14Sjakllsch# SPI controller
1821.78Sskrllbcmspi* at fdt?
1831.14Sjakllschspi* at spibus?
1841.14Sjakllsch
1851.64Sphx# MCP3x0x ADC
1861.64Sphx# flags selects the actual chip, refer to mcp3kadc(4)
1871.64Sphx#mcp3kadc0 at spi? slave 0 flags 0
1881.64Sphx
1891.43Skardel# PIFace or other boards using that chip (needs gpio)
1901.43Skardel#mcp23s17gpio0 at spi? slave 0 flags 0
1911.55Sjakllsch#mcp23s17gpio1 at spi? slave 0 flags 1
1921.43Skardel#mcp23s17gpio2 at spi? slave 0 flags 2
1931.43Skardel#mcp23s17gpio3 at spi? slave 0 flags 3
1941.43Skardel
1951.44Skardel# gpio support (e. g. mcp23s17gpio, bcmgpio)
1961.44Skardelgpio*		at gpiobus?
1971.43Skardel
1981.1Sskrll# various options for wscons - we try to look as much like a standard
1991.1Sskrll# sun console as possible
2001.1Sskrlloptions 	WSEMUL_VT100		# sun terminal emulation
2011.5Sskrlloptions 	WS_DEFAULT_FG=WSCOL_WHITE
2021.5Sskrlloptions 	WS_DEFAULT_BG=WSCOL_BLACK
2031.5Sskrlloptions 	WS_KERNEL_FG=WSCOL_GREEN
2041.5Sskrlloptions 	WS_KERNEL_BG=WSCOL_BLACK
2051.24Sskrlloptions 	WSDISPLAY_COMPAT_PCVT		# emulate some ioctls
2061.24Sskrlloptions 	WSDISPLAY_COMPAT_SYSCONS	# emulate some more ioctls
2071.3Sabsoptions 	WSDISPLAY_COMPAT_USL		# wsconscfg VT handling
2081.1Sskrlloptions 	WSDISPLAY_COMPAT_RAWKBD		# can get raw scancodes
2091.1Sskrlloptions 	WSDISPLAY_DEFAULTSCREENS=4
2101.24Sskrll
2111.15Sjmcneill#options 	FONT_QVSS8x15
2121.1Sskrll#options 	FONT_GALLANT12x22	# the console font
2131.1Sskrll
2141.1Sskrll# Pseudo-Devices
2151.1Sskrll
2161.1Sskrll# network pseudo-devices
2171.9Sskrll#pseudo-device	carp			# Common Address Redundancy Protocol
2181.84Smaxv#pseudo-device	npf			# NPF packet filter
2191.1Sskrll#pseudo-device	kttcp			# network loopback
2201.9Sskrll#pseudo-device	sl			# Serial Line IP
2211.9Sskrll#pseudo-device	strip			# Starmode Radio IP (Metricom)
2221.9Sskrll#pseudo-device	irframetty		# IrDA frame line discipline
2231.9Sskrll#pseudo-device	faith			# IPv[46] TCP relay translation i/f
2241.9Sskrll#pseudo-device	stf			# 6to4 IPv6 over IPv4 encapsulation
2251.9Sskrll#pseudo-device	agr			# IEEE 802.3ad link aggregation
2261.1Sskrll
2271.1Sskrll# miscellaneous pseudo-devices
2281.78Sskrllpseudo-device	openfirm
2291.9Sskrll
2301.9Sskrll# wscons pseudo-devices
2311.9Sskrllpseudo-device	wsmux			# mouse & keyboard multiplexor
2321.9Sskrllpseudo-device	wsfont
2331.9Sskrll
2341.29Sjmcneill# userland interface to drivers, including autoconf and properties retrieval
2351.29Sjmcneill
2361.16Sjmcneill# local configuration
2371.16Sjmcneillcinclude "arch/evbarm/conf/RPI.local"
2381.75Snat
2391.75Snat# Bluetooth serial UART devices
2401.75Snatpseudo-device btuart
2411.75Snatpseudo-device bcsp
2421.75Snatpseudo-device bthfive
243