On Wed, Sep 24, 2025 at 8:25 PM Dmitry Torokhov <[email protected]> wrote: > > Hi Bartosz, > > On Wed, Sep 24, 2025 at 04:51:28PM +0200, Bartosz Golaszewski wrote: > > Here's a functional RFC for improving the handling of shared GPIOs in > > linux. > >
[snip] > > > > The practical use-case for this are the powerdown GPIOs shared by > > speakers on Qualcomm db845c platform, however I have also extensively > > tested it using gpio-virtuser on arm64 qemu with various DT > > configurations. > > How is this different from the existing gpio-backed regulator/supply? > IMO GPIOs are naturally exclusive-use resources (in cases when you need > to control them, not simply read their state), and when there is a need > to share them there are more appropriate abstractions that are built on > top of GPIOs... > I think you have never been on the receiving end of Krzysztof's wrath when trying to model a simple shared pin as a nonexistent reset provider or a fixed regulator in device-tree. :) Unless you mean some other abstractions I am missing. Bartosz
