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
7 include "arch/evbarm/conf/std.rpi"
8 include "arch/evbarm/conf/GENERIC.common"
9
10 options CPU_ARM1176
11 options SOC_BCM2835
12 options TPIDRPRW_IS_CURLWP
13 options ARM11_COMPAT_MMU
14 options __HAVE_MM_MD_CACHE_ALIASING
15 makeoptions 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
23 makeoptions DEBUG="-g" # compile full symbol table
24 makeoptions COPY_SYMTAB=1
25 options 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
43 config netbsd root on ? type ?
44
45 # Device tree support
46 armfdt0 at root
47 simplebus* at fdt? pass 0
48
49 # The CPU(s)
50 cpus* at fdt? pass 0
51 cpu* at fdt? pass 0
52
53 fclock* at fdt? pass 0
54
55 # Interrupt Controller
56 bcmicu* at fdt? pass 1
57
58 # System timer
59 bcmtmr0 at fdt? pass 1
60
61 # Clock manager
62 bcmcprman0 at fdt? pass 1
63
64 # AUX
65 bcmaux0 at fdt? pass 2
66
67 # pulse width modulator manager
68 #bcmpwm0 at fdt?
69
70 fregulator* at fdt?
71 gpiokeys* at fdt?
72
73 # GPIO LEDs
74 gpioleds* at fdt?
75
76 # VC Mailbox
77 bcmmbox* at fdt?
78 vcmbox* at bcmmbox?
79
80 # DMA Controller
81 bcmdmac0 at fdt?
82
83 # VCHIQ
84 vchiq0 at fdt?
85
86 # AUDS
87 vcaudio0 at vchiq0
88 audio* at audiobus?
89
90 spkr* at audio? # PC speaker (synthesized)
91
92 # PL011 uart
93 plcom* at fdt?
94
95 # AUX UART
96 com0 at fdt?
97
98 # Framebuffer console
99 genfb0 at fdt?
100 wsdisplay* at genfb?
101 options VCONS_DRAW_INTR
102 #options RPI_HWCURSOR
103
104 # Power management, Reset controller and Watchdog registers
105 bcmpmwdog* at fdt?
106
107 # Random number generator
108 bcmrng0 at fdt?
109
110 # GPIO
111 bcmgpio* at fdt?
112
113 # Arasan SD/MMC Interface
114 sdhc* at fdt?
115 sdmmc* at sdhc?
116
117 # SD host controller
118 bcmsdhost* at fdt?
119 sdmmc* at bcmsdhost?
120
121 ld* at sdmmc?
122 bwfm* at sdmmc?
123
124 # On-board USB
125 dwctwo* at fdt?
126 usb* at dwctwo?
127
128 # USB device drivers
129 include "dev/usb/usbdevices.config"
130
131 midi* at midibus?
132
133 # MII/PHY support
134 exphy* at mii? phy ? # 3Com internal PHYs
135 gentbi* at mii? phy ? # Generic Ten-Bit 1000BASE-[CLS]X PHYs
136 glxtphy* at mii? phy ? # Level One LXT-1000 PHYs
137 gphyter* at mii? phy ? # NS83861 Gig-E PHY
138 icsphy* at mii? phy ? # Integrated Circuit Systems ICS189x
139 igphy* at mii? phy ? # Intel IGP01E1000
140 ihphy* at mii? phy ? # Intel 82577 PHYs
141 ikphy* at mii? phy ? # Intel 82563 PHYs
142 inphy* at mii? phy ? # Intel 82555 PHYs
143 iophy* at mii? phy ? # Intel 82553 PHYs
144 lxtphy* at mii? phy ? # Level One LXT-970 PHYs
145 makphy* at mii? phy ? # Marvell Semiconductor 88E1000 PHYs
146 nsphy* at mii? phy ? # NS83840 PHYs
147 nsphyter* at mii? phy ? # NS83843 PHYs
148 pnaphy* at mii? phy ? # generic HomePNA PHYs
149 qsphy* at mii? phy ? # Quality Semiconductor QS6612 PHYs
150 rdcphy* at mii? phy ? # RDC R6040 10/100 PHY
151 rgephy* at mii? phy ? # Realtek 8169S/8110S internal PHYs
152 rlphy* at mii? phy ? # Realtek 8139/8201L PHYs
153 smscphy* at mii? phy ? # SMSC LAN87xx PHYs
154 sqphy* at mii? phy ? # Seeq 80220/80221/80223 PHYs
155 tlphy* at mii? phy ? # ThunderLAN PHYs
156 tqphy* at mii? phy ? # TDK Semiconductor PHYs
157 urlphy* at mii? phy ? # Realtek RTL8150L internal PHYs
158 ukphy* at mii? phy ? # generic unknown PHYs
159
160 # Broadcom Serial Control (I2C)
161 bsciic* at fdt?
162 iic* 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
172 bcmspi* at fdt?
173 spi* 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)
186 gpio* at gpiobus?
187
188 # various options for wscons - we try to look as much like a standard
189 # sun console as possible
190 options WSEMUL_VT100 # sun terminal emulation
191 options WS_DEFAULT_FG=WSCOL_WHITE
192 options WS_DEFAULT_BG=WSCOL_BLACK
193 options WS_KERNEL_FG=WSCOL_GREEN
194 options WS_KERNEL_BG=WSCOL_BLACK
195 options WSDISPLAY_COMPAT_PCVT # emulate some ioctls
196 options WSDISPLAY_COMPAT_SYSCONS # emulate some more ioctls
197 options WSDISPLAY_COMPAT_USL # wsconscfg VT handling
198 options WSDISPLAY_COMPAT_RAWKBD # can get raw scancodes
199 options WSDISPLAY_DEFAULTSCREENS=4
200
201 options FONT_BOLD8x16
202 options 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
220 pseudo-device openfirm
221
222 # wscons pseudo-devices
223 pseudo-device wsmux # mouse & keyboard multiplexor
224 pseudo-device wsfont
225
226 # userland interface to drivers, including autoconf and properties retrieval
227
228 # local configuration
229 cinclude "arch/evbarm/conf/RPI.local"
230
231 # Bluetooth devices
232 include "dev/bluetooth/bluetoothdevices.config"
233
234