1# $NetBSD: files.fdt,v 1.73 2024/05/09 12:09:59 pho Exp $
2
3include	"external/bsd/libfdt/conf/files.libfdt"
4
5defflag	opt_fdt.h				FDTBASE : libfdt, ofw_subr
6defflag	opt_fdt.h				FDT: FDTBASE
7defparam opt_fdt.h				FDT_MEMORY_RANGES
8defparam opt_fdt.h				FDT_DEFAULT_STDOUT_PATH
9
10define	fdt { [pass = 10] } : clk, pwm
11
12device	simplebus: fdt
13attach	simplebus at fdt
14file	dev/fdt/fdtbus.c			fdt
15
16file	dev/fdt/fdt_userconf.c			fdt & userconf
17
18device	fregulator
19attach	fregulator at fdt
20file	dev/fdt/fixedregulator.c		fregulator
21
22device	gregulator
23attach	gregulator at fdt
24file	dev/fdt/gpioregulator.c			gregulator
25
26device	pregulator
27attach	pregulator at fdt
28file	dev/fdt/pwmregulator.c			pregulator
29
30device	fclock: clk
31attach	fclock at fdt
32file	dev/fdt/fixedclock.c			fclock
33
34device	ffclock: clk
35attach	ffclock at fdt
36file	dev/fdt/fixedfactorclock.c		ffclock
37
38device	gpiokeys: sysmon_envsys, sysmon_power, wskbddev, linux_keymap
39attach	gpiokeys at fdt
40file	dev/fdt/gpiokeys.c			gpiokeys
41
42device	gpioleds: leds
43attach	gpioleds at fdt
44file	dev/fdt/gpioleds.c			gpioleds
45
46file	dev/fdt/fdt_port.c			fdt_port
47
48device	connector: fdt_port
49attach	connector at fdt with fdt_connector
50file	dev/fdt/connector_fdt.c			fdt_connector
51
52device	panel: fdt_port
53attach	panel at fdt with fdt_panel
54file	dev/fdt/panel_fdt.c			fdt_panel
55
56attach	panel at fdt with panel_fdt: drmkms
57file	dev/fdt/fdt_panel.c			panel_fdt
58makeoptions	panel_fdt	"CPPFLAGS.panel_fdt"+="${CPPFLAGS.drmkms}"
59
60device	dispcon: fdt_port, drmkms, ddc_read_edid
61attach	dispcon at fdt with dispcon_hdmi
62file	dev/fdt/hdmi_connector.c		dispcon_hdmi
63makeoptions	dispcon_hdmi	"CPPFLAGS.dispcon_hdmi"+="${CPPFLAGS.drmkms}"
64
65device	iicmux: i2cbus, i2cmux
66attach	iicmux at fdt with iicmux_fdt
67file	dev/fdt/i2cmux_fdt.c			iicmux_fdt
68
69file	dev/fdt/fdt_boot.c			fdtbase
70file	dev/fdt/fdt_memory.c			fdtbase
71file	dev/fdt/fdt_openfirm.c			fdtbase
72file	dev/fdt/fdt_platform.c			fdtbase
73file	dev/fdt/fdt_subr.c			fdtbase
74
75file	dev/fdt/fdt_clock.c			fdt
76file	dev/fdt/fdt_dai.c			fdt
77file	dev/fdt/fdt_dma.c			fdt
78file	dev/fdt/fdt_ddb.c			fdt & ddb
79file	dev/fdt/fdt_gpio.c			fdt
80file	dev/fdt/fdt_i2c.c			fdt
81file	dev/fdt/fdt_iommu.c			fdt
82file	dev/fdt/fdt_intr.c			fdt
83file	dev/fdt/fdt_mbox.c			fdt
84file	dev/fdt/fdt_mmc_pwrseq.c		fdt
85file	dev/fdt/fdt_phy.c			fdt
86file	dev/fdt/fdt_power.c			fdt
87file	dev/fdt/fdt_powerdomain.c		fdt
88file	dev/fdt/fdt_pwm.c			fdt
89file	dev/fdt/fdt_regulator.c			fdt
90file	dev/fdt/fdt_reset.c			fdt
91file	dev/fdt/fdt_rtc.c			fdt
92file	dev/fdt/fdt_spi.c			fdt
93file	dev/fdt/fdt_syscon.c			fdt
94file	dev/fdt/fdt_pinctrl.c			fdt
95
96device	cpus: fdt
97attach	cpus at fdt
98file	dev/fdt/cpus.c				cpus
99
100device	mmcpwrseq
101attach	mmcpwrseq at fdt with mmcpwrseq_simple
102file	dev/fdt/mmc_pwrseq_simple.c		mmcpwrseq_simple
103attach	mmcpwrseq at fdt with mmcpwrseq_emmc
104file	dev/fdt/mmc_pwrseq_emmc.c		mmcpwrseq_emmc
105
106device	syscon: fdt
107attach	syscon at fdt
108file	dev/fdt/syscon.c			syscon
109
110device	pinctrl
111attach	pinctrl at fdt with pinctrl_single
112file	dev/fdt/pinctrl_single.c		pinctrl_single
113
114device	pwmbacklight
115attach	pwmbacklight at fdt
116file	dev/fdt/pwm_backlight.c			pwmbacklight
117
118device	pwmfan
119attach	pwmfan at fdt
120file	dev/fdt/pwm_fan.c			pwmfan
121
122device	ausoc: audiobus
123attach	ausoc at fdt
124file	dev/fdt/ausoc.c				ausoc
125
126device	spdiftx
127attach	spdiftx at fdt
128file	dev/fdt/spdif_tx.c			spdiftx
129
130define	fdt_display_timing
131file	dev/fdt/display_timing.c		fdt_display_timing
132
133# Display controller
134attach	genfb at fdt with simplefb
135file	dev/fdt/simplefb.c			simplefb
136
137# NS 8250 compatible UART
138attach	com at fdt with ns8250_uart
139file	dev/fdt/ns8250_uart.c			ns8250_uart
140
141# Designware APB UART
142attach	com at fdt with dw_apb_uart
143file	dev/fdt/dw_apb_uart.c			dw_apb_uart
144
145# EHCI
146attach	ehci at fdt with ehci_fdt
147file	dev/fdt/ehci_fdt.c			ehci_fdt
148
149# OHCI
150attach	ohci at fdt with ohci_fdt
151file	dev/fdt/ohci_fdt.c			ohci_fdt
152
153# Cadence USB3 XHCI
154attach	xhci at fdt with cdns3_fdt
155file	dev/fdt/cdns3_fdt.c			cdns3_fdt
156
157# Designware USB2 OTG
158attach	dwctwo at fdt with dwc2_fdt
159file	dev/fdt/dwc2_fdt.c			dwc2_fdt
160
161# Designware USB3 XHCI
162attach	xhci at fdt with dwc3_fdt
163file	dev/fdt/dwc3_fdt.c			dwc3_fdt
164
165# Designware SD/MMC
166attach	dwcmmc at fdt with dwcmmc_fdt
167file	dev/fdt/dwcmmc_fdt.c			dwcmmc_fdt
168
169# Designware Watchdog Timer
170attach	dwcwdt at fdt with dwcwdt_fdt
171file	dev/fdt/dwcwdt_fdt.c			dwcwdt_fdt
172
173# Virtio virtio,mmio
174attach	virtio at fdt with virtio_mmio_fdt:	virtio_mmio
175file	dev/fdt/virtio_mmio_fdt.c		virtio_mmio_fdt
176
177# QEMU Firmware Configuration (fw_cfg) device
178attach 	qemufwcfg at fdt with qemufwcfg_fdt
179file	dev/fdt/qemufwcfg_fdt.c			qemufwcfg_fdt
180
181# ARM PrimeCell General Purpose Input/Output (PL061)
182attach 	plgpio at fdt with plgpio_fdt
183file	dev/fdt/pl061gpio_fdt.c			plgpio_fdt
184
185# AHCI SATA controller
186attach	ahcisata at fdt with ahcisata_fdt
187file	dev/fdt/ahcisata_fdt.c			ahcisata_fdt
188
189# Designware I2C
190attach 	dwiic at fdt with dwiic_fdt
191file	dev/fdt/dwiic_fdt.c			dwiic_fdt
192
193# Cadence I2C
194attach	cdnsiic at fdt with cdnsiic_fdt
195file	dev/fdt/cdnsiic_fdt.c			cdnsiic_fdt
196
197# AMD Cryptographic Coprocessor
198attach	amdccp at fdt with amdccp_fdt
199file	dev/fdt/amdccp_fdt.c			amdccp_fdt
200
201# Arasan SDHCI controller
202attach	sdhc at fdt with arasan_sdhc_fdt
203file	dev/fdt/arasan_sdhc_fdt.c		arasan_sdhc_fdt
204
205# Generic USB PHY
206device	usbnopphy
207attach	usbnopphy at fdt
208file	dev/fdt/usbnopphy.c			usbnopphy
209
210# Simple Amplifier Audio Driver
211device	simpleamp
212attach	simpleamp at fdt
213file	dev/fdt/simple_amplifier.c		simpleamp
214
215# Broadcom GENET v5
216attach	genet at fdt with genet_fdt
217file	dev/fdt/genet_fdt.c			genet_fdt
218
219# Google Goldfish RTC
220attach	gfrtc at fdt with gfrtc_fdt
221file	dev/fdt/gfrtc_fdt.c			gfrtc_fdt
222