1# 2# $NetBSD: RPI,v 1.91 2020/05/18 21:19:35 jmcneill Exp $ 3# 4# RPi -- Raspberry Pi 5# 6 7include "arch/evbarm/conf/std.rpi" 8include "arch/evbarm/conf/GENERIC.common" 9 10options CPU_ARM1176 11options SOC_BCM2835 12options TPIDRPRW_IS_CURLWP 13options ARM11_COMPAT_MMU 14options __HAVE_MM_MD_CACHE_ALIASING 15makeoptions CPUFLAGS="-march=armv6z -mtune=arm1176jzf-s -mfpu=vfp" 16 17# Architecture options 18 19# Development and Debugging options 20#options KGDB,KGDB_PLCOMUNIT=0,KGDB_DEVRATE=115200,KGDB_CONMODE=0xB00 21#options VERBOSE_INIT_ARM 22#options EARLYCONS=bcm2835,CONSADDR=0x20201000 23makeoptions DEBUG="-g" # compile full symbol table 24makeoptions COPY_SYMTAB=1 25options PLCONSOLE 26#options PLCONSOLE,PLCOMCNUNIT=0,PLCONSPEED=115200,PLCONMODE=0xB00 27 28## USB Debugging options 29#options USB_DEBUG 30#options DWC2_DEBUG 31#options UHUB_DEBUG 32 33 34# Valid options for BOOT_ARGS: 35# single Boot to single user only 36# kdb Give control to kernel debugger 37# ask Ask for file name to reboot from 38# memorydisk=<n> Set memorydisk size to <n> KB 39# quiet Show aprint_naive output 40# verbose Show aprint_normal and aprint_verbose output 41#options BOOT_ARGS="\"\"" 42 43config netbsd root on ? type ? 44 45# Device tree support 46armfdt0 at root 47simplebus* at fdt? pass 0 48 49# The CPU(s) 50cpus* at fdt? pass 0 51cpu* at fdt? pass 0 52 53fclock* at fdt? pass 0 54 55# Interrupt Controller 56bcmicu* at fdt? pass 1 57 58# System timer 59bcmtmr0 at fdt? pass 1 60 61# Clock manager 62bcmcprman0 at fdt? pass 1 63 64# AUX 65bcmaux0 at fdt? pass 2 66 67# pulse width modulator manager 68#bcmpwm0 at fdt? 69 70fregulator* at fdt? 71gpiokeys* at fdt? 72 73# GPIO LEDs 74gpioleds* at fdt? 75 76# VC Mailbox 77bcmmbox* at fdt? 78vcmbox* at bcmmbox? 79 80# DMA Controller 81bcmdmac0 at fdt? 82 83# VCHIQ 84vchiq0 at fdt? 85 86# AUDS 87vcaudio0 at vchiq0 88audio* at audiobus? 89 90spkr* at audio? # PC speaker (synthesized) 91 92# PL011 uart 93plcom* at fdt? 94 95# AUX UART 96com0 at fdt? 97 98# Framebuffer console 99genfb0 at fdt? 100wsdisplay* at genfb? 101options VCONS_DRAW_INTR 102#options RPI_HWCURSOR 103 104# Power management, Reset controller and Watchdog registers 105bcmpmwdog* at fdt? 106 107# Random number generator 108bcmrng0 at fdt? 109 110# GPIO 111bcmgpio* at fdt? 112 113# Arasan SD/MMC Interface 114sdhc* at fdt? 115sdmmc* at sdhc? 116 117# SD host controller 118bcmsdhost* at fdt? 119sdmmc* at bcmsdhost? 120 121ld* at sdmmc? 122bwfm* at sdmmc? 123 124# On-board USB 125dwctwo* at fdt? 126usb* at dwctwo? 127 128# USB device drivers 129include "dev/usb/usbdevices.config" 130 131midi* at midibus? 132 133# MII/PHY support 134exphy* at mii? phy ? # 3Com internal PHYs 135gentbi* at mii? phy ? # Generic Ten-Bit 1000BASE-[CLS]X PHYs 136glxtphy* at mii? phy ? # Level One LXT-1000 PHYs 137gphyter* at mii? phy ? # NS83861 Gig-E PHY 138icsphy* at mii? phy ? # Integrated Circuit Systems ICS189x 139igphy* at mii? phy ? # Intel IGP01E1000 140ihphy* at mii? phy ? # Intel 82577 PHYs 141ikphy* at mii? phy ? # Intel 82563 PHYs 142inphy* at mii? phy ? # Intel 82555 PHYs 143iophy* at mii? phy ? # Intel 82553 PHYs 144lxtphy* at mii? phy ? # Level One LXT-970 PHYs 145makphy* at mii? phy ? # Marvell Semiconductor 88E1000 PHYs 146nsphy* at mii? phy ? # NS83840 PHYs 147nsphyter* at mii? phy ? # NS83843 PHYs 148pnaphy* at mii? phy ? # generic HomePNA PHYs 149qsphy* at mii? phy ? # Quality Semiconductor QS6612 PHYs 150rdcphy* at mii? phy ? # RDC R6040 10/100 PHY 151rgephy* at mii? phy ? # Realtek 8169S/8110S internal PHYs 152rlphy* at mii? phy ? # Realtek 8139/8201L PHYs 153sqphy* at mii? phy ? # Seeq 80220/80221/80223 PHYs 154tlphy* at mii? phy ? # ThunderLAN PHYs 155tqphy* at mii? phy ? # TDK Semiconductor PHYs 156urlphy* at mii? phy ? # Realtek RTL8150L internal PHYs 157ukphy* at mii? phy ? # generic unknown PHYs 158 159# Broadcom Serial Control (I2C) 160bsciic* at fdt? 161iic* at i2cbus? 162 163# 'DS3231 Raspberry Pi RTC Board Real Time Clock Module for Arduino' 164# sold by linksprite.com 165#dsrtc* at iic1 addr 0x68 flags 3231 166 167# MCP7940 based PiFace Real Time Clock 168#dsrtc* at iic1 addr 0x6f flags 7940 169 170# SPI controller 171bcmspi* at fdt? 172spi* at spibus? 173 174# MCP3x0x ADC 175# flags selects the actual chip, refer to mcp3kadc(4) 176#mcp3kadc0 at spi? slave 0 flags 0 177 178# PIFace or other boards using that chip (needs gpio) 179#mcp23s17gpio0 at spi? slave 0 flags 0 180#mcp23s17gpio1 at spi? slave 0 flags 1 181#mcp23s17gpio2 at spi? slave 0 flags 2 182#mcp23s17gpio3 at spi? slave 0 flags 3 183 184# gpio support (e. g. mcp23s17gpio, bcmgpio) 185gpio* at gpiobus? 186 187# various options for wscons - we try to look as much like a standard 188# sun console as possible 189options WSEMUL_VT100 # sun terminal emulation 190options WS_DEFAULT_FG=WSCOL_WHITE 191options WS_DEFAULT_BG=WSCOL_BLACK 192options WS_KERNEL_FG=WSCOL_GREEN 193options WS_KERNEL_BG=WSCOL_BLACK 194options WSDISPLAY_COMPAT_PCVT # emulate some ioctls 195options WSDISPLAY_COMPAT_SYSCONS # emulate some more ioctls 196options WSDISPLAY_COMPAT_USL # wsconscfg VT handling 197options WSDISPLAY_COMPAT_RAWKBD # can get raw scancodes 198options WSDISPLAY_DEFAULTSCREENS=4 199 200#options FONT_QVSS8x15 201#options FONT_GALLANT12x22 # the console font 202 203# Pseudo-Devices 204 205# network pseudo-devices 206#pseudo-device carp # Common Address Redundancy Protocol 207#pseudo-device npf # NPF packet filter 208#pseudo-device kttcp # network loopback 209#pseudo-device sl # Serial Line IP 210#pseudo-device irframetty # IrDA frame line discipline 211#pseudo-device faith # IPv[46] TCP relay translation i/f 212#pseudo-device stf # 6to4 IPv6 over IPv4 encapsulation 213#pseudo-device agr # IEEE 802.3ad link aggregation 214 215# miscellaneous pseudo-devices 216pseudo-device openfirm 217 218# wscons pseudo-devices 219pseudo-device wsmux # mouse & keyboard multiplexor 220pseudo-device wsfont 221 222# userland interface to drivers, including autoconf and properties retrieval 223 224# local configuration 225cinclude "arch/evbarm/conf/RPI.local" 226 227# Bluetooth devices 228include "dev/bluetooth/bluetoothdevices.config" 229 230