You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gpiodriver: allow GpioDigitalOutputDriver match against MatchedSysfsGPIO
The documentation states that the GpioDigitalOutputDriver should bind to
the following three 'gpio' options:
- SysfsGPIO
- MatchedSysfsGPIO
- NetworkSysfsGPIO
However, the bindings list is:
bindings = {
"gpio": {"SysfsGPIO", "NetworkSysfsGPIO"},
}
and as a result, if I try to bind these two in an environment, I see
errors like:
labgrid.exceptions.NoSupplierFoundError: binding copilot-output-driver failed: no supplier matching {'NetworkSysfsGPIO', 'SysfsGPIO'} found in Target(name='beagleplay', env=Environment(config_file='bp-conf2.yaml')) (errors: [NoResourceFoundError(msg="no NetworkSysfsGPIO resource found in Target(name='beagleplay', env=Environment(config_file='bp-conf2.yaml'))", filter=None, found=None), NoResourceFoundError(msg="no SysfsGPIO resource found in Target(name='beagleplay', env=Environment(config_file='bp-conf2.yaml'))", filter=None, found=None)])
Adjust the list to include MatchedSysfsGPIO so that this works (and so
that the docs are correct).
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
0 commit comments