Commit 32d96172 authored by Linus Walleij's avatar Linus Walleij

gpio: gemini: augment DT bindings

The DT bindings assumed that this IP block was coming from
Cortina Systems, which turns out not to be true. It is a
standard IP block from Faraday Technology and also used in the
Moxa moxart SoC.

We augment the bindings to cover all existing parts and rename
it after the IP block. This involves deleting the old Moxa
bindings that now are contained in this binding.

Cc: devicetree@vger.kernel.org
Cc: Jonas Jensen <jonas.jensen@gmail.com>
Acked-by: Rob Herring's avatarRob Herring <robh@kernel.org>
Signed-off-by: Linus Walleij's avatarLinus Walleij <linus.walleij@linaro.org>
parent f07708c4
Cortina Systems Gemini GPIO Controller Faraday Technology FTGPIO010 GPIO Controller
Required properties: Required properties:
- compatible : Must be "cortina,gemini-gpio" - compatible : Should be one of
"cortina,gemini-gpio", "faraday,ftgpio010"
"moxa,moxart-gpio", "faraday,ftgpio010"
"faraday,ftgpio010"
- reg : Should contain registers location and length - reg : Should contain registers location and length
- interrupts : Should contain the interrupt line for the GPIO block - interrupts : Should contain the interrupt line for the GPIO block
- gpio-controller : marks this as a GPIO controller - gpio-controller : marks this as a GPIO controller
...@@ -14,7 +17,7 @@ Required properties: ...@@ -14,7 +17,7 @@ Required properties:
Example: Example:
gpio@4d000000 { gpio@4d000000 {
compatible = "cortina,gemini-gpio"; compatible = "cortina,gemini-gpio", "faraday,ftgpio010";
reg = <0x4d000000 0x100>; reg = <0x4d000000 0x100>;
interrupts = <22 IRQ_TYPE_LEVEL_HIGH>; interrupts = <22 IRQ_TYPE_LEVEL_HIGH>;
gpio-controller; gpio-controller;
......
MOXA ART GPIO Controller
Required properties:
- #gpio-cells : Should be 2, The first cell is the pin number,
the second cell is used to specify polarity:
0 = active high
1 = active low
- compatible : Must be "moxa,moxart-gpio"
- reg : Should contain registers location and length
Example:
gpio: gpio@98700000 {
gpio-controller;
#gpio-cells = <2>;
compatible = "moxa,moxart-gpio";
reg = <0x98700000 0xC>;
};
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment