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