RPI revision 1.93
1#
2#	$NetBSD: RPI,v 1.93 2020/10/30 11:02:50 rin 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
153smscphy*	at mii? phy ?		# SMSC LAN87xx PHYs
154sqphy*		at mii? phy ?		# Seeq 80220/80221/80223 PHYs
155tlphy*		at mii? phy ?		# ThunderLAN PHYs
156tqphy*		at mii? phy ?		# TDK Semiconductor PHYs
157urlphy*		at mii? phy ?		# Realtek RTL8150L internal PHYs
158ukphy*		at mii? phy ?		# generic unknown PHYs
159
160# Broadcom Serial Control (I2C)
161bsciic* at fdt?
162iic* at i2cbus?
163
164# 'DS3231 Raspberry Pi RTC Board Real Time Clock Module for Arduino'
165# sold by linksprite.com
166#dsrtc* at iic1 addr 0x68 flags 3231
167
168# MCP7940 based PiFace Real Time Clock
169#dsrtc* at iic1 addr 0x6f flags 7940
170
171# SPI controller
172bcmspi* at fdt?
173spi* at spibus?
174
175# MCP3x0x ADC
176# flags selects the actual chip, refer to mcp3kadc(4)
177#mcp3kadc0 at spi? slave 0 flags 0
178
179# PIFace or other boards using that chip (needs gpio)
180#mcp23s17gpio0 at spi? slave 0 flags 0
181#mcp23s17gpio1 at spi? slave 0 flags 1
182#mcp23s17gpio2 at spi? slave 0 flags 2
183#mcp23s17gpio3 at spi? slave 0 flags 3
184
185# gpio support (e. g. mcp23s17gpio, bcmgpio)
186gpio*		at gpiobus?
187
188# various options for wscons - we try to look as much like a standard
189# sun console as possible
190options 	WSEMUL_VT100		# sun terminal emulation
191options 	WS_DEFAULT_FG=WSCOL_WHITE
192options 	WS_DEFAULT_BG=WSCOL_BLACK
193options 	WS_KERNEL_FG=WSCOL_GREEN
194options 	WS_KERNEL_BG=WSCOL_BLACK
195options 	WSDISPLAY_COMPAT_PCVT		# emulate some ioctls
196options 	WSDISPLAY_COMPAT_SYSCONS	# emulate some more ioctls
197options 	WSDISPLAY_COMPAT_USL		# wsconscfg VT handling
198options 	WSDISPLAY_COMPAT_RAWKBD		# can get raw scancodes
199options 	WSDISPLAY_DEFAULTSCREENS=4
200
201options 	FONT_BOLD8x16
202options 	FONT_BOLD16x32
203
204#options 	FONT_QVSS8x15
205#options 	FONT_GALLANT12x22	# the console font
206
207# Pseudo-Devices
208
209# network pseudo-devices
210#pseudo-device	carp			# Common Address Redundancy Protocol
211#pseudo-device	npf			# NPF packet filter
212#pseudo-device	kttcp			# network loopback
213#pseudo-device	sl			# Serial Line IP
214#pseudo-device	irframetty		# IrDA frame line discipline
215#pseudo-device	faith			# IPv[46] TCP relay translation i/f
216#pseudo-device	stf			# 6to4 IPv6 over IPv4 encapsulation
217#pseudo-device	agr			# IEEE 802.3ad link aggregation
218
219# miscellaneous pseudo-devices
220pseudo-device	openfirm
221
222# wscons pseudo-devices
223pseudo-device	wsmux			# mouse & keyboard multiplexor
224pseudo-device	wsfont
225
226# userland interface to drivers, including autoconf and properties retrieval
227
228# local configuration
229cinclude "arch/evbarm/conf/RPI.local"
230
231# Bluetooth devices
232include "dev/bluetooth/bluetoothdevices.config"
233
234