# xilinx/zephyr-amd architecture

> Architecture diagram of the GitHub repository xilinx/zephyr-amd, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-09). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/xilinx/zephyr-amd
- Repository: https://github.com/xilinx/zephyr-amd

## Overview

Zephyr is a resource-constrained, security-minded real-time operating system for embedded devices. The principal runtime path is an application running on a supported board, with the kernel relying on architecture-specific support; device drivers and higher-level services provide hardware and protocol capabilities. The graph also preserves documented Bluetooth, LwM2M, secure-storage, and firmware-update areas. Source excerpts show selected subsystem calls, but not the complete application-to-kernel dispatch or unsampled subsystem wiring, so those relationships are omitted or marked unverified.

Main entry points: [`drivers/disk/nvme/nvme_controller.c`](https://github.com/xilinx/zephyr-amd/blob/master/drivers/disk/nvme/nvme_controller.c) (NVMe Driver), [`subsys/pmci/mctp/mctp_i2c_gpio_controller.c`](https://github.com/xilinx/zephyr-amd/blob/master/subsys/pmci/mctp/mctp_i2c_gpio_controller.c) (MCTP I2C Binding), [`kernel`](https://github.com/xilinx/zephyr-amd/tree/master/kernel) (Kernel), [`arch`](https://github.com/xilinx/zephyr-amd/tree/master/arch) (Architecture Ports)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_platform["Platform Runtime"]
  node_kernel["Kernel"]
  node_architectures["Architecture Ports"]
  node_boards["Supported Boards"]
end

subgraph group_drivers["Device Drivers"]
  node_gpio_api["GPIO API<br/>[gpio.h]"]
  node_i2c_npcx["NPCX I2C"]
  node_nvme["NVMe Driver<br/>[nvme_controller.c]"]
  node_nvme_headers["NVMe Definitions<br/>[nvme.h]"]
  node_pcie["PCIe Controller API<br/>[controller.h]"]
  node_rtio["RTIO API<br/>[rtio.h]"]
end

subgraph group_services["Protocol Services"]
  node_mctp["MCTP I2C Binding"]
  node_lwm2m["LwM2M Engine<br/>[lwm2m_engine.c]"]
  node_lwm2m_model["LwM2M Objects<br/>[lwm2m_object.h]"]
  node_bluetooth_media["Media Shell<br/>[media_controller.c]"]
  node_ots["Object Transfer<br/>[ots_obj_manager.c]"]
end

subgraph group_security["Storage and Updates"]
  node_its_api["PSA ITS API"]
  node_ps_api["PSA PS API"]
  node_secure_storage["Secure Storage Core<br/>[its.h]"]
  node_updatehub["UpdateHub Storage"]
  node_flash_boot["Flash and Boot APIs"]
end

node_application(("Application"))
node_external_device(("Hardware Device"))

node_application -.->|"runs on"| node_kernel
node_kernel -.->|"supported by"| node_architectures
node_architectures -.->|"targets"| node_boards
node_external_device -.->|"uses"| node_i2c_npcx
node_nvme -->|"configures"| node_pcie
node_nvme -->|"uses definitions"| node_nvme_headers
node_mctp -->|"submits transfers"| node_rtio
node_mctp -->|"uses GPIO"| node_gpio_api
node_lwm2m -->|"uses objects"| node_lwm2m_model
node_bluetooth_media -->|"uses object IDs"| node_ots
node_its_api -->|"calls ITS"| node_secure_storage
node_ps_api -->|"uses ITS layer"| node_secure_storage
node_updatehub -->|"writes and checks"| node_flash_boot

click node_kernel "https://github.com/xilinx/zephyr-amd/tree/master/kernel"
click node_architectures "https://github.com/xilinx/zephyr-amd/tree/master/arch"
click node_boards "https://github.com/xilinx/zephyr-amd/tree/master/boards"
click node_gpio_api "https://github.com/xilinx/zephyr-amd/blob/master/include/zephyr/drivers/gpio.h"
click node_i2c_npcx "https://github.com/xilinx/zephyr-amd/blob/master/drivers/i2c/i2c_npcx_controller.c"
click node_nvme "https://github.com/xilinx/zephyr-amd/blob/master/drivers/disk/nvme/nvme_controller.c"
click node_nvme_headers "https://github.com/xilinx/zephyr-amd/blob/master/drivers/disk/nvme/nvme.h"
click node_pcie "https://github.com/xilinx/zephyr-amd/blob/master/include/zephyr/drivers/pcie/controller.h"
click node_rtio "https://github.com/xilinx/zephyr-amd/blob/master/include/zephyr/rtio/rtio.h"
click node_mctp "https://github.com/xilinx/zephyr-amd/blob/master/subsys/pmci/mctp/mctp_i2c_gpio_controller.c"
click node_lwm2m "https://github.com/xilinx/zephyr-amd/blob/master/subsys/net/lib/lwm2m/lwm2m_engine.c"
click node_lwm2m_model "https://github.com/xilinx/zephyr-amd/blob/master/subsys/net/lib/lwm2m/lwm2m_object.h"
click node_bluetooth_media "https://github.com/xilinx/zephyr-amd/blob/master/subsys/bluetooth/audio/shell/media_controller.c"
click node_ots "https://github.com/xilinx/zephyr-amd/blob/master/subsys/bluetooth/services/ots/ots_obj_manager.c"
click node_its_api "https://github.com/xilinx/zephyr-amd/blob/master/subsys/secure_storage/include/psa/internal_trusted_storage.h"
click node_ps_api "https://github.com/xilinx/zephyr-amd/blob/master/subsys/secure_storage/include/psa/protected_storage.h"
click node_secure_storage "https://github.com/xilinx/zephyr-amd/blob/master/subsys/secure_storage/include/internal/zephyr/secure_storage/its.h"
click node_updatehub "https://github.com/xilinx/zephyr-amd/blob/master/subsys/mgmt/updatehub/updatehub_storage.c"
click node_flash_boot "https://github.com/xilinx/zephyr-amd/blob/master/subsys/mgmt/updatehub/updatehub_storage.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_kernel,node_architectures,node_boards toneBlue
class node_gpio_api,node_i2c_npcx,node_nvme,node_nvme_headers,node_pcie,node_rtio toneAmber
class node_mctp,node_lwm2m,node_lwm2m_model,node_bluetooth_media,node_ots toneMint
class node_its_api,node_ps_api,node_secure_storage,node_updatehub,node_flash_boot toneRose
class node_application,node_external_device toneIndigo
```

## Components

### Platform Runtime

- [Kernel](https://github.com/xilinx/zephyr-amd/tree/master/kernel): `kernel`
- [Architecture Ports](https://github.com/xilinx/zephyr-amd/tree/master/arch): `arch`
- [Supported Boards](https://github.com/xilinx/zephyr-amd/tree/master/boards): `boards`

### Device Drivers

- [GPIO API](https://github.com/xilinx/zephyr-amd/blob/master/include/zephyr/drivers/gpio.h): `include/zephyr/drivers/gpio.h`
- [NPCX I2C](https://github.com/xilinx/zephyr-amd/blob/master/drivers/i2c/i2c_npcx_controller.c): `drivers/i2c/i2c_npcx_controller.c`
- [NVMe Driver](https://github.com/xilinx/zephyr-amd/blob/master/drivers/disk/nvme/nvme_controller.c): `drivers/disk/nvme/nvme_controller.c`
- [NVMe Definitions](https://github.com/xilinx/zephyr-amd/blob/master/drivers/disk/nvme/nvme.h): `drivers/disk/nvme/nvme.h`
- [PCIe Controller API](https://github.com/xilinx/zephyr-amd/blob/master/include/zephyr/drivers/pcie/controller.h): `include/zephyr/drivers/pcie/controller.h`
- [RTIO API](https://github.com/xilinx/zephyr-amd/blob/master/include/zephyr/rtio/rtio.h): `include/zephyr/rtio/rtio.h`

### Protocol Services

- [MCTP I2C Binding](https://github.com/xilinx/zephyr-amd/blob/master/subsys/pmci/mctp/mctp_i2c_gpio_controller.c): `subsys/pmci/mctp/mctp_i2c_gpio_controller.c`
- [LwM2M Engine](https://github.com/xilinx/zephyr-amd/blob/master/subsys/net/lib/lwm2m/lwm2m_engine.c): `subsys/net/lib/lwm2m/lwm2m_engine.c`
- [LwM2M Objects](https://github.com/xilinx/zephyr-amd/blob/master/subsys/net/lib/lwm2m/lwm2m_object.h): `subsys/net/lib/lwm2m/lwm2m_object.h`
- [Media Shell](https://github.com/xilinx/zephyr-amd/blob/master/subsys/bluetooth/audio/shell/media_controller.c): `subsys/bluetooth/audio/shell/media_controller.c`
- [Object Transfer](https://github.com/xilinx/zephyr-amd/blob/master/subsys/bluetooth/services/ots/ots_obj_manager.c): `subsys/bluetooth/services/ots/ots_obj_manager.c`

### Storage and Updates

- [PSA ITS API](https://github.com/xilinx/zephyr-amd/blob/master/subsys/secure_storage/include/psa/internal_trusted_storage.h): `subsys/secure_storage/include/psa/internal_trusted_storage.h`
- [PSA PS API](https://github.com/xilinx/zephyr-amd/blob/master/subsys/secure_storage/include/psa/protected_storage.h): `subsys/secure_storage/include/psa/protected_storage.h`
- [Secure Storage Core](https://github.com/xilinx/zephyr-amd/blob/master/subsys/secure_storage/include/internal/zephyr/secure_storage/its.h): `subsys/secure_storage/include/internal/zephyr/secure_storage/its.h`
- [UpdateHub Storage](https://github.com/xilinx/zephyr-amd/blob/master/subsys/mgmt/updatehub/updatehub_storage.c): `subsys/mgmt/updatehub/updatehub_storage.c`
- [Flash and Boot APIs](https://github.com/xilinx/zephyr-amd/blob/master/subsys/mgmt/updatehub/updatehub_storage.c): `subsys/mgmt/updatehub/updatehub_storage.c`

### Other components

- **Application**
- **Hardware Device**

## Connections

- Application → Kernel: runs on
- Kernel → Architecture Ports: supported by
- Architecture Ports → Supported Boards: targets
- Hardware Device → NPCX I2C: uses
- NVMe Driver → PCIe Controller API: configures (evidence: `drivers/disk/nvme/nvme_controller.c`)
- NVMe Driver → NVMe Definitions: uses definitions (evidence: `drivers/disk/nvme/nvme_controller.c`)
- MCTP I2C Binding → RTIO API: submits transfers (evidence: `subsys/pmci/mctp/mctp_i2c_gpio_controller.c`)
- MCTP I2C Binding → GPIO API: uses GPIO (evidence: `subsys/pmci/mctp/mctp_i2c_gpio_controller.c`)
- LwM2M Engine → LwM2M Objects: uses objects (evidence: `subsys/net/lib/lwm2m/lwm2m_engine.c`)
- Media Shell → Object Transfer: uses object IDs (evidence: `subsys/bluetooth/audio/shell/media_controller.c`)
- PSA ITS API → Secure Storage Core: calls ITS (evidence: `subsys/secure_storage/include/psa/internal_trusted_storage.h`)
- PSA PS API → Secure Storage Core: uses ITS layer (evidence: `subsys/secure_storage/include/psa/protected_storage.h`)
- UpdateHub Storage → Flash and Boot APIs: writes and checks (evidence: `subsys/mgmt/updatehub/updatehub_storage.c`)
