zephyr/scripts/dts
Kumar Gala ded17a910d scripts: extract_dts_includes: Fix extract_controller for a list
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>
2018-05-10 10:38:23 -05:00
..
extract scripts: extract_dts_inlcudes: look up compatible field in parents 2018-04-19 09:32:39 -05:00
devicetree.py scripts/dts: Use 4-spaces tabs instead of 2-space tabs in devicetree.py 2018-03-26 14:48:49 -04:00
extract_dts_includes.py scripts: extract_dts_includes: Fix extract_controller for a list 2018-05-10 10:38:23 -05:00