0001 * Oxford Semiconductor OXNAS SoC GPIO Controller
0002
0003 Please refer to gpio.txt for generic information regarding GPIO bindings.
0004
0005 Required properties:
0006 - compatible: "oxsemi,ox810se-gpio" or "oxsemi,ox820-gpio"
0007 - reg: Base address and length for the device.
0008 - interrupts: The port interrupt shared by all pins.
0009 - gpio-controller: Marks the port as GPIO controller.
0010 - #gpio-cells: Two. The first cell is the pin number and
0011 the second cell is used to specify the gpio polarity as defined in
0012 defined in <dt-bindings/gpio/gpio.h>:
0013 0 = GPIO_ACTIVE_HIGH
0014 1 = GPIO_ACTIVE_LOW
0015 - interrupt-controller: Marks the device node as an interrupt controller.
0016 - #interrupt-cells: Two. The first cell is the GPIO number and second cell
0017 is used to specify the trigger type as defined in
0018 <dt-bindings/interrupt-controller/irq.h>:
0019 IRQ_TYPE_EDGE_RISING
0020 IRQ_TYPE_EDGE_FALLING
0021 IRQ_TYPE_EDGE_BOTH
0022 - gpio-ranges: Interaction with the PINCTRL subsystem, it also specifies the
0023 gpio base and count, should be in the format of numeric-gpio-range as
0024 specified in the gpio.txt file.
0025
0026 Example:
0027
0028 gpio0: gpio@0 {
0029 compatible = "oxsemi,ox810se-gpio";
0030 reg = <0x000000 0x100000>;
0031 interrupts = <21>;
0032 #gpio-cells = <2>;
0033 gpio-controller;
0034 interrupt-controller;
0035 #interrupt-cells = <2>;
0036 gpio-ranges = <&pinctrl 0 0 32>;
0037 };
0038
0039 keys {
0040 ...
0041
0042 button-esc {
0043 label = "ESC";
0044 linux,code = <1>;
0045 gpios = <&gpio0 12 0>;
0046 };
0047 };