Look up a Zephyr devicetree binding
lookup_zephyr_bindingReturns the devicetree binding of a compatible in a Zephyr release: its properties with type, whether required, allowed values and defaults, the bus it sits on, its child nodes and its specifier cells. Use it when writing a devicetree node or overlay, instead of recalling property names from memory. Covers the bindings in the Zephyr tree for 3.7, 4.4, 4.5. Bindings that a module or an application adds are not covered.
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": {
"compatible": "<compatible>"
},
"name": "lookup_zephyr_binding"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| version | No | The Zephyr release: 3.7, 4.4, 4.5. Default 4.5. For another release, use the nearest one below it. | |
| compatible | Yes | The compatible string, for example st,stm32-uart, nordic,nrf-uarte, bosch,bme280 or gpio-leds. Words are searched when nothing matches. |