Skip to main content

Module device_tree

Module device_tree 

Modules§

aliases
chosen
memory

Structs§

CanIrq
CanPin
CanRegistryEntry
I2cBusPin
I2cBusRegistryEntry
I2cDevPin
I2cDeviceRegistryEntry
KeyRegistryEntry
LedRegistryEntry
Peripheral
SpiBusPin
SpiBusRegistryEntry
SpiDevPin
SpiDeviceRegistryEntry
TreeNode

Enums§

LedDefaultState
LedOutputMode
LedPull
PropValue

Constants§

CAN_REGISTRY
I2C_BUS_REGISTRY
KEY_REGISTRY
LED_REGISTRY
NODES
PERIPHERALS
SPI_BUS_REGISTRY

Functions§

can_by_compatible
compatible matches either the osiris-namespaced osiris,stm32l4-can or the canonical Zephyr st,stm32-bxcan — both refer to the same bxCAN hardware, and the registry stores whichever the DT node declared. Either string accepted on lookup so callers don’t need to know which name the board overlay used.
i2c_bus_by_dev
i2c_device_by_compatible
key_by_alias
resolve a /aliases entry to its KeyRegistryEntry
key_by_code
find a key by its osiris,code / zephyr,code value
key_by_label
find a key by its label property (exact match)
led_by_alias
resolve a /aliases entry to its LedRegistryEntry
led_by_label
find an LED by its label property (exact match)
led_by_node
find an LED by its NODES index
peripheral_by_compatible
find the first enabled peripheral for which any compatible string equals c
peripheral_by_name_under
find a peripheral by name scoped to a specific parent node index safe form of name lookup since node names are only unique among siblings
peripheral_by_node
find a peripheral by its NODES index NODES indices are unique
peripheral_by_path
find a peripheral by its full path from root, with or without unit addresses e.g. soc/i2c@40005400/lsm6dsl@6a or soc/i2c/lsm6dsl at each level the first sibling whose name matches is taken
peripheral_by_phandle
find a peripheral by its phandle value ignores enabled status - phandle targets like clock providers may have no status prop phandle values are unique
peripherals_by_compatible
iterate all enabled peripherals for which any compatible string equals c
peripherals_by_name
iterate all peripherals whose node name matches, with or without unit address e.g. channel matches channel@0, channel@1, etc. across all parents node names are only unique among siblings - use peripheral_by_name_under or peripheral_by_path when you need an unambiguous match
spi_bus_by_dev
spi_device_by_compatible