Skip to content

gpio: Allow userspace export from DT

Russell King - ARM Linux linux-arm-kernel linux-devicetree linux-gpio 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest0 of 2 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 2 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] gpio: Allow userspace export from DT
Quoted 2 lines · Johan Hovold

Firmware should describe pin directionality and function, and undefined pins should never be allowed to be accessed from userspace.

No, that's totally wrong if you consider one of the most common use cases out there...

Think about something like a Raspberry Pi, where you have a header with GPIOs on it, which can be used for multiple different purposes (and are even multiplexed with some on-SoC functions.)

"Firmware" can't know about all possible configurations of those IO pins.

That's why Raspberry Pi uses a userspace helper and programs stuff up appropriately for the users application.

Signature · 2 lines
FTTC broadband for 0.8mile line: currently at 10.5Mbps down 400kbps up
according to speedtest.net.