mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-16 01:16:02 +00:00
There are a number of cases in which we a sensor can be either connected on I2C or SPI. We've been treating these cases as different compatiable properties, but they really should use the same compatiable and just determine the info based on the parent bus in the device tree. We can now support having two different binding files for the same compatiable to handle the case of a sensor supporting either I2C or SPI as how its connected. We put "sensor" nodes in a bus specific dict bus_bindings[bus] that we can than lookup later based on the DTS and determining the bus type that the "sensor" node is on. Fixes #11375 Signed-off-by: Kumar Gala <kumar.gala@linaro.org> |
||
---|---|---|
.. | ||
extract | ||
devicetree.py | ||
extract_dts_includes.py |