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