RPI revision 1.85
11.1Sskrll# 21.85Sskrll# $NetBSD: RPI,v 1.85 2018/10/18 09:01:54 skrll 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.85Sskrll#options VERBOSE_INIT_ARM 351.85Sskrll#options EARLYCONS=bcm2835,CONSADDR=0x20201000 361.1Sskrllmakeoptions DEBUG="-g" # compile full symbol table 371.48Sjoergmakeoptions COPY_SYMTAB=1 381.1Sskrlloptions PLCONSOLE 391.1Sskrll#options PLCONSOLE,PLCOMCNUNIT=0,PLCONSPEED=115200,PLCONMODE=0xB00 401.1Sskrll 411.1Sskrll## USB Debugging options 421.77Sskrll#options USB_DEBUG 431.65Sskrll#options DWC2_DEBUG 441.1Sskrll#options UHUB_DEBUG 451.1Sskrll 461.1Sskrll 471.1Sskrll# Valid options for BOOT_ARGS: 481.1Sskrll# single Boot to single user only 491.1Sskrll# kdb Give control to kernel debugger 501.1Sskrll# ask Ask for file name to reboot from 511.1Sskrll# pmapdebug=<n> If PMAP_DEBUG, set pmap_debug_level to <n> 521.1Sskrll# memorydisk=<n> Set memorydisk size to <n> KB 531.1Sskrll# quiet Show aprint_naive output 541.1Sskrll# verbose Show aprint_normal and aprint_verbose output 551.1Sskrll#options BOOT_ARGS="\"\"" 561.1Sskrll 571.22Sjakllschconfig netbsd root on ? type ? 581.1Sskrll 591.78Sskrll# Device tree support 601.78Sskrllarmfdt0 at root 611.81Sjmcneillsimplebus* at fdt? pass 0 621.1Sskrll 631.60Sskrll# The CPU(s) 641.78Sskrllcpus* at fdt? pass 0 651.80Sjmcneillcpu* at fdt? pass 0 661.1Sskrll 671.78Sskrllfclock* at fdt? pass 0 681.1Sskrll 691.1Sskrll# Interrupt Controller 701.78Sskrllbcmicu* at fdt? pass 1 711.78Sskrll 721.78Sskrll# System timer 731.78Sskrllbcmtmr0 at fdt? pass 1 741.78Sskrll 751.78Sskrll# Clock manager 761.78Sskrllbcmcprman0 at fdt? pass 1 771.78Sskrll 781.78Sskrll# AUX 791.78Sskrllbcmaux0 at fdt? pass 2 801.78Sskrll 811.78Sskrll# pulse width modulator manager 821.78Sskrll#bcmpwm0 at fdt? 831.78Sskrll 841.78Sskrllfregulator* at fdt? 851.78Sskrllgpiokeys* at fdt? 861.78Sskrll 871.78Sskrll# GPIO LEDs 881.78Sskrllgpioleds* at fdt? 891.1Sskrll 901.4Sskrll# VC Mailbox 911.78Sskrllbcmmbox* at fdt? 921.78Sskrllvcmbox* at bcmmbox? 931.4Sskrll 941.51Sjmcneill# DMA Controller 951.78Sskrllbcmdmac0 at fdt? 961.51Sjmcneill 971.27Sjmcneill# VCHIQ 981.78Sskrllvchiq0 at fdt? 991.30Sjmcneill 1001.30Sjmcneill# AUDS 1011.30Sjmcneillvcaudio0 at vchiq0 1021.76Sjmcneillaudio* at audiobus? 1031.27Sjmcneill 1041.71Schristosspkr* at audio? # PC speaker (synthesized) 1051.69Snat 1061.1Sskrll# PL011 uart 1071.78Sskrllplcom* at fdt? 1081.1Sskrll 1091.74Sjmcneill# AUX UART 1101.78Sskrllcom0 at fdt? 1111.74Sjmcneill 1121.15Sjmcneill# Framebuffer console 1131.78Sskrllgenfb0 at fdt? 1141.20Sjmcneillwsdisplay* at genfb? 1151.31Sreinoudoptions VCONS_DRAW_INTR 1161.56Sskrll#options RPI_HWCURSOR 1171.15Sjmcneill 1181.1Sskrll# Power management, Reset controller and Watchdog registers 1191.78Sskrllwatchdog0 at fdt? 1201.1Sskrll 1211.23Sjmcneill# Random number generator 1221.78Sskrllbcmrng0 at fdt? 1231.23Sjmcneill 1241.44Skardel# GPIO 1251.78Sskrllbcmgpio* at fdt? 1261.44Skardel 1271.1Sskrll# Arasan SD/MMC Interface 1281.78Sskrllsdhc* at fdt? 1291.78Sskrllsdmmc* at sdhc? 1301.1Sskrll 1311.72Sjmcneill# SD host controller 1321.78Sskrllsdhost* at fdt? 1331.78Sskrllsdmmc* at sdhost? 1341.72Sjmcneill 1351.1Sskrllld* at sdmmc? 1361.1Sskrll 1371.17Sskrll# On-board USB 1381.78Sskrlldwctwo* at fdt? 1391.41Sskrllusb* at dwctwo? 1401.7Sjakllsch 1411.38Sskrll# USB device drivers 1421.17Sskrllinclude "dev/usb/usbdevices.config" 1431.7Sjakllsch 1441.57Suebayasimidi* at midibus? 1451.57Suebayasi 1461.50Sskrll# MII/PHY support 1471.50Sskrllexphy* at mii? phy ? # 3Com internal PHYs 1481.50Sskrllgentbi* at mii? phy ? # Generic Ten-Bit 1000BASE-[CLS]X PHYs 1491.50Sskrllglxtphy* at mii? phy ? # Level One LXT-1000 PHYs 1501.50Sskrllgphyter* at mii? phy ? # NS83861 Gig-E PHY 1511.50Sskrllicsphy* at mii? phy ? # Integrated Circuit Systems ICS189x 1521.50Sskrlligphy* at mii? phy ? # Intel IGP01E1000 1531.50Sskrllihphy* at mii? phy ? # Intel 82577 PHYs 1541.50Sskrllikphy* at mii? phy ? # Intel 82563 PHYs 1551.50Sskrllinphy* at mii? phy ? # Intel 82555 PHYs 1561.50Sskrlliophy* at mii? phy ? # Intel 82553 PHYs 1571.50Sskrlllxtphy* at mii? phy ? # Level One LXT-970 PHYs 1581.50Sskrllmakphy* at mii? phy ? # Marvell Semiconductor 88E1000 PHYs 1591.50Sskrllnsphy* at mii? phy ? # NS83840 PHYs 1601.50Sskrllnsphyter* at mii? phy ? # NS83843 PHYs 1611.50Sskrllpnaphy* at mii? phy ? # generic HomePNA PHYs 1621.50Sskrllqsphy* at mii? phy ? # Quality Semiconductor QS6612 PHYs 1631.50Sskrllrdcphy* at mii? phy ? # RDC R6040 10/100 PHY 1641.50Sskrllrgephy* at mii? phy ? # Realtek 8169S/8110S internal PHYs 1651.50Sskrllrlphy* at mii? phy ? # Realtek 8139/8201L PHYs 1661.50Sskrllsqphy* at mii? phy ? # Seeq 80220/80221/80223 PHYs 1671.50Sskrlltlphy* at mii? phy ? # ThunderLAN PHYs 1681.50Sskrlltqphy* at mii? phy ? # TDK Semiconductor PHYs 1691.50Sskrllurlphy* at mii? phy ? # Realtek RTL8150L internal PHYs 1701.50Sskrllukphy* at mii? phy ? # generic unknown PHYs 1711.18Sskrll 1721.14Sjakllsch# Broadcom Serial Control (I2C) 1731.78Sskrllbsciic* at fdt? 1741.14Sjakllschiic* at i2cbus? 1751.14Sjakllsch 1761.58Smacallan# 'DS3231 Raspberry Pi RTC Board Real Time Clock Module for Arduino' 1771.58Smacallan# sold by linksprite.com 1781.58Smacallan#dsrtc* at iic1 addr 0x68 flags 3231 1791.58Smacallan 1801.68Saymeric# MCP7940 based PiFace Real Time Clock 1811.68Saymeric#dsrtc* at iic1 addr 0x6f flags 7940 1821.68Saymeric 1831.14Sjakllsch# SPI controller 1841.78Sskrllbcmspi* at fdt? 1851.14Sjakllschspi* at spibus? 1861.14Sjakllsch 1871.64Sphx# MCP3x0x ADC 1881.64Sphx# flags selects the actual chip, refer to mcp3kadc(4) 1891.64Sphx#mcp3kadc0 at spi? slave 0 flags 0 1901.64Sphx 1911.43Skardel# PIFace or other boards using that chip (needs gpio) 1921.43Skardel#mcp23s17gpio0 at spi? slave 0 flags 0 1931.55Sjakllsch#mcp23s17gpio1 at spi? slave 0 flags 1 1941.43Skardel#mcp23s17gpio2 at spi? slave 0 flags 2 1951.43Skardel#mcp23s17gpio3 at spi? slave 0 flags 3 1961.43Skardel 1971.44Skardel# gpio support (e. g. mcp23s17gpio, bcmgpio) 1981.44Skardelgpio* at gpiobus? 1991.43Skardel 2001.1Sskrll# various options for wscons - we try to look as much like a standard 2011.1Sskrll# sun console as possible 2021.1Sskrlloptions WSEMUL_VT100 # sun terminal emulation 2031.5Sskrlloptions WS_DEFAULT_FG=WSCOL_WHITE 2041.5Sskrlloptions WS_DEFAULT_BG=WSCOL_BLACK 2051.5Sskrlloptions WS_KERNEL_FG=WSCOL_GREEN 2061.5Sskrlloptions WS_KERNEL_BG=WSCOL_BLACK 2071.24Sskrlloptions WSDISPLAY_COMPAT_PCVT # emulate some ioctls 2081.24Sskrlloptions WSDISPLAY_COMPAT_SYSCONS # emulate some more ioctls 2091.3Sabsoptions WSDISPLAY_COMPAT_USL # wsconscfg VT handling 2101.1Sskrlloptions WSDISPLAY_COMPAT_RAWKBD # can get raw scancodes 2111.1Sskrlloptions WSDISPLAY_DEFAULTSCREENS=4 2121.24Sskrll 2131.15Sjmcneill#options FONT_QVSS8x15 2141.1Sskrll#options FONT_GALLANT12x22 # the console font 2151.1Sskrll 2161.1Sskrll# Pseudo-Devices 2171.1Sskrll 2181.1Sskrll# network pseudo-devices 2191.9Sskrll#pseudo-device carp # Common Address Redundancy Protocol 2201.84Smaxv#pseudo-device npf # NPF packet filter 2211.1Sskrll#pseudo-device kttcp # network loopback 2221.9Sskrll#pseudo-device sl # Serial Line IP 2231.9Sskrll#pseudo-device strip # Starmode Radio IP (Metricom) 2241.9Sskrll#pseudo-device irframetty # IrDA frame line discipline 2251.9Sskrll#pseudo-device faith # IPv[46] TCP relay translation i/f 2261.9Sskrll#pseudo-device stf # 6to4 IPv6 over IPv4 encapsulation 2271.9Sskrll#pseudo-device agr # IEEE 802.3ad link aggregation 2281.1Sskrll 2291.1Sskrll# miscellaneous pseudo-devices 2301.78Sskrllpseudo-device openfirm 2311.9Sskrll 2321.9Sskrll# wscons pseudo-devices 2331.9Sskrllpseudo-device wsmux # mouse & keyboard multiplexor 2341.9Sskrllpseudo-device wsfont 2351.9Sskrll 2361.29Sjmcneill# userland interface to drivers, including autoconf and properties retrieval 2371.29Sjmcneill 2381.16Sjmcneill# local configuration 2391.16Sjmcneillcinclude "arch/evbarm/conf/RPI.local" 2401.75Snat 2411.75Snat# Bluetooth serial UART devices 2421.75Snatpseudo-device btuart 2431.75Snatpseudo-device bcsp 2441.75Snatpseudo-device bthfive 245