Re: Polymorphic devices

2024-01-06 Thread Brad Spencer
Iain Hibbert writes: > On Fri, 5 Jan 2024, Brad Spencer wrote: > >> I see a few options for doing this, such as simply matching all of the >> possible children and using sysctl to enable the one you want. Probably >> followed by a rescan call. That seems ugly, however. The use of >> 'drvctl -r

Re: Polymorphic devices

2024-01-06 Thread Greg Troxel
Brad Spencer writes: > I don't know just yet, but there might be unwanted device reset the "use > the one you open" technique. That is, you might have to reset the chip > to change mode and if you support say, I2C and GPIO at the same time > (which is possible), but then change to just GPIO the

Re: Polymorphic devices

2024-01-06 Thread Brad Spencer
m...@goathill.org (MLH) writes: > Brad Spencer wrote : > >> It has a built in UART which is a separate USB device and then >> a USB device that can be programmed to provide I2C, Hello... > What are you using to flash these devices? No flashing of anything is needed to use the I2C mode. All you

Re: Polymorphic devices

2024-01-06 Thread Iain Hibbert
On Fri, 5 Jan 2024, Brad Spencer wrote: > I see a few options for doing this, such as simply matching all of the > possible children and using sysctl to enable the one you want. Probably > followed by a rescan call. That seems ugly, however. The use of > 'drvctl -r -a ' seemed to hold promise.

Re: Polymorphic devices

2024-01-05 Thread MLH
Brad Spencer wrote : > It has a built in UART which is a separate USB device and then > a USB device that can be programmed to provide I2C, What are you using to flash these devices? I have been using several I2C devices such as servomotor controllers, i/o extenders, relay controllers, displays,

Re: Polymorphic devices

2024-01-05 Thread Brad Spencer
Greg Troxel writes: > Brad Spencer writes: > >> The first is enhancements to ufdti to support the MPSSE engine that some >> of the FTDI chip variants have. This engine allows the chip to be a I2C >> bus, SPI bus and provides some simple GPIO, and a bunch of other stuff, >> as well as the normal

Re: Polymorphic devices

2024-01-05 Thread Greg Troxel
Brad Spencer writes: > The first is enhancements to ufdti to support the MPSSE engine that some > of the FTDI chip variants have. This engine allows the chip to be a I2C > bus, SPI bus and provides some simple GPIO, and a bunch of other stuff, > as well as the normal USB UART. It is not possibl

Polymorphic devices

2024-01-05 Thread Brad Spencer
Hello I am in need of some advise and guidance. I am working slowly on device support for a couple of USB chips that have multiple, but somewhat mutually exclusive, behaviors. The first is enhancements to ufdti to support the MPSSE engine that some of the FTDI chip variants have. This eng