← DriversDRIVERS 5.4
I2C and SPI Drivers
Not yet catalogued — moving from the protocol theory in 3.6 to actual kernel client drivers for both buses. 10 bytes across 2 chapters.
Planned chapters
- A — I2C Client Drivers. The adapter-vs-client topology, i2c_driver registration and probe via device-tree matching, the SMBus helper functions for register access, raw i2c_transfer messages (the code-level payoff of 3.6.B5's repeated-start), and a full sensor-driver pattern: probe, read ID, configure, expose readings.
- B — SPI Client Drivers. spi_driver registration with chip-select from device tree, spi_sync and its tx/rx buffers, mode and speed setup as the code-level payoff of 3.6.C3, and what actually differs between an I2C and an SPI driver's structure.
Not yet catalogued — check back once this topic is underway.
Notes from readers
Comments — via GitHub