generate_device_tree
Generate a device tree source file from a KiCad schematic for STM32, ESP32, or nRF52 SOCs.
Instructions
Generate device tree source (.dts) file from schematic.
This function analyzes a KiCad schematic and generates a device tree source file compatible with the specified SOC family.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"schematic_path": "<schematic_path>"
},
"name": "generate_device_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| schematic_path | Yes | Path to .kicad_sch file | |
| target_soc | No | Target SOC family (stm32f4, esp32, nrf52) | stm32f4 |
| output_path | No | Optional output file path |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |