diff options
author | Steven Koo <steven.koo@ni.com> | 2020-06-09 18:43:13 -0500 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2020-06-11 10:39:05 -0500 |
commit | e244764ffa5b41a64c704864ea243b3939d71636 (patch) | |
tree | e21de07531ec18186a0511f985e2c930f3cb4beb /mpm/python/usrp_mpm/periph_manager | |
parent | 953b64ad061b3f677134b987c2bc395c39bd19b9 (diff) | |
download | uhd-e244764ffa5b41a64c704864ea243b3939d71636.tar.gz uhd-e244764ffa5b41a64c704864ea243b3939d71636.tar.bz2 uhd-e244764ffa5b41a64c704864ea243b3939d71636.zip |
mpm: Look for pca953x based devices by device/name
The pca953x driver introduced a change for how the "label" property
populates. Instead of using the device model, it gives a device specific
name. As a replacement, use device/name. This affects the tca6424
and tca6408.
For the kernel change that causes this see:
https://github.com/torvalds/linux/commit/5128f8d4450159f59565d247437d3bedda3994cb
Diffstat (limited to 'mpm/python/usrp_mpm/periph_manager')
-rw-r--r-- | mpm/python/usrp_mpm/periph_manager/n3xx_periphs.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mpm/python/usrp_mpm/periph_manager/n3xx_periphs.py b/mpm/python/usrp_mpm/periph_manager/n3xx_periphs.py index bcff03c8e..0e06342e1 100644 --- a/mpm/python/usrp_mpm/periph_manager/n3xx_periphs.py +++ b/mpm/python/usrp_mpm/periph_manager/n3xx_periphs.py @@ -102,7 +102,7 @@ class TCA6424(object): self.pins = self.pins_list[1] default_val = 0x860101 if rev == 2 else 0x860780 - self._gpios = SysFSGPIO({'label': 'tca6424', 'device/of_node/name': 'gpio'}, 0xFFF7FF, 0x86F7FF, default_val) + self._gpios = SysFSGPIO({'device/name': 'tca6424', 'device/of_node/name': 'gpio'}, 0xFFF7FF, 0x86F7FF, default_val) def set(self, name, value=None): """ |