mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-12 11:25:59 +00:00
extract_controller only handle the first phandle in a cell property. However we could easily have something like this where the phandles vary: gpios = <&gpiod 13 GPIO_INT_ACTIVE_LOW &gpioc 14 GPIO_INT_ACTIVE_LOW>; So we need to walk the property list for each phandle and produce a define associated with it. Also, if alias to the node is defined, indexed alias define is generated for every indexed controller define: #define GPIO_LEDS_0_GPIO_CONTROLLER_0 "GPIOA" #define GPIO_LEDS_0_GPIO_CONTROLLER_1 "GPIOB" #define LED1_GPIO_CONTROLLER_0 GPIO_LEDS_0_GPIO_CONTROLLER_0 #define LED1_GPIO_CONTROLLER_1 GPIO_LEDS_0_GPIO_CONTROLLER_1 Signed-off-by: Kumar Gala <kumar.gala@linaro.org> |
||
---|---|---|
.. | ||
extract | ||
devicetree.py | ||
extract_dts_includes.py |