Linux GPIO subsystem development
 help / color / mirror / Atom feed
* small brainstorm for the problem I have
@ 2025-02-10  9:31 Andy Shevchenko
  2025-02-11 12:14 ` Bartosz Golaszewski
  2025-02-12 22:55 ` Linus Walleij
  0 siblings, 2 replies; 6+ messages in thread
From: Andy Shevchenko @ 2025-02-10  9:31 UTC (permalink / raw)
  To: linux-gpio; +Cc: Linus Walleij, Bartosz Golaszewski


I have a device that uses SPI bitbang (which is physically represented by bunch
of GPIOs). I want to have a driver of that device to use SPI GPIO driver, but...

1) SPI GPIO has an established DT schema and hardcoded GPIO line names in the
driver.

2) The firmware for the device uses already some names for the GPIO lines that
not compatible with SPI GPIO schema.

So, what would be the best approach here?

I was thinking about the following:
1) Use GPIO aggregator to fake the chip that will provide necessary names.

2) Hack the GPIO library to add a quirk for this specific device to translate
the line names.

3) ...your variant...

-- 
With Best Regards,
Andy Shevchenko



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-02-13 11:25 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-10  9:31 small brainstorm for the problem I have Andy Shevchenko
2025-02-11 12:14 ` Bartosz Golaszewski
2025-02-11 12:21   ` Andy Shevchenko
2025-02-12 22:55 ` Linus Walleij
2025-02-13  7:58   ` Andy Shevchenko
2025-02-13 11:24     ` Linus Walleij

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox