NetBSD/sys/dev/spi/files.spi

38 lines
776 B
Plaintext

# $NetBSD: files.spi,v 1.4 2014/04/06 17:59:39 kardel Exp $
define spibus { }
device spi { slave }
attach spi at spibus
file dev/spi/spi.c spi | spibus
#
# SPI client devices
#
# Common SPI flash support
define spiflashbus { }
device spiflash: disk
attach spiflash at spiflashbus
file dev/spi/spiflash.c spiflash | spiflashbus
# STMicro M25P SPI flash
device m25p: spiflashbus
attach m25p at spi
file dev/spi/m25p.c m25p
# TI TMP121 digital temperature sensor
device tmp121temp: sysmon_envsys
attach tmp121temp at spi
file dev/spi/tmp121.c tmp121temp
# MCP48x1 DAC
device mcp48x1dac
attach mcp48x1dac at spi
file dev/spi/mcp48x1.c mcp48x1dac
# MCP23S17 16-bit GPIO
device mcp23s17gpio: gpiobus
attach mcp23s17gpio at spi
file dev/spi/mcp23s17.c mcp23s17gpio