Linux 6.12 Bus, Sensor (regmap/IIO), Serial/CAN/USB, blk-mq & Network Drivers

For: Embedded Linux kernel driver, BSP, industrial bus, and edge networking engineers

Architect, modernize, and verify Linux 6.12 LTS bus client drivers, regmap/IIO sensor pipelines, serial/FlexCAN/USB stacks, blk-mq block drivers, and FEC NAPI / wireless / cellular networking on 32-bit ARMv7-A SoCs.

18 lessons6 labs~12h 45mLinux 6.12C11glibc 2.39Course 6 of 8 · Buses, IIO, Storage & Networking

What you'll build

lab m0155 min

Lab M01: SNVS 47-Bit Rollover RTC & Atomic AP3216C I2C Client Framing

Register Linux 6.12 rtc_device drivers via devm_rtc_allocate_device(), bind single-argument i2c_driver probes from Device Tree, and execute atomic repeated-start i2c_transfer() reads for AP3216C.

learner@ksa: ~/gl-e06/lab-m01
learner@ksa:~/gl-e06/lab-m01./files/rtc_i2c_clisnvs_sec=108789760 retries=1 msg0_flags=0x0 msg1_flags=0x1 ir=278 als=800 ps=346 obj=1learner@ksa:~/gl-e06/lab-m01
lab m0260 min

Lab M02: Full-Duplex ICM-20608 SPI Burst Framing & Volatile Regmap Caching

Wire DMA-safe ____cacheline_aligned SPI buffers under spi_sync(), frame 0x80-tagged ICM-20608 IMU transfers over ECSPI3, and unify I2C/SPI register access with regmap and REGCACHE_MAPLE.

learner@ksa: ~/gl-e06/lab-m02
learner@ksa:~/gl-e06/lab-m02./files/spi_regmap_clitx0=0xbb az=16384 gz=4 cfg=0x18 acc1=0x12 acc2=0x34 reads=3 writes=1 hits=2learner@ksa:~/gl-e06/lab-m02

Syllabus

gl-e06/

  • m01/ RTC Subsystem & i2c_driver Client Drivers

    Register Linux 6.12 rtc_device drivers via devm_rtc_allocate_device(), bind single-argument i2c_driver probes from Device Tree, and execute atomic repeated-start i2c_transfer() reads for AP3216C.

  • m02/ spi_driver (ICM-20608) & Unified regmap

    Wire DMA-safe ____cacheline_aligned SPI buffers under spi_sync(), frame 0x80-tagged ICM-20608 IMU transfers over ECSPI3, and unify I2C/SPI register access with regmap and REGCACHE_MAPLE.

  • m03/ Industrial I/O (IIO) & Internal SAR ADC

    Expose sensors through devm_iio_device_alloc() and iio_chan_spec instead of ad-hoc cdev ioctls, format FPU-free IIO_VAL_INT_PLUS_MICRO scaling and kfifo buffers, and calibrate i.MX6ULL ADC1.

  • m04/ tty/uart_driver, RS-485/GPS & FlexCAN

    Trace tty_driver/uart_port hardware RS-485 DE turnaround and NMEA GPS framing, compute FlexCAN time-quanta bit timing, and implement SocketCAN NAPI RX with Bus-Off recovery.

  • m05/ USB Host, OTG Role Switch & ConfigFS Gadget

    Decode USB 2.0 URB endpoint types on ChipIdea ci_hdrc_imx, wire EHCI host and OTG ID/usb-role-switch Device Tree nodes, and compose multi-function ConfigFS USB gadgets.

  • m06/ blk-mq Storage, FEC Ethernet (NAPI) & Wireless

    Implement Linux 6.12 blk-mq scatter-gather block drivers, debug FEC MDIO/phylink LAN8720A RMII 50 MHz clocking and NAPI descriptor rings, and integrate cfg80211 Wi-Fi with qmi_wwan 4G LTE.

Prerequisites

  • requiredGL-E04 & GL-E05 (or equivalent): Linux 6.12 platform drivers, Device Tree bindings, gpiod, concurrency primitives, and DMA/IRQ foundations
  • requiredARMv7-A 32-bit cross-compilation and host ISO C11 verification fluency (gcc -std=c11 -Wall -Wextra -Werror, GNU Make)
  • Bridged in M1Linux 6.12 single-arg i2c_driver .probe(struct i2c_client *), devm_rtc_allocate_device(), and atomic repeated-start i2c_transfer() (Module 1)
  • Bridged in M2DMA-safe ____cacheline_aligned SPI buffers, spi_sync() framing, and unified regmap RBTREE/MAPLE caching (Module 2)
  • Bridged in M3Industrial I/O (IIO) fixed-point IIO_VAL_INT_PLUS_MICRO scaling, triggered kfifo ring buffers, and vf610_adc SAR calibration (Module 3)
  • Bridged in M4–M6Kernel-controlled RS-485 UART turnaround, FlexCAN bit-timing quanta & NAPI error confinement, ChipIdea USB OTG & ConfigFS composite gadgets, blk-mq storage, and FEC phylink/NAPI networking (Modules 4–6)

