Well, look at that. It looks like it was a superfluous "-gpio" when I was getting the descriptor after all. I'm not sure how it's able to resolve to that device when I can't see it in a dump of the device tree, so that's an open question I can play with a little more care-free.
Since you asked about the TAS5827M, there's a TAS5805 driver in the kernel tree already which can be loaded with the I2C identifier for different generations. Technically, 0x60 is listed for a TAS5828M (hot off the presses, it seems) but that's the same identifier as the TAS5827M. However, it's all irrelevant to what I was working on here. I couldn't get a single change to happen anywhere with that driver code, with the first thing it has to do being to toggle a single GPIO pin. So I stopped looking at it and started looking at GPIO tutorials that were simpler to figure out how to make that work.
Without already looking at the existing driver source, it's clear to me a few things will have to be updated in there, but it'll come down to transferring what I learned here to it. The tutorial also has to change for at least the 6.6 kernel because it'll oops trying read the user buffer that comes in from the /proc file handle.
Thanks for putting up with me!
Since you asked about the TAS5827M, there's a TAS5805 driver in the kernel tree already which can be loaded with the I2C identifier for different generations. Technically, 0x60 is listed for a TAS5828M (hot off the presses, it seems) but that's the same identifier as the TAS5827M. However, it's all irrelevant to what I was working on here. I couldn't get a single change to happen anywhere with that driver code, with the first thing it has to do being to toggle a single GPIO pin. So I stopped looking at it and started looking at GPIO tutorials that were simpler to figure out how to make that work.
Without already looking at the existing driver source, it's clear to me a few things will have to be updated in there, but it'll come down to transferring what I learned here to it. The tutorial also has to change for at least the 6.6 kernel because it'll oops trying read the user buffer that comes in from the /proc file handle.
Thanks for putting up with me!
Statistics: Posted by Rocko Bonaparte — Sun Sep 15, 2024 8:46 pm