public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
* Location for a kind of GPIO bus driver
@ 2013-07-23 15:18 Simon Guinot
  2013-07-24 18:19 ` Jason Cooper
  2013-07-25 21:46 ` Linus Walleij
  0 siblings, 2 replies; 10+ messages in thread
From: Simon Guinot @ 2013-07-23 15:18 UTC (permalink / raw)
  To: linux-arm-kernel

Hi,

I am currently working on converting the LED driver leds-netxbig to DT.
Doing so, I am also considering to move the GPIO extension bus functions
(which are currently parts of leds-netxbig) into a separate driver.

On the LaCie "Big Network" board family (netxbig), the LEDs are
controlled by a CPLD. In turn, the CPLD can be configured (mostly the
LEDs modes) through a kind of parallel GPIO bus, called GPIO extension
bus. Two registers (address and data) are exposed. Each of them is made
up of several GPIOs. An extra GPIO is used to notify the CPLD that the
registers have been updated. The leds-netxbig driver uses some dedicated
functions (prefixed by "gpio_ext_") to handle the GPIO bus extension.

On the latest "Big Network" boards, this bus is also used to enable the
PM wakeup sources: the CPLD can be asked to keep powered some devices
(as the RTC or the Ethernet PHY) while the board is down. I think it
could be nice to expose this feature to the userland. That's why I am
thinking about moving the GPIO extension bus support into a separate
driver. The problem is that I can't find a proper location for a such
driver. AFAIK, it doesn't fit with anything existing supported by Linux.
Maybe I should consider drivers/bus ? Or even drivers/misc ?

Also from a DT point, it not clear to me how the resulting bus and LEDs
driver are going to work together.

Any advice is welcome. Thanks in advance.

Simon
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20130723/14d4cf33/attachment.sig>

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

end of thread, other threads:[~2013-07-26 16:18 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-23 15:18 Location for a kind of GPIO bus driver Simon Guinot
2013-07-24 18:19 ` Jason Cooper
2013-07-25 15:49   ` Simon Guinot
2013-07-25 16:03     ` Jason Cooper
2013-07-26  8:56       ` Simon Guinot
2013-07-26 11:27         ` Jason Cooper
2013-07-26 16:18         ` Arnd Bergmann
2013-07-25 21:46 ` Linus Walleij
2013-07-25 22:16   ` Greg KH
2013-07-26 12:01     ` Jason Cooper

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