uhd/mpm
Jörg Hofrichter 99faba1fe4 mpm: sys_utils.i2c_dev: rework, e.g. don't rely on i2c-adapter
The i2c-adapter subsystem was meant as a temporary compatibility
layer. The recommended option always was to rely on i2c-dev
subsystem only. With commit 7e722083fc the i2c-adapter subsystem
was finally removed from Linux kernel 6.12.

The logic for resolving the i2c-dev device node was changed
accordingly.

This change also adopts all occurances in the code where the I2C
bus or device node is resolved to use resolving by devicetree
symbol. E.g. in n3xx.py, the N32X QSFP I2C node was resolved by
devicetree label before.

Overall, two functions are now provided by sys_utils.i2c_dev:

- dt_symbol_get_i2c_bus: Get the I2C bus (as pyudev.Device) for
  a given device tree symbol. This function is used if the
  returned value is further used for filtering devices using
  udev, e.g. searching for certain devices on the same I2C bus.
- dt_symbol_get_i2c_device_node: Get the i2c-dev device node
  (e.g. "/dev/i2c-0") for a given device tree symbol. This function
  is used in cases where only the device node is of interest, e.g.
  when passing it to a C/C++ library.
2026-06-25 14:47:14 +02:00
..
cmake/Modules mpm: fixed cmake macro for enabling modules 2020-01-22 12:54:54 -08:00
include doc: Fix documentation for Doxygen 2026-05-07 14:58:01 +02:00
lib mpm: include missing header in mykonos lib 2026-03-24 11:29:27 +01:00
python mpm: sys_utils.i2c_dev: rework, e.g. don't rely on i2c-adapter 2026-06-25 14:47:14 +02:00
systemd mpm: deactivate Duplicate Address Detection (DAD) on int0 interface 2024-06-11 10:20:08 +02:00
tests uhd: mpm: update all license header w/ "-or-later" 2019-03-08 00:43:07 +01:00
tools MPM: Fix regular expression 2026-05-28 14:14:53 +02:00
.gitignore Move ignore of build folders into top level 2025-07-18 11:19:52 +02:00
CMakeLists.txt cmake: Remove some Boost dependencies 2026-06-15 09:50:16 +02:00