Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

gpio: mmio: add support for NI 169445 NAND GPIO

The GPIO-based NAND controller on National Instruments 169445 hardware
exposes a set of simple lines for the control signals.

Signed-off-by: Nathan Sullivan <nathan.sullivan@ni.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Nathan Sullivan and committed by
Linus Walleij
b8c90199 d8307c09

+39
+38
Documentation/devicetree/bindings/gpio/ni,169445-nand-gpio.txt
··· 1 + Bindings for the National Instruments 169445 GPIO NAND controller 2 + 3 + The 169445 GPIO NAND controller has two memory mapped GPIO registers, one 4 + for input (the ready signal) and one for output (control signals). It is 5 + intended to be used with the GPIO NAND driver. 6 + 7 + Required properties: 8 + - compatible: should be "ni,169445-nand-gpio" 9 + - reg-names: must contain 10 + "dat" - data register 11 + - reg: address + size pairs describing the GPIO register sets; 12 + order must correspond with the order of entries in reg-names 13 + - #gpio-cells: must be set to 2. The first cell is the pin number and 14 + the second cell is used to specify the gpio polarity: 15 + 0 = active high 16 + 1 = active low 17 + - gpio-controller: Marks the device node as a gpio controller. 18 + 19 + Optional properties: 20 + - no-output: disables driving output on the pins 21 + 22 + Examples: 23 + gpio1: nand-gpio-out@1f300010 { 24 + compatible = "ni,169445-nand-gpio"; 25 + reg = <0x1f300010 0x4>; 26 + reg-names = "dat"; 27 + gpio-controller; 28 + #gpio-cells = <2>; 29 + }; 30 + 31 + gpio2: nand-gpio-in@1f300014 { 32 + compatible = "ni,169445-nand-gpio"; 33 + reg = <0x1f300014 0x4>; 34 + reg-names = "dat"; 35 + gpio-controller; 36 + #gpio-cells = <2>; 37 + no-output; 38 + };
+1
drivers/gpio/gpio-mmio.c
··· 575 575 static const struct of_device_id bgpio_of_match[] = { 576 576 { .compatible = "brcm,bcm6345-gpio" }, 577 577 { .compatible = "wd,mbl-gpio" }, 578 + { .compatible = "ni,169445-nand-gpio" }, 578 579 { } 579 580 }; 580 581 MODULE_DEVICE_TABLE(of, bgpio_of_match);