bmips: document GPIO external interrupts
authorÁlvaro Fernández Rojas <noltari@gmail.com>
Thu, 27 Apr 2023 11:47:24 +0000 (13:47 +0200)
committerÁlvaro Fernández Rojas <noltari@gmail.com>
Thu, 27 Apr 2023 13:39:09 +0000 (15:39 +0200)
BCM63xx SoCs have an external interrupt controller which can be used for
specific GPIO keys.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
12 files changed:
target/linux/bmips/dts/bcm6318.dtsi
target/linux/bmips/dts/bcm63268.dtsi
target/linux/bmips/dts/bcm6328.dtsi
target/linux/bmips/dts/bcm6358.dtsi
target/linux/bmips/dts/bcm6362.dtsi
target/linux/bmips/dts/bcm6368.dtsi
target/linux/bmips/files/include/dt-bindings/interrupt-controller/bcm6318-interrupt-controller.h
target/linux/bmips/files/include/dt-bindings/interrupt-controller/bcm63268-interrupt-controller.h
target/linux/bmips/files/include/dt-bindings/interrupt-controller/bcm6328-interrupt-controller.h
target/linux/bmips/files/include/dt-bindings/interrupt-controller/bcm6358-interrupt-controller.h
target/linux/bmips/files/include/dt-bindings/interrupt-controller/bcm6362-interrupt-controller.h
target/linux/bmips/files/include/dt-bindings/interrupt-controller/bcm6368-interrupt-controller.h

index fc5085c506c7420ac7c3a047ae5e1bd416060878..28c656d090e11cdf9db20313bee25a0a935d12ed 100644 (file)
@@ -6,6 +6,7 @@
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 #include <dt-bindings/interrupt-controller/bcm6318-interrupt-controller.h>
+#include <dt-bindings/interrupt-controller/irq.h>
 #include <dt-bindings/reset/bcm6318-reset.h>
 #include <dt-bindings/soc/bcm6318-pm.h>
 
index e30cdd862f68762265a9509648e77fd8c8158d48..f9a31d36ef72191777ac9414e6fb4321222fa4cc 100644 (file)
@@ -6,6 +6,7 @@
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 #include <dt-bindings/interrupt-controller/bcm63268-interrupt-controller.h>
+#include <dt-bindings/interrupt-controller/irq.h>
 #include <dt-bindings/reset/bcm63268-reset.h>
 #include <dt-bindings/soc/bcm63268-pm.h>
 
index d61903e15480e196bac59b9a171f296d8220fad3..f45f94f5b862226386703149549780a14629c1a2 100644 (file)
@@ -6,6 +6,7 @@
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 #include <dt-bindings/interrupt-controller/bcm6328-interrupt-controller.h>
+#include <dt-bindings/interrupt-controller/irq.h>
 #include <dt-bindings/reset/bcm6328-reset.h>
 #include <dt-bindings/soc/bcm6328-pm.h>
 
