zephyr/scripts/dts/extract
Kumar Gala 471d2f3a0a scripts: extract_dts_includes: Generate device bus info define
For devices on buses like I2C or SPI its possible that a sensor might
support being on either bus type.  In the dts we can tell this by
looking at the parent bus of the device.  Its useful for a driver to
know this so can we build support into the driver accordingly.

For example if the LSM6DSL sensor ("st,lsm6dsl") is in the dts on a spi
bus we now generate:

	#define DT_ST_LPS22HB_PRESS_BUS_SPI	1

Its possible that a system exists in which multiple of the same sensor
exist but on different busses, so drivers should handle that case
accordingly.  For the LSM6DSL example we'd end up with:

	#define DT_ST_LPS22HB_PRESS_BUS_I2C	1
	#define DT_ST_LPS22HB_PRESS_BUS_SPI	1

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-12-07 09:08:04 -06:00
..
__init__.py
clocks.py scripts: extract_dts_includes: Pass node address to get_binding 2018-12-07 09:08:04 -06:00
compatible.py scripts: extract_dts_includes: Generate device bus info define 2018-12-07 09:08:04 -06:00
default.py scripts: extract_dts_includes: remove passing yaml param to functions 2018-12-07 09:08:04 -06:00
directive.py scripts: extract_dts_includes: remove passing yaml param to functions 2018-12-07 09:08:04 -06:00
flash.py scripts: extract_dts_includes: remove passing yaml param to functions 2018-12-07 09:08:04 -06:00
globals.py scripts: extract_dts_includes: Support same sensor on different bus 2018-12-07 09:08:04 -06:00
interrupts.py scripts: extract_dts_includes: Pass node address to get_binding 2018-12-07 09:08:04 -06:00
pinctrl.py scripts: extract_dts_includes: Pass node address to get_binding 2018-12-07 09:08:04 -06:00
reg.py scripts: extract_dts_includes: remove passing yaml param to functions 2018-12-07 09:08:04 -06:00