0001 Cadence GPIO controller bindings
0002
0003 Required properties:
0004 - compatible: should be "cdns,gpio-r1p02".
0005 - reg: the register base address and size.
0006 - #gpio-cells: should be 2.
0007 * first cell is the GPIO number.
0008 * second cell specifies the GPIO flags, as defined in
0009 <dt-bindings/gpio/gpio.h>. Only the GPIO_ACTIVE_HIGH
0010 and GPIO_ACTIVE_LOW flags are supported.
0011 - gpio-controller: marks the device as a GPIO controller.
0012 - clocks: should contain one entry referencing the peripheral clock driving
0013 the GPIO controller.
0014
0015 Optional properties:
0016 - ngpios: integer number of gpio lines supported by this controller, up to 32.
0017 - interrupts: interrupt specifier for the controllers interrupt.
0018 - interrupt-controller: marks the device as an interrupt controller. When
0019 defined, interrupts, interrupt-parent and #interrupt-cells
0020 are required.
0021 - interrupt-cells: should be 2.
0022 * first cell is the GPIO number you want to use as an IRQ source.
0023 * second cell specifies the IRQ type, as defined in
0024 <dt-bindings/interrupt-controller/irq.h>.
0025 Currently only level sensitive IRQs are supported.
0026
0027
0028 Example:
0029 gpio0: gpio-controller@fd060000 {
0030 compatible = "cdns,gpio-r1p02";
0031 reg =<0xfd060000 0x1000>;
0032
0033 clocks = <&gpio_clk>;
0034
0035 interrupt-parent = <&gic>;
0036 interrupts = <0 5 IRQ_TYPE_LEVEL_HIGH>;
0037
0038 gpio-controller;
0039 #gpio-cells = <2>;
0040
0041 interrupt-controller;
0042 #interrupt-cells = <2>;
0043 };