From: Baruch Siach <baruch@tkos.co.il> To: Linus Walleij <linus.walleij@linaro.org>, Dave Stevenson <dave.stevenson@raspberrypi.org>, Eric Anholt <eric@anholt.net>, Stefan Wahren <stefan.wahren@i2se.com> Cc: devicetree@vger.kernel.org, Baruch Siach <baruch@tkos.co.il>, linux-gpio@vger.kernel.org, Michael Zoran <mzoran@crowfest.net>, Rob Herring <robh+dt@kernel.org>, linux-rpi-kernel@lists.infradead.org, Frank Rowand <frowand.list@gmail.com>, linux-arm-kernel@lists.infradead.org Subject: [PATCH v5 2/5] dt-bindings: gpio: add raspberry pi GPIO expander binding Date: Tue, 20 Feb 2018 14:19:32 +0200 [thread overview] Message-ID: <f400b48cbcd8a138c39d4e8f63d6c1f569090dcc.1519128054.git.baruch@tkos.co.il> (raw) In-Reply-To: <cover.1519128054.git.baruch@tkos.co.il> 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> --- v5: * Remove the 'firmware' property * Note that the gpio node is a child of the firmware node v4: * Move the example gpio node under the firmware node * Rename gpio node name to plain 'gpio' v3: * Rename node name. v2: * Rename compatible string to raspberrypi,firmware-gpio --- .../bindings/gpio/raspberrypi,firmware-gpio.txt | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/raspberrypi,firmware-gpio.txt 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>; + }; +}; -- 2.16.1
WARNING: multiple messages have this Message-ID (diff)
From: baruch@tkos.co.il (Baruch Siach) To: linux-arm-kernel@lists.infradead.org Subject: [PATCH v5 2/5] dt-bindings: gpio: add raspberry pi GPIO expander binding Date: Tue, 20 Feb 2018 14:19:32 +0200 [thread overview] Message-ID: <f400b48cbcd8a138c39d4e8f63d6c1f569090dcc.1519128054.git.baruch@tkos.co.il> (raw) In-Reply-To: <cover.1519128054.git.baruch@tkos.co.il> 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> --- v5: * Remove the 'firmware' property * Note that the gpio node is a child of the firmware node v4: * Move the example gpio node under the firmware node * Rename gpio node name to plain 'gpio' v3: * Rename node name. v2: * Rename compatible string to raspberrypi,firmware-gpio --- .../bindings/gpio/raspberrypi,firmware-gpio.txt | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/raspberrypi,firmware-gpio.txt 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>; + }; +}; -- 2.16.1
next prev parent reply other threads:[~2018-02-20 12:19 UTC|newest] Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top 2018-02-20 12:19 [PATCH v5 0/5] gpio: driver for the RPi3 GPIO expander Baruch Siach 2018-02-20 12:19 ` Baruch Siach 2018-02-20 12:19 ` [PATCH v5 1/5] ARM: bcm2835: sync firmware properties with downstream Baruch Siach 2018-02-20 12:19 ` Baruch Siach 2018-02-22 12:47 ` Linus Walleij 2018-02-22 12:47 ` Linus Walleij 2018-02-20 12:19 ` Baruch Siach [this message] 2018-02-20 12:19 ` [PATCH v5 2/5] dt-bindings: gpio: add raspberry pi GPIO expander binding Baruch Siach 2018-02-20 13:40 ` Rob Herring 2018-02-20 13:40 ` Rob Herring 2018-02-22 12:49 ` Linus Walleij 2018-02-22 12:49 ` Linus Walleij 2018-02-20 12:19 ` [PATCH v5 3/5] gpio: raspberrypi-exp: Driver for RPi3 GPIO expander via mailbox service Baruch Siach 2018-02-20 12:19 ` Baruch Siach 2018-02-22 12:50 ` Linus Walleij 2018-02-22 12:50 ` Linus Walleij 2018-02-20 12:19 ` [PATCH v5 4/5] ARM: dts: bcm2835: make the firmware node into a bus Baruch Siach 2018-02-20 12:19 ` Baruch Siach 2018-02-22 12:51 ` Linus Walleij 2018-02-22 12:51 ` Linus Walleij 2018-02-20 12:19 ` [PATCH v5 5/5] ARM: dts: bcm2837-rpi-3-b: add GPIO expander Baruch Siach 2018-02-20 12:19 ` Baruch Siach 2018-02-22 12:52 ` Linus Walleij 2018-02-22 12:52 ` Linus Walleij 2018-02-22 20:06 ` Eric Anholt 2018-02-22 20:06 ` Eric Anholt
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=f400b48cbcd8a138c39d4e8f63d6c1f569090dcc.1519128054.git.baruch@tkos.co.il \ --to=baruch@tkos.co.il \ --cc=dave.stevenson@raspberrypi.org \ --cc=devicetree@vger.kernel.org \ --cc=eric@anholt.net \ --cc=frowand.list@gmail.com \ --cc=linus.walleij@linaro.org \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-gpio@vger.kernel.org \ --cc=linux-rpi-kernel@lists.infradead.org \ --cc=mzoran@crowfest.net \ --cc=robh+dt@kernel.org \ --cc=stefan.wahren@i2se.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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.