# intel/ipu7-drivers architecture

> Architecture diagram of the GitHub repository intel/ipu7-drivers, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-26). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/intel/ipu7-drivers
- Repository: https://github.com/intel/ipu7-drivers

## Overview

ipu7-drivers is a Linux kernel driver for MIPI cameras on Intel Lunar Lake IPU7. A camera application submits capture work through the kernel’s imaging subsystem (ISYS); sensor data reaches ISYS over CSI-2, where the driver manages streams, queues and firmware communication. Processing workloads use the separate PSYS interface for graph and task requests. The PCI core, firmware boot, memory translation and power/control hardware support both subsystems. The README establishes the camera-to-IPU role; several internal links are omitted because the relevant implementation excerpts were not provided.

Main entry points: [`drivers/media/pci/intel/ipu7/ipu7.c`](https://github.com/intel/ipu7-drivers/blob/main/drivers/media/pci/intel/ipu7/ipu7.c) (PCI device core), [`drivers/media/pci/intel/ipu7/ipu7-isys.c`](https://github.com/intel/ipu7-drivers/blob/main/drivers/media/pci/intel/ipu7/ipu7-isys.c) (ISYS device), [`drivers/media/pci/intel/ipu7/psys/ipu7-psys.c`](https://github.com/intel/ipu7-drivers/blob/main/drivers/media/pci/intel/ipu7/psys/ipu7-psys.c) (PSYS device), [`drivers/media/pci/intel/ipu7/psys/ipu7-fw-psys.c`](https://github.com/intel/ipu7-drivers/blob/main/drivers/media/pci/intel/ipu7/psys/ipu7-fw-psys.c) (PSYS firmware interface)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_core["PCI and hardware core"]
  node_pci_core["PCI device core<br/>[ipu7.c]"]
  node_bus["Auxiliary bus<br/>[ipu7-bus.c]"]
  node_buttress["Power and control<br/>[ipu7-buttress.c]"]
  node_firmware_boot["Firmware boot<br/>[ipu7-boot.c]"]
  node_memory["DMA and MMU<br/>[ipu7-mmu.c]"]
end

subgraph group_isys["Imaging subsystem"]
  node_isys["ISYS device<br/>[ipu7-isys.c]"]
  node_csi_phy["CSI PHY"]
  node_csi2["CSI-2 receiver<br/>[ipu7-isys-csi2.c]"]
  node_test_pattern["Test pattern<br/>[ipu7-isys-tpg.c]"]
  node_isys_video["Video interface<br/>[ipu7-isys-video.c]"]
  node_isys_queue["Stream queues<br/>[ipu7-isys-queue.c]"]
  node_isys_firmware["ISYS firmware interface<br/>[ipu7-fw-isys.c]"]
  node_isys_abi["ISYS firmware ABI<br/>[ipu7_fw_isys_abi.h]"]
end

subgraph group_psys["Processing subsystem"]
  node_psys_device["PSYS device<br/>[ipu7-psys.c]"]
  node_psys_userspace["PSYS userspace interface<br/>[ipu-psys.c]"]
  node_psys_firmware["PSYS firmware interface<br/>[ipu7-fw-psys.c]"]
  node_psys_abi["PSYS message ABI<br/>[ipu7_fw_msg_abi.h]"]
end

subgraph group_platform["Platform camera data"]
  node_platform_data["Camera platform data<br/>[ipu-acpi-pdata.c]"]
end

node_camera_app(("Camera application"))
node_mipi_sensor(("MIPI camera sensor"))
node_firmware["IPU firmware"]

node_camera_app -.->|"requests capture"| node_isys_video
node_mipi_sensor -.->|"sends MIPI data"| node_csi_phy
node_pci_core -.->|"adds devices"| node_bus
node_pci_core -.->|"coordinates hardware"| node_buttress
node_pci_core -.->|"initializes subsystem"| node_isys
node_pci_core -.->|"initializes subsystem"| node_psys_device
node_firmware_boot -.->|"loads firmware"| node_firmware
node_isys -.->|"configures PHY"| node_csi_phy
node_isys -.->|"configures receiver"| node_csi2
node_isys_video -.->|"uses queues"| node_isys_queue
node_isys_queue -.->|"prepares stream work"| node_isys_firmware
node_isys_firmware -.->|"uses protocol"| node_isys_abi
node_isys -.->|"uses address translation"| node_memory
node_psys_userspace -->|"requests tasks"| node_psys_firmware
node_psys_device -.->|"manages firmware"| node_psys_firmware
node_psys_firmware -->|"uses protocol"| node_psys_abi
node_psys_device -.->|"uses address translation"| node_memory
node_platform_data -.->|"supplies configuration"| node_pci_core
node_test_pattern -.->|"provides test source"| node_isys

click node_pci_core "https://github.com/intel/ipu7-drivers/blob/main/drivers/media/pci/intel/ipu7/ipu7.c"
click node_bus "https://github.com/intel/ipu7-drivers/blob/main/drivers/media/pci/intel/ipu7/ipu7-bus.c"
click node_buttress "https://github.com/intel/ipu7-drivers/blob/main/drivers/media/pci/intel/ipu7/ipu7-buttress.c"
click node_firmware_boot "https://github.com/intel/ipu7-drivers/blob/main/drivers/media/pci/intel/ipu7/ipu7-boot.c"
click node_memory "https://github.com/intel/ipu7-drivers/blob/main/drivers/media/pci/intel/ipu7/ipu7-mmu.c"
click node_isys "https://github.com/intel/ipu7-drivers/blob/main/drivers/media/pci/intel/ipu7/ipu7-isys.c"
click node_csi_phy "https://github.com/intel/ipu7-drivers/blob/main/drivers/media/pci/intel/ipu7/ipu7-isys-csi-phy.c"
click node_csi2 "https://github.com/intel/ipu7-drivers/blob/main/drivers/media/pci/intel/ipu7/ipu7-isys-csi2.c"
click node_test_pattern "https://github.com/intel/ipu7-drivers/blob/main/drivers/media/pci/intel/ipu7/ipu7-isys-tpg.c"
click node_isys_video "https://github.com/intel/ipu7-drivers/blob/main/drivers/media/pci/intel/ipu7/ipu7-isys-video.c"
click node_isys_queue "https://github.com/intel/ipu7-drivers/blob/main/drivers/media/pci/intel/ipu7/ipu7-isys-queue.c"
click node_isys_firmware "https://github.com/intel/ipu7-drivers/blob/main/drivers/media/pci/intel/ipu7/ipu7-fw-isys.c"
click node_isys_abi "https://github.com/intel/ipu7-drivers/blob/main/drivers/media/pci/intel/ipu7/abi/ipu7_fw_isys_abi.h"
click node_psys_device "https://github.com/intel/ipu7-drivers/blob/main/drivers/media/pci/intel/ipu7/psys/ipu7-psys.c"
click node_psys_userspace "https://github.com/intel/ipu7-drivers/blob/main/drivers/media/pci/intel/ipu7/psys/ipu-psys.c"
click node_psys_firmware "https://github.com/intel/ipu7-drivers/blob/main/drivers/media/pci/intel/ipu7/psys/ipu7-fw-psys.c"
click node_psys_abi "https://github.com/intel/ipu7-drivers/blob/main/drivers/media/pci/intel/ipu7/abi/ipu7_fw_msg_abi.h"
click node_platform_data "https://github.com/intel/ipu7-drivers/blob/main/drivers/media/platform/intel/ipu-acpi-pdata.c"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_pci_core,node_bus,node_buttress,node_firmware_boot,node_memory toneBlue
class node_isys,node_csi_phy,node_csi2,node_test_pattern,node_isys_video,node_isys_queue,node_isys_firmware,node_isys_abi toneAmber
class node_psys_device,node_psys_userspace,node_psys_firmware,node_psys_abi toneMint
class node_platform_data toneRose
class node_camera_app,node_mipi_sensor,node_firmware toneIndigo
```

## Components

### PCI and hardware core

- [PCI device core](https://github.com/intel/ipu7-drivers/blob/main/drivers/media/pci/intel/ipu7/ipu7.c): `drivers/media/pci/intel/ipu7/ipu7.c`
- [Auxiliary bus](https://github.com/intel/ipu7-drivers/blob/main/drivers/media/pci/intel/ipu7/ipu7-bus.c): `drivers/media/pci/intel/ipu7/ipu7-bus.c`
- [Power and control](https://github.com/intel/ipu7-drivers/blob/main/drivers/media/pci/intel/ipu7/ipu7-buttress.c): `drivers/media/pci/intel/ipu7/ipu7-buttress.c`
- [Firmware boot](https://github.com/intel/ipu7-drivers/blob/main/drivers/media/pci/intel/ipu7/ipu7-boot.c): `drivers/media/pci/intel/ipu7/ipu7-boot.c`
- [DMA and MMU](https://github.com/intel/ipu7-drivers/blob/main/drivers/media/pci/intel/ipu7/ipu7-mmu.c): `drivers/media/pci/intel/ipu7/ipu7-mmu.c`

### Imaging subsystem

- [ISYS device](https://github.com/intel/ipu7-drivers/blob/main/drivers/media/pci/intel/ipu7/ipu7-isys.c): `drivers/media/pci/intel/ipu7/ipu7-isys.c`
- [CSI PHY](https://github.com/intel/ipu7-drivers/blob/main/drivers/media/pci/intel/ipu7/ipu7-isys-csi-phy.c): `drivers/media/pci/intel/ipu7/ipu7-isys-csi-phy.c`
- [CSI-2 receiver](https://github.com/intel/ipu7-drivers/blob/main/drivers/media/pci/intel/ipu7/ipu7-isys-csi2.c): `drivers/media/pci/intel/ipu7/ipu7-isys-csi2.c`
- [Test pattern](https://github.com/intel/ipu7-drivers/blob/main/drivers/media/pci/intel/ipu7/ipu7-isys-tpg.c): `drivers/media/pci/intel/ipu7/ipu7-isys-tpg.c`
- [Video interface](https://github.com/intel/ipu7-drivers/blob/main/drivers/media/pci/intel/ipu7/ipu7-isys-video.c): `drivers/media/pci/intel/ipu7/ipu7-isys-video.c`
- [Stream queues](https://github.com/intel/ipu7-drivers/blob/main/drivers/media/pci/intel/ipu7/ipu7-isys-queue.c): `drivers/media/pci/intel/ipu7/ipu7-isys-queue.c`
- [ISYS firmware interface](https://github.com/intel/ipu7-drivers/blob/main/drivers/media/pci/intel/ipu7/ipu7-fw-isys.c): `drivers/media/pci/intel/ipu7/ipu7-fw-isys.c`
- [ISYS firmware ABI](https://github.com/intel/ipu7-drivers/blob/main/drivers/media/pci/intel/ipu7/abi/ipu7_fw_isys_abi.h): `drivers/media/pci/intel/ipu7/abi/ipu7_fw_isys_abi.h`

### Processing subsystem

- [PSYS device](https://github.com/intel/ipu7-drivers/blob/main/drivers/media/pci/intel/ipu7/psys/ipu7-psys.c): `drivers/media/pci/intel/ipu7/psys/ipu7-psys.c`
- [PSYS userspace interface](https://github.com/intel/ipu7-drivers/blob/main/drivers/media/pci/intel/ipu7/psys/ipu-psys.c): `drivers/media/pci/intel/ipu7/psys/ipu-psys.c`
- [PSYS firmware interface](https://github.com/intel/ipu7-drivers/blob/main/drivers/media/pci/intel/ipu7/psys/ipu7-fw-psys.c): `drivers/media/pci/intel/ipu7/psys/ipu7-fw-psys.c`
- [PSYS message ABI](https://github.com/intel/ipu7-drivers/blob/main/drivers/media/pci/intel/ipu7/abi/ipu7_fw_msg_abi.h): `drivers/media/pci/intel/ipu7/abi/ipu7_fw_msg_abi.h`

### Platform camera data

- [Camera platform data](https://github.com/intel/ipu7-drivers/blob/main/drivers/media/platform/intel/ipu-acpi-pdata.c): `drivers/media/platform/intel/ipu-acpi-pdata.c`

### Other components

- **Camera application**
- **MIPI camera sensor**
- **IPU firmware**

## Connections

- Camera application → Video interface: requests capture
- MIPI camera sensor → CSI PHY: sends MIPI data
- PCI device core → Auxiliary bus: adds devices (evidence: `drivers/media/pci/intel/ipu7/ipu7.c`)
- PCI device core → Power and control: coordinates hardware (evidence: `drivers/media/pci/intel/ipu7/ipu7.c`)
- PCI device core → ISYS device: initializes subsystem (evidence: `drivers/media/pci/intel/ipu7/ipu7.c`)
- PCI device core → PSYS device: initializes subsystem (evidence: `drivers/media/pci/intel/ipu7/ipu7.c`)
- Firmware boot → IPU firmware: loads firmware
- ISYS device → CSI PHY: configures PHY (evidence: `drivers/media/pci/intel/ipu7/ipu7-isys.c`)
- ISYS device → CSI-2 receiver: configures receiver (evidence: `drivers/media/pci/intel/ipu7/ipu7-isys.c`)
- Video interface → Stream queues: uses queues (evidence: `drivers/media/pci/intel/ipu7/ipu7-isys-video.c`)
- Stream queues → ISYS firmware interface: prepares stream work (evidence: `drivers/media/pci/intel/ipu7/ipu7-isys-queue.c`)
- ISYS firmware interface → ISYS firmware ABI: uses protocol
- ISYS device → DMA and MMU: uses address translation (evidence: `drivers/media/pci/intel/ipu7/ipu7-isys.c`)
- PSYS userspace interface → PSYS firmware interface: requests tasks (evidence: `drivers/media/pci/intel/ipu7/psys/ipu-psys.c`)
- PSYS device → PSYS firmware interface: manages firmware (evidence: `drivers/media/pci/intel/ipu7/psys/ipu7-psys.c`)
- PSYS firmware interface → PSYS message ABI: uses protocol (evidence: `drivers/media/pci/intel/ipu7/psys/ipu7-fw-psys.c`)
- PSYS device → DMA and MMU: uses address translation
- Camera platform data → PCI device core: supplies configuration
- Test pattern → ISYS device: provides test source
