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