18c2ecf20Sopenharmony_ciNVIDIA Tegra GPIO controller
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ciRequired properties:
48c2ecf20Sopenharmony_ci- compatible : "nvidia,tegra<chip>-gpio"
58c2ecf20Sopenharmony_ci- reg : Physical base address and length of the controller's registers.
68c2ecf20Sopenharmony_ci- interrupts : The interrupt outputs from the controller. For Tegra20,
78c2ecf20Sopenharmony_ci  there should be 7 interrupts specified, and for Tegra30, there should
88c2ecf20Sopenharmony_ci  be 8 interrupts specified.
98c2ecf20Sopenharmony_ci- #gpio-cells : Should be two. The first cell is the pin number and the
108c2ecf20Sopenharmony_ci  second cell is used to specify optional parameters:
118c2ecf20Sopenharmony_ci  - bit 0 specifies polarity (0 for normal, 1 for inverted)
128c2ecf20Sopenharmony_ci- gpio-controller : Marks the device node as a GPIO controller.
138c2ecf20Sopenharmony_ci- #interrupt-cells : Should be 2.
148c2ecf20Sopenharmony_ci  The first cell is the GPIO number.
158c2ecf20Sopenharmony_ci  The second cell is used to specify flags:
168c2ecf20Sopenharmony_ci    bits[3:0] trigger type and level flags:
178c2ecf20Sopenharmony_ci      1 = low-to-high edge triggered.
188c2ecf20Sopenharmony_ci      2 = high-to-low edge triggered.
198c2ecf20Sopenharmony_ci      4 = active high level-sensitive.
208c2ecf20Sopenharmony_ci      8 = active low level-sensitive.
218c2ecf20Sopenharmony_ci      Valid combinations are 1, 2, 3, 4, 8.
228c2ecf20Sopenharmony_ci- interrupt-controller : Marks the device node as an interrupt controller.
238c2ecf20Sopenharmony_ci
248c2ecf20Sopenharmony_ciExample:
258c2ecf20Sopenharmony_ci
268c2ecf20Sopenharmony_cigpio: gpio@6000d000 {
278c2ecf20Sopenharmony_ci	compatible = "nvidia,tegra20-gpio";
288c2ecf20Sopenharmony_ci	reg = < 0x6000d000 0x1000 >;
298c2ecf20Sopenharmony_ci	interrupts = < 0 32 0x04
308c2ecf20Sopenharmony_ci		       0 33 0x04
318c2ecf20Sopenharmony_ci		       0 34 0x04
328c2ecf20Sopenharmony_ci		       0 35 0x04
338c2ecf20Sopenharmony_ci		       0 55 0x04
348c2ecf20Sopenharmony_ci		       0 87 0x04
358c2ecf20Sopenharmony_ci		       0 89 0x04 >;
368c2ecf20Sopenharmony_ci	#gpio-cells = <2>;
378c2ecf20Sopenharmony_ci	gpio-controller;
388c2ecf20Sopenharmony_ci	#interrupt-cells = <2>;
398c2ecf20Sopenharmony_ci	interrupt-controller;
408c2ecf20Sopenharmony_ci};
41