Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

spi_register_master(9) [centos man page]

SPI_REGISTER_MASTER(9)					  Serial Peripheral Interface (S				    SPI_REGISTER_MASTER(9)

NAME
spi_register_master - register SPI master controller SYNOPSIS
int spi_register_master(struct spi_master * master); ARGUMENTS
master initialized master, originally from spi_alloc_master CONTEXT
can sleep DESCRIPTION
SPI master controllers connect to their drivers using some non-SPI bus, such as the platform bus. The final stage of probe in that code includes calling spi_register_master to hook up to this SPI bus glue. SPI controllers use board specific (often SOC specific) bus numbers, and board-specific addressing for SPI devices combines those numbers with chip select numbers. Since SPI does not directly support dynamic device identification, boards need configuration tables telling which chip is at which address. This must be called from context that can sleep. It returns zero on success, else a negative error code (dropping the master's refcount). After a successful return, the caller is responsible for calling spi_unregister_master. COPYRIGHT
Kernel Hackers Manual 3.10 June 2014 SPI_REGISTER_MASTER(9)

Check Out this Related Man Page

SPI(4)							   BSD Kernel Interfaces Manual 						    SPI(4)

NAME
spi -- introduction to machine-independent SPI bus support and drivers SYNOPSIS
spi* at mainbus? Other attachments are machine-dependent and will depend on the bus topology of your system. See intro(4) for your system for more informa- tion. DESCRIPTION
NetBSD includes a machine dependent SPI (Serial Peripheral Interface) bus subsystem, and several different machine-independent SPI device drivers. Your system may support additional machine-dependent SPI devices. Consult your system's intro(4) for additional information. SPI is a 4-wire synchronous full-duplex serial bus. Some systems provide support for Microwire, which is Philips' name for a strict subset of SPI, with more rigidly defined signaling. Therefore, Microwire devices are also supported by the SPI framework. Note that when referencing SPI devices in a config(1) file, the 'slave' must be provided, as SPI lacks any way to automatically probe devices. HARDWARE
NetBSD includes the following machine-independent SPI drivers m25p STMicroelectronics M25P family of NOR flash devices. tm121temp Texas Instruments TMP121 temperature sensor. SEE ALSO
m25p(4), tm121temp(4) HISTORY
The machine-independent SPI framework was written by Garrett D'Amore for the Champaign-Urbana Community Wireless Network Project (CUWiN), and appeared in NetBSD 4.0. BSD
October 9, 2006 BSD
Man Page

We Also Found This Discussion For You

1. UNIX for Dummies Questions & Answers

modprobe spi_bitbang results in error messages

Hi, I'm having a problem with the voyage linux distribution. I've been busy to include a CAN driver, which uses the SPI bus to communicate. While I was busy debugging the code, everything worked fine while performing a modprobe of the SPI driver to get it all running. But the... (1 Reply)
Discussion started by: nistap
1 Replies