xref: /freebsd/sys/contrib/device-tree/Bindings/gpio/ni,169445-nand-gpio.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel VadotBindings for the National Instruments 169445 GPIO NAND controller
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotThe 169445 GPIO NAND controller has two memory mapped GPIO registers, one
4*c66ec88fSEmmanuel Vadotfor input (the ready signal) and one for output (control signals).  It is
5*c66ec88fSEmmanuel Vadotintended to be used with the GPIO NAND driver.
6*c66ec88fSEmmanuel Vadot
7*c66ec88fSEmmanuel VadotRequired properties:
8*c66ec88fSEmmanuel Vadot	- compatible: should be "ni,169445-nand-gpio"
9*c66ec88fSEmmanuel Vadot	- reg-names: must contain
10*c66ec88fSEmmanuel Vadot		"dat" - data register
11*c66ec88fSEmmanuel Vadot	- reg: address + size pairs describing the GPIO register sets;
12*c66ec88fSEmmanuel Vadot		order must correspond with the order of entries in reg-names
13*c66ec88fSEmmanuel Vadot	- #gpio-cells: must be set to 2. The first cell is the pin number and
14*c66ec88fSEmmanuel Vadot			the second cell is used to specify the gpio polarity:
15*c66ec88fSEmmanuel Vadot			0 = active high
16*c66ec88fSEmmanuel Vadot			1 = active low
17*c66ec88fSEmmanuel Vadot	- gpio-controller: Marks the device node as a gpio controller.
18*c66ec88fSEmmanuel Vadot
19*c66ec88fSEmmanuel VadotOptional properties:
20*c66ec88fSEmmanuel Vadot	- no-output: disables driving output on the pins
21*c66ec88fSEmmanuel Vadot
22*c66ec88fSEmmanuel VadotExamples:
23*c66ec88fSEmmanuel Vadot	gpio1: nand-gpio-out@1f300010 {
24*c66ec88fSEmmanuel Vadot		compatible = "ni,169445-nand-gpio";
25*c66ec88fSEmmanuel Vadot		reg = <0x1f300010 0x4>;
26*c66ec88fSEmmanuel Vadot		reg-names = "dat";
27*c66ec88fSEmmanuel Vadot		gpio-controller;
28*c66ec88fSEmmanuel Vadot		#gpio-cells = <2>;
29*c66ec88fSEmmanuel Vadot	};
30*c66ec88fSEmmanuel Vadot
31*c66ec88fSEmmanuel Vadot	gpio2: nand-gpio-in@1f300014 {
32*c66ec88fSEmmanuel Vadot		compatible = "ni,169445-nand-gpio";
33*c66ec88fSEmmanuel Vadot		reg = <0x1f300014 0x4>;
34*c66ec88fSEmmanuel Vadot		reg-names = "dat";
35*c66ec88fSEmmanuel Vadot		gpio-controller;
36*c66ec88fSEmmanuel Vadot		#gpio-cells = <2>;
37*c66ec88fSEmmanuel Vadot		no-output;
38*c66ec88fSEmmanuel Vadot	};
39