Series map

  1. GL-E00Linux Host Workbench, POSIX Shell, Network Boot & Embedded C Style — Host VM/udev bridges, PTY/shell streams, FHS/permissions/MBR alignment, APT/TFTP/NFS boot, kernel C style & bring-up fault triage
  2. GL-E01ARMv7-A Cortex-A7 Architecture, Boot ROM & Bare-Metal BSP — Cross-workbench, Cortex-A7 modes/CP15, ARMv7 assembly, IOMUXC pad muxing, IVT/DCD Boot ROM, linker scripts & modular BSP
  3. GL-E02Bare-Metal Clocks, GIC Interrupts, DDR3, LCD & Sensor Buses — CCM PLL/PFD clock tree, GICv2 interrupts, EPIT/GPT timers, UART printf, MMDC DDR3 calibration, eLCDIF/FT5426/PWM & RTC/I2C/SPI
  4. GL-E03U-Boot 2025.x, Linux 6.12 Porting, Root Filesystems & Target Debugging — U-Boot Kbuild/SPL/relocation/porting, Linux 6.12 arch/arm boot/DTS/ENET port, BusyBox/Buildroot/Yocto rootfs, UUU & gdbserver
  5. GL-E04Linux 6.12 Character Drivers, Device Tree, gpiod, Concurrency & IRQ/Wait I/O — Loadable modules, cdev/udev, Flattened Device Tree, pinctrl/gpiod, atomic/spinlock/mutex/cleanup.h, timers, IRQs, wait queues & poll
  6. GL-E05Linux 6.12 Driver Model, Input, DRM/Framebuffer, Touch, PWM & ALSA SoC — platform/misc/sysfs driver model, input_dev, DRM/KMS & fbdev display, SiI9022A HDMI, MT Type-B touch, pwm-backlight & WM8960 ASoC
  7. GL-E06Linux 6.12 Bus, Sensor (regmap/IIO), Serial/CAN/USB, blk-mq & Network Drivers — RTC/I2C/SPI client drivers, regmap, IIO & SAR ADC, UART/RS-485/GPS, FlexCAN SocketCAN, USB Host/OTG/Gadget, blk-mq & FEC NAPI/Wi-Fi/4G this course
  8. GL-E07Linux 6.12 ASoC Audio Drivers, Early Boot Splash, Debian Rootfs & Systemd Daemons — SAI2/WM8960 ASoC & DAPM, U-Boot/CLUT224/psplash boot graphics, debootstrap Debian armhf, systemd watchdogs, SysV/POSIX IPC & vsftpd/sftp

Related live cohorts: DRV-120 · Linux Device Drivers (live cohort) NET-101 · Linux Networking Stack Internals (live cohort)

Companion formats

Slide deck

16:9 review slides with terminal listings, diagrams, and speaker notes.

Reference handbook

Printable HTML and PDF engineering reference covering every module and UAPI.

Flashcards

Leitner spaced-repetition terminal cards and TSV deck for syscalls, flags, and pitfalls.

Kernel Systems Academy engineering studio

Every Kernel Systems Academy course follows our 35% principles / 20% guided investigation / 45% engineering studio pedagogy. Listings are compiled against Linux 6.12 · C11 · glibc 2.39 under strict compiler flags (-Wall -Wextra -Werror), and each module culminates in an evidence-checked lab graded locally by ./check.sh.

Frequently asked questions

Can I study this course offline from disk?

Yes. All fonts, stylesheets, diagrams, search indexes, and progress trackers use relative paths and local browser storage, so the bundle works identically over HTTP and file://.

How are the hands-on labs graded?

Each lab directory includes starter source files and an executable ./check.sh runner emitting TAP version 13 diagnostics (ok / not ok) and exiting 0 when every check passes.

What is included in the free preview?

Preview lessons and the opening module lab are unlocked in full so you can inspect our C11 listings, strace transcripts, and ./check.sh workflow before subscribing.

search — fzf

0/0 ───────────────────────────────────────────

keyboard shortcuts — less

/
search
f
focus mode
[
previous
]
next
?
help
Esc
close

figure