diff options
author | Baruch Siach <baruch@tkos.co.il> | 2018-02-20 15:19:32 +0300 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2018-02-22 15:48:31 +0300 |
commit | 9777d8099a4a9df1625b4caaee1388c0158478c5 (patch) | |
tree | 99dabb48aa5ec8060ebfaae89d0b0417c14a6a23 /Documentation/devicetree/bindings/gpio/raspberrypi,firmware-gpio.txt | |
parent | 08af112e79cab22f318ca0ad1a48187eee5ac2f0 (diff) | |
download | linux-9777d8099a4a9df1625b4caaee1388c0158478c5.tar.xz |
dt-bindings: gpio: add raspberry pi GPIO expander binding
The Raspberry Pi 3 GPIO expander is controlled by the VC4 firmware over
I2C. The firmware mailbox interface allows the ARM core to control the
GPIO lines.
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'Documentation/devicetree/bindings/gpio/raspberrypi,firmware-gpio.txt')
-rw-r--r-- | Documentation/devicetree/bindings/gpio/raspberrypi,firmware-gpio.txt | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/gpio/raspberrypi,firmware-gpio.txt b/Documentation/devicetree/bindings/gpio/raspberrypi,firmware-gpio.txt new file mode 100644 index 000000000000..ce97265e23ba --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/raspberrypi,firmware-gpio.txt @@ -0,0 +1,30 @@ +Raspberry Pi GPIO expander + +The Raspberry Pi 3 GPIO expander is controlled by the VC4 firmware. The +firmware exposes a mailbox interface that allows the ARM core to control the +GPIO lines on the expander. + +The Raspberry Pi GPIO expander node must be a child node of the Raspberry Pi +firmware node. + +Required properties: + +- compatible : Should be "raspberrypi,firmware-gpio" +- gpio-controller : Marks the device node as a gpio controller +- #gpio-cells : Should be two. The first cell is the pin number, and + the second cell is used to specify the gpio polarity: + 0 = active high + 1 = active low + +Example: + +firmware: firmware-rpi { + compatible = "raspberrypi,bcm2835-firmware"; + mboxes = <&mailbox>; + + expgpio: gpio { + compatible = "raspberrypi,firmware-gpio"; + gpio-controller; + #gpio-cells = <2>; + }; +}; |