18c2ecf20Sopenharmony_ciBindings for the National Instruments 169445 GPIO NAND controller 28c2ecf20Sopenharmony_ci 38c2ecf20Sopenharmony_ciThe 169445 GPIO NAND controller has two memory mapped GPIO registers, one 48c2ecf20Sopenharmony_cifor input (the ready signal) and one for output (control signals). It is 58c2ecf20Sopenharmony_ciintended to be used with the GPIO NAND driver. 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ciRequired properties: 88c2ecf20Sopenharmony_ci - compatible: should be "ni,169445-nand-gpio" 98c2ecf20Sopenharmony_ci - reg-names: must contain 108c2ecf20Sopenharmony_ci "dat" - data register 118c2ecf20Sopenharmony_ci - reg: address + size pairs describing the GPIO register sets; 128c2ecf20Sopenharmony_ci order must correspond with the order of entries in reg-names 138c2ecf20Sopenharmony_ci - #gpio-cells: must be set to 2. The first cell is the pin number and 148c2ecf20Sopenharmony_ci the second cell is used to specify the gpio polarity: 158c2ecf20Sopenharmony_ci 0 = active high 168c2ecf20Sopenharmony_ci 1 = active low 178c2ecf20Sopenharmony_ci - gpio-controller: Marks the device node as a gpio controller. 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ciOptional properties: 208c2ecf20Sopenharmony_ci - no-output: disables driving output on the pins 218c2ecf20Sopenharmony_ci 228c2ecf20Sopenharmony_ciExamples: 238c2ecf20Sopenharmony_ci gpio1: nand-gpio-out@1f300010 { 248c2ecf20Sopenharmony_ci compatible = "ni,169445-nand-gpio"; 258c2ecf20Sopenharmony_ci reg = <0x1f300010 0x4>; 268c2ecf20Sopenharmony_ci reg-names = "dat"; 278c2ecf20Sopenharmony_ci gpio-controller; 288c2ecf20Sopenharmony_ci #gpio-cells = <2>; 298c2ecf20Sopenharmony_ci }; 308c2ecf20Sopenharmony_ci 318c2ecf20Sopenharmony_ci gpio2: nand-gpio-in@1f300014 { 328c2ecf20Sopenharmony_ci compatible = "ni,169445-nand-gpio"; 338c2ecf20Sopenharmony_ci reg = <0x1f300014 0x4>; 348c2ecf20Sopenharmony_ci reg-names = "dat"; 358c2ecf20Sopenharmony_ci gpio-controller; 368c2ecf20Sopenharmony_ci #gpio-cells = <2>; 378c2ecf20Sopenharmony_ci no-output; 388c2ecf20Sopenharmony_ci }; 39