hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/Documentation/devicetree/bindings/gpio/gpio-altera.txt
....@@ -9,8 +9,9 @@
99 - The second cell is reserved and is currently unused.
1010 - gpio-controller : Marks the device node as a GPIO controller.
1111 - interrupt-controller: Mark the device node as an interrupt controller
12
-- #interrupt-cells : Should be 1. The interrupt type is fixed in the hardware.
12
+- #interrupt-cells : Should be 2. The interrupt type is fixed in the hardware.
1313 - The first cell is the GPIO offset number within the GPIO controller.
14
+ - The second cell is the interrupt trigger type and level flags.
1415 - interrupts: Specify the interrupt.
1516 - altr,interrupt-type: Specifies the interrupt trigger type the GPIO
1617 hardware is synthesized. This field is required if the Altera GPIO controller
....@@ -38,6 +39,6 @@
3839 altr,interrupt-type = <IRQ_TYPE_EDGE_RISING>;
3940 #gpio-cells = <2>;
4041 gpio-controller;
41
- #interrupt-cells = <1>;
42
+ #interrupt-cells = <2>;
4243 interrupt-controller;
4344 };