index eb8ca0c10d6ca96ba1b69b2e5754801b1cb6b59e..b56ec698ba65748874c607830f3854470b83ca06 100644 (file)
@@ -6,6 +6,7 @@
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 #include <dt-bindings/interrupt-controller/bcm6358-interrupt-controller.h>
+#include <dt-bindings/interrupt-controller/irq.h>
 #include <dt-bindings/reset/bcm6358-reset.h>
 
 / {
index d7fff43c441f6cdd448361781a733c1cf0759655..e615eaf8b3b230037df3e920a4b7f424502c4f44 100644 (file)
@@ -6,6 +6,7 @@
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 #include <dt-bindings/interrupt-controller/bcm6362-interrupt-controller.h>
+#include <dt-bindings/interrupt-controller/irq.h>
 #include <dt-bindings/reset/bcm6362-reset.h>
 #include <dt-bindings/soc/bcm6362-pm.h>
 
index baa1c434173b5e27ed478f416f67af4a3d928063..0ac1269166bda08b285c9a6415588bb6861b2dc2 100644 (file)
@@ -6,6 +6,7 @@
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 #include <dt-bindings/interrupt-controller/bcm6368-interrupt-controller.h>
+#include <dt-bindings/interrupt-controller/irq.h>
 #include <dt-bindings/reset/bcm6368-reset.h>
 
 / {
index 34bf929edafa837bdc8162be714259076e42cd84..91d70377cc650d82a70497fd9fd3f81dc68019da 100644 (file)
@@ -81,4 +81,9 @@
 #define BCM6318_IRQ_EPHY2_IDDQ_ENERGY  78
 #define BCM6318_IRQ_EPHY3_IDDQ_ENERGY  79
 
+#define BCM6318_EXTIRQ_0               0 /* GPIO 33 */
+#define BCM6318_EXTIRQ_1               1
+#define BCM6318_EXTIRQ_2               2
+#define BCM6318_EXTIRQ_3               3
+
 #endif /* __DT_BINDINGS_INTERRUPT_CONTROLLER_BCM6318_H */
index 84a5f44611d4d1f4c2fd20486b40eb46feff9c59..90b7890f505d6c33fca234f3234ea7536feb7758 100644 (file)
@@ -35,9 +35,9 @@
 #define BCM63268_IRQ_ATM_DMA3          29
 #define BCM63268_IRQ_WAKE_ON_IRQ       30
 #define BCM63268_IRQ_GPHY              31
-#define BCM63268_IRQ_DECT0              32             
+#define BCM63268_IRQ_DECT0              32
 #define BCM63268_IRQ_DECT1             33
-#define BCM63268_IRQ_UART1              34             
+#define BCM63268_IRQ_UART1              34
 #define BCM63268_IRQ_WLAN_GPIO         35
 #define BCM63268_IRQ_USB_CTL_TX_DMA    36
 #define BCM63268_IRQ_USB_BULK_TX_DMA   37
@@ -83,4 +83,9 @@
 #define BCM63268_IRQ_ATM_DMA19         79
 #define BCM63268_IRQ_LSSPI             80
 
+#define BCM63268_EXTIRQ_0              0 /* GPIO 32 */
+#define BCM63268_EXTIRQ_1              1 /* GPIO 33 */
+#define BCM63268_EXTIRQ_2              2 /* GPIO 34 */
+#define BCM63268_EXTIRQ_3              3 /* GPIO 35 */
+
 #endif /* __DT_BINDINGS_INTERRUPT_CONTROLLER_BCM63268_H */
index 1f5192d9feefb2f775970d7efa30adf5862c8dc2..2a6a1da88863944c0cd02239b32013cd983d6131 100644 (file)
@@ -65,4 +65,9 @@
 #define BCM6328_IRQ_ATM_DMA19          62
 #define BCM6328_IRQ_SAR                        63
 
+#define BCM6328_EXTIRQ_0               0 /* GPIO 23 */
+#define BCM6328_EXTIRQ_1               1 /* GPIO 24 */
+#define BCM6328_EXTIRQ_2               2 /* GPIO 15 */
+#define BCM6328_EXTIRQ_3               3 /* GPIO 12 */
+
 #endif /* __DT_BINDINGS_INTERRUPT_CONTROLLER_BCM6328_H */
index dc412d1f5960cc804779847df674e1fe22de2e8b..51c7e50cf49a98aa89720b028b7a3d0cbbe59baa 100644 (file)
 #define BCM6358_IRQ_DG                 30
 #define BCM6358_IRQ_MPI                        31
 
+#define BCM6358_EXTIRQ0_0              0 /* GPIO 34 */
+#define BCM6358_EXTIRQ0_1              1 /* GPIO 35 */
+#define BCM6358_EXTIRQ0_2              2 /* GPIO 36 */
+#define BCM6358_EXTIRQ0_3              3 /* GPIO 37 */
+#define BCM6358_EXTIRQ1_4              0 /* GPIO 32 */
+#define BCM6358_EXTIRQ1_5              1 /* GPIO 33 */
+
 #endif /* __DT_BINDINGS_INTERRUPT_CONTROLLER_BCM6358_H */
index 2cb329204a442d74fafd20595f5ce823adba5ed8..bec089b1592d0e64d625d86c97a2a74928e584c9 100644 (file)
 #define BCM6362_IRQ_ATM_DMA15          59
 #define BCM6362_IRQ_ATM_DMA16          60
 #define BCM6362_IRQ_ATM_DMA17          61
-#define BCM6362_IRQ_ATM_DMA18          62              
+#define BCM6362_IRQ_ATM_DMA18          62
 #define BCM6362_IRQ_ATM_DMA19          63
 
+#define BCM6362_EXTIRQ_0               0 /* GPIO 24 */
+#define BCM6362_EXTIRQ_1               1 /* GPIO 25 */
+#define BCM6362_EXTIRQ_2               2 /* GPIO 26 */
+#define BCM6362_EXTIRQ_3               3 /* GPIO 27 */
+
 #endif /* __DT_BINDINGS_INTERRUPT_CONTROLLER_BCM6362_H */
index 96a73d645e6179215aac836b02fa549b186c076e..0f36200749578d2f7812f4e32760abaa2f29981f 100644 (file)
 #define BCM6368_IRQ_USB_BULK_TX_DMA    29
 #define BCM6368_IRQ_USB_ISO_RX_DMA     30
 #define BCM6368_IRQ_USB_ISO_TX_DMA     31
-#define BCM6368_IRQ_ENETSW_RX_DMA0     32      
-#define BCM6368_IRQ_ENETSW_RX_DMA1     33      
-#define BCM6368_IRQ_ENETSW_RX_DMA2     34      
-#define BCM6368_IRQ_ENETSW_RX_DMA3     35      
-#define BCM6368_IRQ_ENETSW_TX_DMA0     36      
-#define BCM6368_IRQ_ENETSW_TX_DMA1     37      
-#define BCM6368_IRQ_ENETSW_TX_DMA2     38      
-#define BCM6368_IRQ_ENETSW_TX_DMA3     39      
+#define BCM6368_IRQ_ENETSW_RX_DMA0     32
+#define BCM6368_IRQ_ENETSW_RX_DMA1     33
+#define BCM6368_IRQ_ENETSW_RX_DMA2     34
+#define BCM6368_IRQ_ENETSW_RX_DMA3     35
+#define BCM6368_IRQ_ENETSW_TX_DMA0     36
+#define BCM6368_IRQ_ENETSW_TX_DMA1     37
+#define BCM6368_IRQ_ENETSW_TX_DMA2     38
+#define BCM6368_IRQ_ENETSW_TX_DMA3     39
 #define BCM6368_IRQ_ATM_DMA0           40
 #define BCM6368_IRQ_ATM_DMA1           41
 #define BCM6368_IRQ_ATM_DMA2           42
 #define BCM6368_IRQ_PCM_DMA0           62
 #define BCM6368_IRQ_PCM_DMA1           63
 
+#define BCM6368_EXTIRQ0_0              0 /* GPIO 34 */
+#define BCM6368_EXTIRQ0_1              1 /* GPIO 35 */
+#define BCM6368_EXTIRQ0_2              2 /* GPIO 36 */
+#define BCM6368_EXTIRQ0_3              3 /* GPIO 37 */
+#define BCM6368_EXTIRQ1_4              0 /* GPIO 32 */
+#define BCM6368_EXTIRQ1_5              1 /* GPIO 33 */
+
 #endif /* __DT_BINDINGS_INTERRUPT_CONTROLLER_BCM6368_H */