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