lkml.org 
[lkml]   [2021]   [Dec]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH v2 1/5] dt-bindings: interrupt-controller: Update STM32 EXTI interrupt controller
Date
Document new entry "st,exti-mapping" which links EXTI lines with GIC
interrupt lines and add an include file to define EXTI interrupt type.

Signed-off-by: Alexandre Torgue <alexandre.torgue@foss.st.com>

diff --git a/Documentation/devicetree/bindings/interrupt-controller/st,stm32-exti.yaml b/Documentation/devicetree/bindings/interrupt-controller/st,stm32-exti.yaml
index d19c881b4abc..e08bb51e97a8 100644
--- a/Documentation/devicetree/bindings/interrupt-controller/st,stm32-exti.yaml
+++ b/Documentation/devicetree/bindings/interrupt-controller/st,stm32-exti.yaml
@@ -41,6 +41,17 @@ properties:
description:
Interrupts references to primary interrupt controller

+ st,exti-mapping:
+ $ref: "/schemas/types.yaml#/definitions/uint32-matrix"
+ description: |
+ Define mapping between EXTI lines and GIC irq lines. Should be:
+ st,exti-mapping = <EXTI_LINE GIC_IRQ EXTI_TYPE>, ...;
+ With:
+ - EXTI_LINE: EXTI line number.
+ - GIC_IRQ: GIC IRQ associated to the EXTI line.
+ - EXTI_TYPE: STM32_EXTI_TYPE_CONFIGURABLE or STM32_EXTI_TYPE_DIRECT.
+ Defined in include/dt-bindings/interrupt-controller/stm32-exti.h
+
required:
- "#interrupt-cells"
- compatible
diff --git a/include/dt-bindings/interrupt-controller/stm32-exti.h b/include/dt-bindings/interrupt-controller/stm32-exti.h
new file mode 100644
index 000000000000..02b7e0e30cf7
--- /dev/null
+++ b/include/dt-bindings/interrupt-controller/stm32-exti.h
@@ -0,0 +1,10 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#ifndef _DT_BINDINGS_INTERRUPT_CONTROLLER_STM32_EXTI_H
+#define _DT_BINDINGS_INTERRUPT_CONTROLLER_STM32_EXTI_H
+
+#define STM32_EXTI_TYPE_CONFIGURABLE 0
+#define STM32_EXTI_TYPE_DIRECT 1
+
+#define STM32_EXTI_MAPPING_CELL_NB 3
+
+#endif
--
2.17.1
\
 
 \ /
  Last update: 2021-12-15 12:00    [W:0.069 / U:4.368 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site