Chip Catalogue
The SDK ships 80 chip drivers under chips/<part>/, described by 84 manifests under metadata/chips/. Each driver is independent, opt-in, and named after the chip's natural manufacturer name (no alp_ prefix — that's reserved for SDK-level abstractions). The four manifests without a driver are declared driver_status: none: the AEN on-module Ethernet PHY dp83825 (reached through Zephyr's Ethernet MAC glue and raw MDIO, not an SDK driver) and the camera sensors imx296, imx335 and ov5647, whose streaming lives entirely in Zephyr video drivers. The manifest/driver parity is CI-enforced against a reasoned allowlist, so a manifest can't quietly imply code that doesn't exist.
The Tier-0 drivers (on-module silicon for AEN / V2N / V2N-M1, plus the EVK board-side parts) carry the [ABI-STABLE] annotation and ride the SDK's normal ABI guarantees. The drivers added in the §D ecosystem expansion are marked [ABI-EXPERIMENTAL].
Most manifests still declare verification.hil_silicon: untested — treat their lifecycle sequences, register values, and timing numbers as paper-correct until the v1.0 verification sweep lands. As of v0.17.0 a handful carry a bench record, each scoped exactly as its manifest states:
| Manifest | hil_silicon | What the bench record covers |
|---|---|---|
gd32g553 | verified | The V2N GD32 bridge soak and functional suite. The first-silicon soak was partial; verified rests on the later, clean run. |
dp83825 | verified | Link + DHCP on real E8 silicon (examples/aen/aen-ethernet-link) — the PHY hardware path, not an SDK driver (none exists). |
ov9281 | verified | All three GREY8 modes (640×400, 1280×720, 1280×800) streaming on E1M-AEN803 through the Zephyr video driver — not the SDK's chip-ID stub, which stays driver_status: stub. A re-bench after a later shared capture-driver change is pending. |
imx296 | partial | I2C identity, CSI-2 streaming, raw capture, ISP path, auto-exposure and MJPEG streaming; colour calibration and fast-trigger mode are not benched. |
imx335 | partial | 2×2-binned 1296×972 RAW10 capture, ISP path, auto-exposure and MJPEG streaming; colour calibration, sensor-side frame rate, auto-exposure in varied lighting and the full-resolution mode are open. |
ov5647 | partial | CSI-2 streaming and a verified RAW10 640×480 frame; RAW8 is unverified. |
eeprom_24c128 | partial | eeprom_24c128_init(), _read() and _read_identity() on E1M-AEN803; eeprom_24c128_write() is untested. |
optiga_trust_m | partial | Probe, UID read and raw OpenApplication + GetDataObject(0xE0C2) on E1M-V2M103; key and crypto commands are not exercised. |
murata_lbee5hy2fy | partial | Wi-Fi scan, WPA2-SAE association, DHCP and TCP throughput, and Bluetooth hci0 up on E1M-V2M103; RF range on that unit is still under investigation. |
Everything else has host-side smoke coverage only: null_arg_guard-style contract tests that prove a driver rejects NULL arguments, refuses calls on an uninitialised context, and bounds-checks its tables. Those are argument-validation contract tests, not simulated bus transactions — they say nothing about whether the part works.
Driver status vocabulary
Every manifest carries a driver_status: — the single source of truth for how complete a driver is. A CI gate keeps each C header's @par Driver status: label in lockstep with its manifest, so a header can't misreport what's implemented.
| Status | Meaning |
|---|---|
complete | The driver's intended surface is implemented |
partial | A useful subset works; the manifest's inline comment names what's deferred |
stub | Skeleton only — compiles and validates arguments |
planned | Manifest exists, no driver code yet |
none | Catalogue-only manifest — the part is supported through another layer (e.g. a Zephyr video driver), and no SDK chip driver is intended |
As of v0.17.0 the count is 29 complete, 23 partial, 28 stub and 4 none; no manifest is planned any more (the four Murata BOM-candidate radio manifests were removed). The header gate, scripts/check_chip_header_status.py, accepts complete / partial / stub / planned on a header's @par Driver status: tag.
Two honest caveats about that gate: the header status tag is optional (33 headers under include/alp/chips/ carry one — the gate skips the rest), and the JSON schema types driver_status as a free string, so the vocabulary is enforced on headers rather than on the manifests themselves. The status definitions in the table above are this page's editorial reading — the SDK doesn't ship a glossary for them.
Opting in
Two equivalent ways to enable a chip driver:
# board.yaml — recommended
chips:
- lsm6dso
- ssd1306
# prj.conf — manual
CONFIG_ALP_SDK_CHIP_LSM6DSO=y
CONFIG_ALP_SDK_CHIP_SSD1306=y
The board.yaml path is preferred because it lets the loader cross-check that the SoM actually routes the bus the chip needs.
Driver shape
Every driver follows the same shape:
#include <alp/chips/<part>.h>
<part>_t ctx;
<part>_init(&ctx, bus, address_or_handle);
// Per-feature getters / setters
<part>_<op>(&ctx, ...);
_init() ACK-probes the chip on its bus. If the chip isn't populated, _init returns ALP_ERR_NOT_READY; well-written firmware handles this gracefully.
Catalogue (selected)
Sensors
| Driver | Part | Bus | Use |
|---|---|---|---|
lsm6dso | ST LSM6DSO | I²C / SPI | 6-axis IMU |
bmi323 | Bosch BMI323 | I²C / SPI | 6-axis IMU |
icm42670 | TDK ICM-42670 | I²C / SPI | 6-axis IMU |
lis2dw12 | ST LIS2DW12 | I²C / SPI | 3-axis accelerometer |
bmp581 | Bosch BMP581 | I²C | Barometric pressure |
bme280 | Bosch BME280 | I²C | T/RH/pressure |
tmp112 | TI TMP112 | I²C | Temperature (on every Alp Lab SoM) |
ina236 | TI INA236 | I²C | Current / voltage monitor |
ina228 | TI INA228 | I²C | 85 V 20-bit power / energy / charge monitor (new in v0.17.0) |
ina228 (driver_status: partial) covers probe + identity check, ADC and shunt-calibration configuration, shunt / bus / die-temperature / current / power / energy / charge reads, accumulator reset and the DIAG_ALRT flags; the alert-limit registers and SHUNT_TEMPCO are not exposed. It exists for the E1M-X EVK's +5 V input-rail monitor (XEVK_I2C_ADDR_INA228_5V, 0x42, on the sensor bus), which Linux owns and whose BSP kernel has no INA228 driver, so the portable driver reads it over i2c-dev — the same position as ina236. On a bus a Zephyr core masters, upstream Zephyr's ti,ina228 sensor driver is the path. On the current E1M-X EVK revision the part's I2C bus pins are swapped in the design data and corrected by a hand rework, so it answers only on carriers with that rework applied — no answer means absent, not a fault.
tmp112 sits at 0x40 on every AEN / V2N / V2M module (ADD0 = GND on the fitted X2SON-5 part), not the 0x48 earlier SDKs declared — the stale 0x48 is why the stock Zephyr CONFIG_TMP112 driver never bound. If your firmware hard-coded 0x48 for the on-module sensor, change it.
Power
| Driver | Part | Notes |
|---|---|---|
act8760 | Qorvo ACT88760-120.E1 | Primary PMIC (V2N family). Datasheet-verified two-slave register map (ADD1: master + Buck1–6; ADD2: Buck7 + LDOs). act8760_rail_get_voltage_mv() / act8760_rail_set_voltage_mv() work on the VSET0 slot only; DVS (VSET1..VSET3) is out of scope. All control writes are guarded — see below. |
da9292 | Renesas DA9292 | Secondary PMIC (V2N family). Register map verified against datasheet Rev 2.2. Fault pins (INT / TW) land on Renesas pads, not the GD32 — read them with da9292_get_fault_pins() or register-level via BRD_I2C. |
tps628640 | TI TPS628640 | Optional / DEEPX rail bucks |
The pca9451a driver (the i.MX 93 PMIC) was removed in v0.17.0 along with E1M-NX9101 support.
Two V2N-family headers under include/alp/chips/ are not chip drivers: v2n_power_tree.h is a generated per-family power-tree table and pmic_rail_limit.h is a shared rail-guard type the PMIC drivers consume. Neither has a manifest or a chips: entry.
act8760, da9292 and tps628640 now refuse every control write (rail enable, voltage setpoint, and most raw register writes) with ALP_ERR_NOSUPPORT until a per-rail guard table is installed with act8760_set_limits() / da9292_set_limits() / tps628640_set_limits(). The tables are pmic_rail_limit_t entries generated from the SoM power tree into <alp/chips/v2n_power_tree.h>; a setpoint outside its rail's window, or disabling a rail the power tree marks critical, is refused. Reads stay unguarded. The remaining raw act8760_write_reg() / da9292_write_reg() helpers reach only a small allow-list of registers (interrupt masks and event flags, plus the ACT88760's LED current); everything a typed call owns, and anything that could shut the PMIC down, is refused.
API changes that break existing callers: act8760_rail_set_vset() is replaced by act8760_rail_set_voltage_mv() (plus new act8760_rail_get_voltage_mv(), act8760_rail_set_enable() and act8760_rail_get_state()); da9292_v2n_base_init() and da9292_v2n_m1_enable_deepx_rail() are removed (the DEEPX channel is brought up by da9292_ch2_sequence()); and tps628640_write_reg() is removed in favour of the guarded tps628640_set_voltage_mv().
Clocks + RTC
| Driver | Part | Notes |
|---|---|---|
clk_5l35023b | Renesas / IDT 5L35023B | Clock generator (V2N family) |
rv3028c7 | Micro Crystal RV-3028-C7 | Battery-backed RTC (every Alp Lab SoM, 0x52 on BRD_I2C) |
New in v0.17.0, rv3028c7 adds a one-shot countdown timer (rv3028c7_timer_start() / _stop() / _read(), 1 s up to RV3028C7_TIMER_MAX_SECONDS = 4095 × 60 s, with requests above 4095 s rounded up to whole minutes so a wake is never early), a field-matched alarm (rv3028c7_alarm_arm() / _clear()), a wake-path interrupt service (rv3028c7_wake_service(), reporting RV3028C7_WAKE_TF / _AF / _UF), and rv3028c7_was_cold_start(), which reports whether the power-on-reset flag was set when rv3028c7_init() ran (init always clears it).
Storage + memory
| Driver | Part | Notes |
|---|---|---|
eeprom_24c128 | Onsemi N24S128 | 128-byte SoM manifest EEPROM |
Connectivity
| Driver | Part | Notes |
|---|---|---|
cc3501e | TI CC3501E | Wi-Fi 6 + BLE 5.4 coprocessor (AEN family); SDK-embedded bridge firmware over SPI/SDIO — Wi-Fi/BLE, GPIO proxy, OTA-over-bridge |
murata_lbee5hy2fy | Murata LBEE5HY2FY-922 | Wi-Fi 6 + BLE 5.4 combo (V2N family) |
rtl8211fdi | Realtek RTL8211FI-VD-CG | Gigabit Ethernet PHY (×2 on V2N) |
dp83825 | TI DP83825 | 10/100 RMII Ethernet PHY (AEN family) — driver_status: none; reached through Zephyr's Ethernet MAC glue, no SDK driver |
The four planned Murata radio manifests (murata_lbee0zz2kl, murata_lbee5pl2dl, murata_lbes0zz2ll, murata_lbes5pl2el) were removed in v0.17.0. On Linux, the V2N family's murata_lbee5hy2fy radio uses an out-of-tree brcmfmac backport (the in-tree driver has no ID for the module's CYW55513) plus the in-tree hci_uart / btbcm Bluetooth drivers; the SDK chip driver still owns only the module's side-channel enable lines.
Security
| Driver | Part | Notes |
|---|---|---|
optiga_trust_m | Infineon OPTIGA Trust M | Secure element, 0x30 on BRD_I2C. Fitted on the V2N / V2M SKUs. Not fitted on E1M-AEN: the E1M-AEN datasheet (DS-AEN-001, hardware R3) has no secure element; the alp-sdk v0.17.0 AEN presets still name the part (assembled: false on E1M-AEN801). Probe, UID and raw APDU — see below. |
optiga_trust_m: raw APDU only, no typed crypto yetAs of v0.17.0 the driver runs on Infineon's host library (vendored), which provides the I2C data-link and transport stack. It does: probe the chip, read the Coprocessor UID (optiga_trust_m_read_product_info(), the 27-byte GET_DATA_OBJECT 0xE0C2 object), and run a raw APDU session (optiga_trust_m_send_apdu()). Key, crypto and NVM commands are reachable only by building the APDUs yourself through that raw session.
It does not yet have typed wrappers (CalcSign, GenKeyPair, ECDH, …) or the PSA driver hook that would let <alp/security.h> use the chip transparently. Shielded Connection (link encryption) is off. The library holds one IFX I2C instance, so an image drives one Trust M. Its driver_status is partial.
Co-processors + bridges
| Driver | Part | Notes |
|---|---|---|
gd32g553 | GD GD32G553 | V2N supervisor MCU (8 PWM, 8 ADC, 2 DAC, 4 QEnc, 18 GPIO) |
deepx_dxm1 | DEEPX DX-M1 | NPU (V2N-M1 only) — bring_up sequencer |
gd32_swd | bit-bang controller | SWD recovery for the GD32 bridge |
pi3dbs12212 | Diodes PI3DBS12212A | PCIe mux — routes the lanes to the DEEPX NPU or the external slot (V2N-M1); deepx_dxm1_bring_up() drives it |
IO + UI
| Driver | Part | Notes |
|---|---|---|
tcal9538 | NXP TCAL9538 | 8-bit I/O expander — also drives the register-compatible TCA6408A / PCA9538 (see below) |
ssd1306 | Solomon SSD1306 | Monochrome 128×64 OLED |
ssd1331 | Solomon SSD1331 | Small colour OLED |
ov5640 | OmniVision OV5640 | 5 MP MIPI CSI camera |
cam_mux_pi3wvr626 | Diodes PI3WVR626 | Camera input mux — GPIO-driven select shim |
tas2563 | TI TAS2563 | Class-D speaker amplifier |
pdm_mic | PDM microphone helper | Front-end for <alp/audio.h> |
button_led | helper | Composite button + LED widget driver |
tas2563 on the E1M-X EVK with a V2N-family SoM now also has a Linux ALSA kernel binding (ti,tas2563 codec nodes in the EVK devicetree, bench-verified on E1M-V2M103). There the kernel owns the amplifier's I2C address, so the userspace driver doesn't race it: tas2563_init() returns ALP_ERR_BUSY when the kernel already holds the address. On Zephyr / bare-metal targets (e.g. AEN) the SDK driver remains the sole owner.
tcal9538_init() accepts two strap families: the TCA9538 / TCAL9538 A1A0 range 0x70..0x73 (TCAL9538_I2C_ADDR_BASE), and — as of v0.11.0 — the register-compatible TCA6408A / PCA9538 single-A0 range 0x20..0x21 (TCAL9538_I2C_ADDR_ALT_BASE). The alt part is the E1M EVK's U35 alt-population (TCA6408ARSVR, R112 fitted / R145 DNP); 0x20 is bench-confirmed on the E1M EVK. On the E1M EVK's default population the expander sits on ALP_E1M_I2C0 at 0x72 (A1=1, A0=0). Pass 0 for the address to fall back to TCAL9538_I2C_ADDR_BASE.
The §D ecosystem set
The drivers added under the chip-and-library ecosystem design. Every entry below ships with header + _init/probe + Kconfig + metadata YAML + NULL-arg ZTEST.
The [UNTESTED] markers below mean no HiL silicon bring-up of the SDK chip driver — true of every entry in this set (the one partial exception, ov9281, is noted in its row). What distinguishes this set is the [ABI-EXPERIMENTAL] annotation: their APIs may still change. Check each driver's driver_status: in metadata/chips/<id>.yaml for how much of its surface is actually implemented — many here are stub.
Camera sensors [UNTESTED]
| Driver | Part | Bus / interface | Notes |
|---|---|---|---|
ov2640 | OmniVision OV2640 | DVP | 2 MP general-purpose |
ov5645 | OmniVision OV5645 | MIPI CSI-2 | 5 MP autofocus |
ov7670 | OmniVision OV7670 | DVP | VGA cost-sensitive |
ov9281 | OmniVision OV9281 | MIPI CSI-2 | 1 MP global-shutter mono. The SDK driver is a chip-ID stub; frames stream through a Zephyr video driver, bench-verified on E1M-AEN803 (see the warning at the top) |
ar0234 | onsemi AR0234 | MIPI CSI-2 | 1080p global-shutter |
imx219 | Sony IMX219 | MIPI CSI-2 | 8 MP — RPi Cam v2 |
imx477 | Sony IMX477 | MIPI CSI-2 | 12 MP — RPi HQ Camera |
gc2145 | GalaxyCore GC2145 | DVP | 2 MP cost-sensitive |
Camera sensors streamed by Zephyr video drivers (new in v0.17.0)
These three manifests are catalogue-only (driver_status: none): there is no SDK chip driver, and frames stream through a Zephyr video driver carried in the SDK tree, driven by <alp/camera.h>. Select one through its camera module with the board.yaml cameras: block.
| Manifest | Part | Interface | Camera module | Bench status |
|---|---|---|---|---|
imx296 | Sony IMX296LQR-C — 1.58 MP global-shutter colour | MIPI CSI-2, 1 lane | raspberry_pi_global_shutter_camera | partial |
imx335 | Sony IMX335 — 5 MP colour, rolling shutter | MIPI CSI-2, 2 lanes | innomaker_cam_imx335 | partial |
ov5647 | OmniVision OV5647 — 5 MP raw Bayer | MIPI CSI-2, 2 lanes | raspberry_pi_camera_module_1 | partial |
imx296 and ov5647 use Zephyr drivers authored or backported into the SDK tree; imx335 reuses upstream Zephyr's driver (CONFIG_VIDEO_IMX335) with two SDK patches. For Linux, the sensor manifests carry each part's in-kernel driver facts (compatible, Kconfig symbol, accepted link frequencies, supplies), which the SDK uses to generate the E1M-X EVK camera devicetree fragments — note that OV9281 probes under Linux as ovti,ov9282.
Camera SerDes [UNTESTED]
| Driver | Part | Standard |
|---|---|---|
ti_ds90ub953_954 | TI DS90UB953 / 954 | FPD-Link III |
maxim_max9295_9296 | Maxim MAX9295 / 9296 | GMSL2 |
Displays [UNTESTED]
| Driver | Part | Notes |
|---|---|---|
st7789 | Sitronix ST7789 | 240×240 / 240×320 SPI TFT |
ili9341 | Ilitek ILI9341 | 240×320 SPI TFT |
ili9488 | Ilitek ILI9488 | 320×480 SPI TFT |
ra8875 | RAiO RA8875 | 5–7″ TFT controller w/ resistive touch |
sh1106 | Sino Wealth SH1106 | 128×64 mono OLED — drop-in alt to SSD1306 |
il3820 | Solomon IL3820 | 4.2″ tri-colour e-paper |
gdew0154t8 | GoodDisplay 1.54″ | 1.54″ e-paper |
Outside the chip catalogue: v0.17.0 adds a Zephyr display-bridge driver for the TI SN65DSI83 DSI-to-LVDS bridge, used to drive a Riverdi RVT121HVDFWCA0-B 12.1″ 1280×800 LVDS panel from an E8 AEN module's MIPI-DSI output (E1M EVK display connector, through a maintainer-built adapter board; shield e1m_evk_rvt121hvdfwca0, example examples/aen/aen-lvds-display on the M55-HE). It is not a chips: entry and has no display API of its own: the bridge is programmed once over I2C at init (and re-programmed by an optional health-check/recovery loop, CONFIG_SN65DSI83_RECOVERY), after which it is transparent and the panel is drawn through the SoC's display controller with Zephyr's display API. The driver source still marks itself bench-unverified, so treat it as experimental.
External NPU [UNTESTED]
| Driver | Part | Notes |
|---|---|---|
hailo_8l | Hailo-8L | M.2 PCIe NPU — host-side bring-up sequence |
Industrial sensing [UNTESTED]
| Driver | Part | Class |
|---|---|---|
bmp390 | Bosch BMP390 | Barometric pressure |
ms5611 | TE MS5611 | Barometric pressure |
lps22hb | ST LPS22HB | Barometric pressure |
vl53l1x | ST VL53L1X | Time-of-flight distance |
vl53l5cx | ST VL53L5CX | 8×8 ToF array |
a02yyuw | DFRobot A02YYUW | Ultrasonic distance (UART) |
tsl2591 | AMS TSL2591 | Ambient light (2-channel) |
veml7700 | Vishay VEML7700 | Ambient light (16-bit) |
qmc5883l | QST QMC5883L | 3-axis magnetometer |
as5048a_b | AMS AS5048 A/B | Magnetic rotary encoder (I²C) |
mt6701 | MagnTek MT6701 | Magnetic rotary encoder (I²C) |
hx711 | Avia HX711 | 24-bit strain-gauge ADC |
max31855 | Maxim MAX31855 | Thermocouple → signed milli-C |
max31865 | Maxim MAX31865 | RTD (PT100/PT1000) — 15-bit + fault |
Motor / actuator control [UNTESTED]
| Driver | Part | Notes |
|---|---|---|
drv8833 | TI DRV8833 | Dual H-bridge |
drv8825 | TI DRV8825 | Stepper driver (STEP/DIR) |
tmc2209 | Trinamic TMC2209 | Stepper w/ UART tuning (CRC-8) |
a4988 | Allegro A4988 | Stepper driver |
Cellular / RF / GNSS [UNTESTED]
| Driver | Part | Class |
|---|---|---|
quectel_bg95 | Quectel BG95 | LTE-M / NB-IoT modem (AT) |
quectel_bg77 | Quectel BG77 | LTE-M / NB-IoT modem (AT) |
ublox_sara_r5 | u-blox SARA-R5 | LTE-M modem (AT) |
semtech_sx1262 | Semtech SX1262 | LoRa radio (opcode) |
semtech_sx1276 | Semtech SX1276 | LoRa radio (register) |
ublox_neo_m9n | u-blox NEO-M9N | GNSS (UART NMEA) |
ublox_max_m10s | u-blox MAX-M10S | GNSS (UART NMEA) |
atgm336h | Zhongkewei ATGM336H | GNSS (UART NMEA) |
atecc608b | Microchip ATECC608B | Crypto co-processor (ATCA) |
Audio [UNTESTED]
| Driver | Part | Notes |
|---|---|---|
ics_43434 | InvenSense ICS-43434 | MEMS mic (I²S) |
inmp441 | InvenSense INMP441 | MEMS mic (I²S, cost-sensitive) |
wm8960 | Cirrus / Wolfson WM8960 | Stereo codec (I²C config + I²S) |
tlv320aic3204 | TI TLV320AIC3204 | Premium stereo codec w/ miniDSP |
max98357a | ADI MAX98357A | 3W class-D mono amp |
es8388 | Everest ES8388 | Stereo codec (China-domestic) |
Browse the full per-driver metadata under metadata/chips/; each .yaml carries verification: status alongside vendor / MPN / bus / Kconfig binding.
For what each driver_status: value means, see Driver status vocabulary above.
Per-SoM populated chips
Which drivers are populated on each SoM family:
| Driver | AEN | V2N | V2N-M1 (V2M) | Bus · 7-bit address |
|---|---|---|---|---|
cc3501e | ✓ | SPI | ||
dp83825 | ✓ | MDIO | ||
murata_lbee5hy2fy | ✓ | ✓ | SDIO / UART | |
rtl8211fdi | ✓×2 | ✓×2 | MDIO | |
gd32g553 | ✓ | ✓ | BRD_I2C · 0x70 | |
deepx_dxm1 | ✓ | PCIe | ||
act8760 | ✓ | ✓ | BRD_I2C · 0x25 + 0x26 | |
da9292 | ✓ | ✓ | BRD_I2C · 0x1E | |
clk_5l35023b | ✓ | ✓ | BRD_I2C · 0x69 | |
tps628640 | optional | ✓ (DEEPX rails) + optional | BRD_I2C · 0x4D (optional); V2M adds 0x44, 0x48, 0x4F | |
rv3028c7 | ✓ | ✓ | ✓ | BRD_I2C · 0x52 |
optiga_trust_m | — (not fitted on E1M-AEN) | ✓ | ✓ | BRD_I2C · 0x30 |
tmp112 | ✓ | ✓ | ✓ | BRD_I2C · 0x40 |
eeprom_24c128 | ✓ | ✓ | ✓ | E1M I2C0 · 0x50 (+ 0x58, the same part's identity page) |
Addresses are 7-bit — listed because an integrator sharing a bus must avoid them. Note that the identity EEPROM answers on the E1M edge I2C0 bus (0x50 and 0x58), so a carrier device on E1M I2C0 must not use either address. The per-SKU source of truth is the i2c_devices: block in metadata/e1m_modules/<SKU>.yaml.
Each EVK populates its own board-side chip set. The two overlap (e.g. bmp581, bmi323, icm42670, tas2563, ina236, tcal9538) but differ: the E1M EVK carries lsm6dso, the ssd1306 / ssd1331 OLEDs, and an on-board ov5640 + cam_mux, whereas the E1M-X EVK drives MIPI-DSI panels and exposes dedicated CSI camera connectors instead. Declare preset: e1m-evk or e1m-x-evk in board.yaml to pick up that board's set.
Idiomatic usage
#include <alp/peripheral.h>
#include <alp/chips/lsm6dso.h>
alp_i2c_t *bus = alp_i2c_open(&(alp_i2c_config_t){
.bus_id = 0u,
.bitrate_hz = 400000u,
});
lsm6dso_t imu;
if (lsm6dso_init(&imu, bus, LSM6DSO_I2C_ADDR_LOW) != ALP_OK) {
printk("[lsm6dso] init failed\n");
return;
}
/* ODR and full-scale are set together, in one call per sensor. */
if (lsm6dso_set_accel(&imu, LSM6DSO_ODR_104_HZ, LSM6DSO_ACCEL_FS_2G) != ALP_OK) {
printk("[lsm6dso] set_accel rejected\n");
return;
}
lsm6dso_axes_t a;
while (1) {
lsm6dso_read_accel(&imu, &a);
printk("ax=%d ay=%d az=%d\n", a.x, a.y, a.z);
k_msleep(10);
}
The address is strap-selected: LSM6DSO_I2C_ADDR_LOW is 0x6A (SDO/SA0 tied low), LSM6DSO_I2C_ADDR_HIGH is 0x6B. Gyro is symmetric — lsm6dso_set_gyro() + lsm6dso_read_gyro() into the same lsm6dso_axes_t; lsm6dso_read_temp() yields a raw int16_t.
bmi323_set_accel / _set_gyro, icm42670_set_accel / _set_gyro, lsm6dso_set_accel / _set_gyro and lis2dw12_set_accel now return ALP_ERR_INVAL when an ODR or full-scale argument is not a declared enum member, and they validate before any bus write.
Previously these masked the argument straight into the register field: where an enum's declared members didn't fill that field, an undeclared value was written to the chip as a reserved hardware encoding and the call still returned ALP_OK. If you passed a computed or cast value rather than a named enumerator, a call that used to "succeed" may now correctly fail — check the return.
icm42670_odr_t is sparse (it declares 0x0, 0x4..0x8, 0xA..0xF), so the reserved encodings inside its range are rejected too. Enums whose declared values already fill their register field (icm42670 / lsm6dso / lis2dw12 full-scale, tmp112_rate_t) are unchanged, as are a4988 / drv8825 / lis2dw12_mode_t, which already validated.