Message ID | 1452704263-16763-1-git-send-email-julien.grossholtz@savoirfairelinux.com |
---|---|
State | New |
Headers | show |
On Wed, Jan 13, 2016 at 5:57 PM, Julien Grossholtz <julien.grossholtz@savoirfairelinux.com> wrote: > Device tree binding documentation for the TS-4800 > GPIO controller. > > Signed-off-by: Julien Grossholtz <julien.grossholtz@savoirfairelinux.com> Patch applied, but I pointed the ngpios binding to gpio.txt. Yours, Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/Documentation/devicetree/bindings/gpio/gpio-ts4800.txt b/Documentation/devicetree/bindings/gpio/gpio-ts4800.txt new file mode 100644 index 0000000..57749f6 --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/gpio-ts4800.txt @@ -0,0 +1,21 @@ +* TS-4800 FPGA's GPIO controller bindings + +Required properties: +- compatible: Must be "technologic,ts4800-gpio". +- #gpio-cells: Should be two. The first cell is the pin number. +- reg: Physical base address of the controller and length + of memory mapped region. + +Optional property: +- ngpios: Number of gpios this controller has. If not set, + the default value (16) is used. + +Example: + +gpio1: gpio { + compatible = "technologic,ts4800-gpio"; + reg = <0x10020 0x6>; + ngpios = <8>; + gpio-controller; + #gpio-cells = <2>; +};
Device tree binding documentation for the TS-4800 GPIO controller. Signed-off-by: Julien Grossholtz <julien.grossholtz@savoirfairelinux.com> --- .../devicetree/bindings/gpio/gpio-ts4800.txt | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/gpio-ts4800.txt