All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] dt-bindings: Add a binding for the RPi firmware GPIO driver.
@ 2016-09-19 16:13 ` Eric Anholt
  0 siblings, 0 replies; 40+ messages in thread
From: Eric Anholt @ 2016-09-19 16:13 UTC (permalink / raw)
  To: Linus Walleij
  Cc: linux-rpi-kernel, linux-arm-kernel, linux-kernel, Stephen Warren,
	Lee Jones, bcm-kernel-feedback-list, Alexandre Courbot,
	Rob Herring, Mark Rutland, Gerd Hoffmann, Eric Anholt

The RPi firmware exposes all of the board's GPIO lines through
property calls.  Linux chooses to control most lines directly through
the pinctrl driver, but for the FXL6408 GPIO expander on the Pi3, we
need to access them through the firmware.

Signed-off-by: Eric Anholt <eric@anholt.net>
---
 .../bindings/gpio/gpio-raspberrypi-firmware.txt    | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/gpio/gpio-raspberrypi-firmware.txt

diff --git a/Documentation/devicetree/bindings/gpio/gpio-raspberrypi-firmware.txt b/Documentation/devicetree/bindings/gpio/gpio-raspberrypi-firmware.txt
new file mode 100644
index 000000000000..2b635c23a6f8
--- /dev/null
+++ b/Documentation/devicetree/bindings/gpio/gpio-raspberrypi-firmware.txt
@@ -0,0 +1,22 @@
+Raspberry Pi power domain driver
+
+Required properties:
+
+- compatible:		Should be "raspberrypi,firmware-gpio"
+- gpio-controller:	Marks the device node as a gpio controller
+- #gpio-cells:		Should be <2> for GPIO number and flags
+- ngpios:		Number of GPIO lines to control.  See gpio.txt
+- firmware:		Reference to the RPi firmware device node
+- raspberrypi,firmware-gpio-offset:
+			Number the firmware uses for the first GPIO line
+			  controlled by this driver
+
+Example:
+fxl6408: firmware-gpio-128 {
+	compatible = "raspberrypi,firmware-gpio";
+	gpio-controller;
+	#gpio-cells = <2>;
+	firmware = <&firmware>;
+	ngpios = <8>;
+	raspberrypi,firmware-gpio-offset = <128>;
+};
-- 
2.9.3

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

end of thread, other threads:[~2016-10-06  8:16 UTC | newest]

Thread overview: 40+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-19 16:13 [PATCH 1/3] dt-bindings: Add a binding for the RPi firmware GPIO driver Eric Anholt
2016-09-19 16:13 ` Eric Anholt
2016-09-19 16:13 ` [PATCH 2/3] gpio: Add a driver for the Raspberry Pi's firmware GPIO calls Eric Anholt
2016-09-19 16:13   ` Eric Anholt
2016-09-23  9:08   ` Linus Walleij
2016-09-23  9:08     ` Linus Walleij
2016-09-23 13:15     ` Eric Anholt
2016-09-23 13:15       ` Eric Anholt
2016-09-23 14:08       ` Linus Walleij
2016-09-23 14:08         ` Linus Walleij
2016-09-24  7:01         ` Eric Anholt
2016-09-24  7:01           ` Eric Anholt
2016-10-06  8:16           ` Linus Walleij
2016-10-06  8:16             ` Linus Walleij
2016-09-26 16:46       ` Stephen Warren
2016-09-26 16:46         ` Stephen Warren
2016-09-23 19:00   ` Stefan Wahren
2016-09-23 19:00     ` Stefan Wahren
2016-09-19 16:13 ` [PATCH 3/3] arm64: Add the Raspberry Pi firmware's interface to the FXL6408 Eric Anholt
2016-09-19 16:13   ` Eric Anholt
2016-09-22 20:44   ` Gerd Hoffmann
2016-09-22 20:44     ` Gerd Hoffmann
2016-09-23  9:23     ` Linus Walleij
2016-09-23  9:23       ` Linus Walleij
2016-09-23  8:57 ` [PATCH 1/3] dt-bindings: Add a binding for the RPi firmware GPIO driver Linus Walleij
2016-09-23  8:57   ` Linus Walleij
2016-09-23 13:08   ` Eric Anholt
2016-09-23 13:08     ` Eric Anholt
2016-09-23 13:53     ` Linus Walleij
2016-09-23 13:53       ` Linus Walleij
2016-09-26 16:40     ` Stephen Warren
2016-09-26 16:40       ` Stephen Warren
2016-09-23 18:39 ` Stefan Wahren
2016-09-23 18:39   ` Stefan Wahren
2016-09-26 16:38   ` Stephen Warren
2016-09-26 16:38     ` Stephen Warren
2016-09-26 18:42     ` Stefan Wahren
2016-09-26 18:42       ` Stefan Wahren
2016-09-28 17:54       ` Stephen Warren
2016-09-28 17:54         ` Stephen Warren

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.