471d2f3a0a
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> |
||
---|---|---|
.. | ||
extract | ||
devicetree.py | ||
extract_dts_includes.py |