^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) Spreadtrum GPIO controller bindings
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) The controller's registers are organized as sets of sixteen 16-bit
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) registers with each set controlling a bank of up to 16 pins. A single
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) interrupt is shared for all of the banks handled by the controller.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) Required properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) - compatible: Should be "sprd,sc9860-gpio".
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) - reg: Define the base and range of the I/O address space containing
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) the GPIO controller registers.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) - gpio-controller: Marks the device node as a GPIO controller.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) - #gpio-cells: Should be <2>. The first cell is the gpio number and
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) the second cell is used to specify optional parameters.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) - interrupt-controller: Marks the device node as an interrupt controller.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) - #interrupt-cells: Should be <2>. Specifies the number of cells needed
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) to encode interrupt source.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) - interrupts: Should be the port interrupt shared by all the gpios.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) Example:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) ap_gpio: gpio@40280000 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) compatible = "sprd,sc9860-gpio";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) reg = <0 0x40280000 0 0x1000>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) gpio-controller;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) #gpio-cells = <2>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) interrupt-controller;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) #interrupt-cells = <2>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) };