18c2ecf20Sopenharmony_ciCadence GPIO controller bindings
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ciRequired properties:
48c2ecf20Sopenharmony_ci- compatible: should be "cdns,gpio-r1p02".
58c2ecf20Sopenharmony_ci- reg: the register base address and size.
68c2ecf20Sopenharmony_ci- #gpio-cells: should be 2.
78c2ecf20Sopenharmony_ci	* first cell is the GPIO number.
88c2ecf20Sopenharmony_ci	* second cell specifies the GPIO flags, as defined in
98c2ecf20Sopenharmony_ci		<dt-bindings/gpio/gpio.h>. Only the GPIO_ACTIVE_HIGH
108c2ecf20Sopenharmony_ci		and GPIO_ACTIVE_LOW flags are supported.
118c2ecf20Sopenharmony_ci- gpio-controller: marks the device as a GPIO controller.
128c2ecf20Sopenharmony_ci- clocks: should contain one entry referencing the peripheral clock driving
138c2ecf20Sopenharmony_ci	the GPIO controller.
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ciOptional properties:
168c2ecf20Sopenharmony_ci- ngpios: integer number of gpio lines supported by this controller, up to 32.
178c2ecf20Sopenharmony_ci- interrupts: interrupt specifier for the controllers interrupt.
188c2ecf20Sopenharmony_ci- interrupt-controller: marks the device as an interrupt controller. When
198c2ecf20Sopenharmony_ci	defined, interrupts, interrupt-parent and #interrupt-cells
208c2ecf20Sopenharmony_ci	are required.
218c2ecf20Sopenharmony_ci- interrupt-cells: should be 2.
228c2ecf20Sopenharmony_ci	* first cell is the GPIO number you want to use as an IRQ source.
238c2ecf20Sopenharmony_ci	* second cell specifies the IRQ type, as defined in
248c2ecf20Sopenharmony_ci		<dt-bindings/interrupt-controller/irq.h>.
258c2ecf20Sopenharmony_ci		Currently only level sensitive IRQs are supported.
268c2ecf20Sopenharmony_ci
278c2ecf20Sopenharmony_ci
288c2ecf20Sopenharmony_ciExample:
298c2ecf20Sopenharmony_ci	gpio0: gpio-controller@fd060000 {
308c2ecf20Sopenharmony_ci		compatible = "cdns,gpio-r1p02";
318c2ecf20Sopenharmony_ci		reg =<0xfd060000 0x1000>;
328c2ecf20Sopenharmony_ci
338c2ecf20Sopenharmony_ci		clocks = <&gpio_clk>;
348c2ecf20Sopenharmony_ci
358c2ecf20Sopenharmony_ci		interrupt-parent = <&gic>;
368c2ecf20Sopenharmony_ci		interrupts = <0 5 IRQ_TYPE_LEVEL_HIGH>;
378c2ecf20Sopenharmony_ci
388c2ecf20Sopenharmony_ci		gpio-controller;
398c2ecf20Sopenharmony_ci		#gpio-cells = <2>;
408c2ecf20Sopenharmony_ci
418c2ecf20Sopenharmony_ci		interrupt-controller;
428c2ecf20Sopenharmony_ci		#interrupt-cells = <2>;
438c2ecf20Sopenharmony_ci	};
44