* [PATCH 0/3] Add STM32 LP timer EXTI interrupts
@ 2020-10-16 14:40 Fabrice Gasnier
2020-10-16 14:40 ` [PATCH 1/3] irqchip/stm32-exti: Add all LP timer exti direct events support Fabrice Gasnier
` (4 more replies)
0 siblings, 5 replies; 7+ messages in thread
From: Fabrice Gasnier @ 2020-10-16 14:40 UTC (permalink / raw)
To: tglx, jason, maz, alexandre.torgue
Cc: robh+dt, fabrice.gasnier, devicetree, linux-stm32,
linux-arm-kernel, linux-kernel
STM32 LP timer that's available on STM32MP15x can wakeup the platform
using EXTI interrupts.
This series add:
- LP timer EXTI - GIC interrupt events to EXTI driver and device-tree
- LP timer wakeup-source to device-tree
Fabrice Gasnier (3):
irqchip/stm32-exti: Add all LP timer exti direct events support
ARM: dts: stm32: Add LP timer irqs on stm32mp151
ARM: dts: stm32: Add LP timer wakeup-source on stm32mp151
arch/arm/boot/dts/stm32mp151.dtsi | 10 ++++++++++
drivers/irqchip/irq-stm32-exti.c | 4 ++++
2 files changed, 14 insertions(+)
--
2.7.4
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 1/3] irqchip/stm32-exti: Add all LP timer exti direct events support
2020-10-16 14:40 [PATCH 0/3] Add STM32 LP timer EXTI interrupts Fabrice Gasnier
@ 2020-10-16 14:40 ` Fabrice Gasnier
2020-11-01 17:00 ` [tip: irq/urgent] " tip-bot2 for Fabrice Gasnier
2020-10-16 14:40 ` [PATCH 2/3] ARM: dts: stm32: Add LP timer irqs on stm32mp151 Fabrice Gasnier
` (3 subsequent siblings)
4 siblings, 1 reply; 7+ messages in thread
From: Fabrice Gasnier @ 2020-10-16 14:40 UTC (permalink / raw)
To: tglx, jason, maz, alexandre.torgue
Cc: robh+dt, fabrice.gasnier, devicetree, linux-stm32,
linux-arm-kernel, linux-kernel
Add all remaining LP timer exti direct events, e.g. for LP Timer 2 to 5.
LP timer 1 is already listed (e.g. exti 47).
Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com>
---
drivers/irqchip/irq-stm32-exti.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/irqchip/irq-stm32-exti.c b/drivers/irqchip/irq-stm32-exti.c
index 0c2c61d..8662d7b 100644
--- a/drivers/irqchip/irq-stm32-exti.c
+++ b/drivers/irqchip/irq-stm32-exti.c
@@ -195,6 +195,10 @@ static const struct stm32_desc_irq stm32mp1_desc_irq[] = {
{ .exti = 25, .irq_parent = 107, .chip = &stm32_exti_h_chip_direct },
{ .exti = 30, .irq_parent = 52, .chip = &stm32_exti_h_chip_direct },
{ .exti = 47, .irq_parent = 93, .chip = &stm32_exti_h_chip_direct },
+ { .exti = 48, .irq_parent = 138, .chip = &stm32_exti_h_chip_direct },
+ { .exti = 50, .irq_parent = 139, .chip = &stm32_exti_h_chip_direct },
+ { .exti = 52, .irq_parent = 140, .chip = &stm32_exti_h_chip_direct },
+ { .exti = 53, .irq_parent = 141, .chip = &stm32_exti_h_chip_direct },
{ .exti = 54, .irq_parent = 135, .chip = &stm32_exti_h_chip_direct },
{ .exti = 61, .irq_parent = 100, .chip = &stm32_exti_h_chip_direct },
{ .exti = 65, .irq_parent = 144, .chip = &stm32_exti_h_chip },
--
2.7.4
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 2/3] ARM: dts: stm32: Add LP timer irqs on stm32mp151
2020-10-16 14:40 [PATCH 0/3] Add STM32 LP timer EXTI interrupts Fabrice Gasnier
2020-10-16 14:40 ` [PATCH 1/3] irqchip/stm32-exti: Add all LP timer exti direct events support Fabrice Gasnier
@ 2020-10-16 14:40 ` Fabrice Gasnier
2020-10-16 14:40 ` [PATCH 3/3] ARM: dts: stm32: Add LP timer wakeup-source " Fabrice Gasnier
` (2 subsequent siblings)
4 siblings, 0 replies; 7+ messages in thread
From: Fabrice Gasnier @ 2020-10-16 14:40 UTC (permalink / raw)
To: tglx, jason, maz, alexandre.torgue
Cc: robh+dt, fabrice.gasnier, devicetree, linux-stm32,
linux-arm-kernel, linux-kernel
Add all LP timer irqs on stm32mp151.
Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com>
---
arch/arm/boot/dts/stm32mp151.dtsi | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/arch/arm/boot/dts/stm32mp151.dtsi b/arch/arm/boot/dts/stm32mp151.dtsi
index bfe2902..10d5e2b 100644
--- a/arch/arm/boot/dts/stm32mp151.dtsi
+++ b/arch/arm/boot/dts/stm32mp151.dtsi
@@ -355,6 +355,7 @@
#size-cells = <0>;
compatible = "st,stm32-lptimer";
reg = <0x40009000 0x400>;
+ interrupts-extended = <&exti 47 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&rcc LPTIM1_K>;
clock-names = "mux";
status = "disabled";
@@ -1149,6 +1150,7 @@
#size-cells = <0>;
compatible = "st,stm32-lptimer";
reg = <0x50021000 0x400>;
+ interrupts-extended = <&exti 48 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&rcc LPTIM2_K>;
clock-names = "mux";
status = "disabled";
@@ -1176,6 +1178,7 @@
#size-cells = <0>;
compatible = "st,stm32-lptimer";
reg = <0x50022000 0x400>;
+ interrupts-extended = <&exti 50 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&rcc LPTIM3_K>;
clock-names = "mux";
status = "disabled";
@@ -1196,6 +1199,7 @@
lptimer4: timer@50023000 {
compatible = "st,stm32-lptimer";
reg = <0x50023000 0x400>;
+ interrupts-extended = <&exti 52 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&rcc LPTIM4_K>;
clock-names = "mux";
status = "disabled";
@@ -1210,6 +1214,7 @@
lptimer5: timer@50024000 {
compatible = "st,stm32-lptimer";
reg = <0x50024000 0x400>;
+ interrupts-extended = <&exti 53 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&rcc LPTIM5_K>;
clock-names = "mux";
status = "disabled";
--
2.7.4
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 3/3] ARM: dts: stm32: Add LP timer wakeup-source on stm32mp151
2020-10-16 14:40 [PATCH 0/3] Add STM32 LP timer EXTI interrupts Fabrice Gasnier
2020-10-16 14:40 ` [PATCH 1/3] irqchip/stm32-exti: Add all LP timer exti direct events support Fabrice Gasnier
2020-10-16 14:40 ` [PATCH 2/3] ARM: dts: stm32: Add LP timer irqs on stm32mp151 Fabrice Gasnier
@ 2020-10-16 14:40 ` Fabrice Gasnier
2020-10-25 12:06 ` [PATCH 0/3] Add STM32 LP timer EXTI interrupts Marc Zyngier
2020-11-09 10:54 ` Alexandre Torgue
4 siblings, 0 replies; 7+ messages in thread
From: Fabrice Gasnier @ 2020-10-16 14:40 UTC (permalink / raw)
To: tglx, jason, maz, alexandre.torgue
Cc: robh+dt, fabrice.gasnier, devicetree, linux-stm32,
linux-arm-kernel, linux-kernel
LP timer can be used to wakeup from stop mode on stm32mp151.
Add wakeup-source properties to all LP timer instances.
Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com>
---
arch/arm/boot/dts/stm32mp151.dtsi | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/arch/arm/boot/dts/stm32mp151.dtsi b/arch/arm/boot/dts/stm32mp151.dtsi
index 10d5e2b..0bf5fc2 100644
--- a/arch/arm/boot/dts/stm32mp151.dtsi
+++ b/arch/arm/boot/dts/stm32mp151.dtsi
@@ -358,6 +358,7 @@
interrupts-extended = <&exti 47 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&rcc LPTIM1_K>;
clock-names = "mux";
+ wakeup-source;
status = "disabled";
pwm {
@@ -1153,6 +1154,7 @@
interrupts-extended = <&exti 48 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&rcc LPTIM2_K>;
clock-names = "mux";
+ wakeup-source;
status = "disabled";
pwm {
@@ -1181,6 +1183,7 @@
interrupts-extended = <&exti 50 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&rcc LPTIM3_K>;
clock-names = "mux";
+ wakeup-source;
status = "disabled";
pwm {
@@ -1202,6 +1205,7 @@
interrupts-extended = <&exti 52 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&rcc LPTIM4_K>;
clock-names = "mux";
+ wakeup-source;
status = "disabled";
pwm {
@@ -1217,6 +1221,7 @@
interrupts-extended = <&exti 53 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&rcc LPTIM5_K>;
clock-names = "mux";
+ wakeup-source;
status = "disabled";
pwm {
--
2.7.4
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 0/3] Add STM32 LP timer EXTI interrupts
2020-10-16 14:40 [PATCH 0/3] Add STM32 LP timer EXTI interrupts Fabrice Gasnier
` (2 preceding siblings ...)
2020-10-16 14:40 ` [PATCH 3/3] ARM: dts: stm32: Add LP timer wakeup-source " Fabrice Gasnier
@ 2020-10-25 12:06 ` Marc Zyngier
2020-11-09 10:54 ` Alexandre Torgue
4 siblings, 0 replies; 7+ messages in thread
From: Marc Zyngier @ 2020-10-25 12:06 UTC (permalink / raw)
To: tglx, alexandre.torgue, Fabrice Gasnier, jason
Cc: devicetree, linux-kernel, linux-arm-kernel, robh+dt, linux-stm32
On Fri, 16 Oct 2020 16:40:16 +0200, Fabrice Gasnier wrote:
> STM32 LP timer that's available on STM32MP15x can wakeup the platform
> using EXTI interrupts.
>
> This series add:
> - LP timer EXTI - GIC interrupt events to EXTI driver and device-tree
> - LP timer wakeup-source to device-tree
>
> [...]
Applied to irq/irqchip-next, thanks!
[1/3] irqchip/stm32-exti: Add all LP timer exti direct events support
commit: a00e85b581fd5ee47e770b6b8d2038dbebbe81f9
Please route the last two patches via arm-soc.
Cheers,
M.
--
Without deviation from the norm, progress is not possible.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [tip: irq/urgent] irqchip/stm32-exti: Add all LP timer exti direct events support
2020-10-16 14:40 ` [PATCH 1/3] irqchip/stm32-exti: Add all LP timer exti direct events support Fabrice Gasnier
@ 2020-11-01 17:00 ` tip-bot2 for Fabrice Gasnier
0 siblings, 0 replies; 7+ messages in thread
From: tip-bot2 for Fabrice Gasnier @ 2020-11-01 17:00 UTC (permalink / raw)
To: linux-tip-commits; +Cc: Fabrice Gasnier, Marc Zyngier, x86, LKML
The following commit has been merged into the irq/urgent branch of tip:
Commit-ID: a00e85b581fd5ee47e770b6b8d2038dbebbe81f9
Gitweb: https://git.kernel.org/tip/a00e85b581fd5ee47e770b6b8d2038dbebbe81f9
Author: Fabrice Gasnier <fabrice.gasnier@st.com>
AuthorDate: Fri, 16 Oct 2020 16:40:17 +02:00
Committer: Marc Zyngier <maz@kernel.org>
CommitterDate: Sun, 25 Oct 2020 12:04:13
irqchip/stm32-exti: Add all LP timer exti direct events support
Add all remaining LP timer exti direct events, e.g. for LP Timer 2 to 5.
LP timer 1 is already listed (e.g. exti 47).
Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/1602859219-15684-2-git-send-email-fabrice.gasnier@st.com
---
drivers/irqchip/irq-stm32-exti.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/irqchip/irq-stm32-exti.c b/drivers/irqchip/irq-stm32-exti.c
index 0c2c61d..8662d7b 100644
--- a/drivers/irqchip/irq-stm32-exti.c
+++ b/drivers/irqchip/irq-stm32-exti.c
@@ -195,6 +195,10 @@ static const struct stm32_desc_irq stm32mp1_desc_irq[] = {
{ .exti = 25, .irq_parent = 107, .chip = &stm32_exti_h_chip_direct },
{ .exti = 30, .irq_parent = 52, .chip = &stm32_exti_h_chip_direct },
{ .exti = 47, .irq_parent = 93, .chip = &stm32_exti_h_chip_direct },
+ { .exti = 48, .irq_parent = 138, .chip = &stm32_exti_h_chip_direct },
+ { .exti = 50, .irq_parent = 139, .chip = &stm32_exti_h_chip_direct },
+ { .exti = 52, .irq_parent = 140, .chip = &stm32_exti_h_chip_direct },
+ { .exti = 53, .irq_parent = 141, .chip = &stm32_exti_h_chip_direct },
{ .exti = 54, .irq_parent = 135, .chip = &stm32_exti_h_chip_direct },
{ .exti = 61, .irq_parent = 100, .chip = &stm32_exti_h_chip_direct },
{ .exti = 65, .irq_parent = 144, .chip = &stm32_exti_h_chip },
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 0/3] Add STM32 LP timer EXTI interrupts
2020-10-16 14:40 [PATCH 0/3] Add STM32 LP timer EXTI interrupts Fabrice Gasnier
` (3 preceding siblings ...)
2020-10-25 12:06 ` [PATCH 0/3] Add STM32 LP timer EXTI interrupts Marc Zyngier
@ 2020-11-09 10:54 ` Alexandre Torgue
4 siblings, 0 replies; 7+ messages in thread
From: Alexandre Torgue @ 2020-11-09 10:54 UTC (permalink / raw)
To: Fabrice Gasnier, tglx, jason, maz
Cc: robh+dt, devicetree, linux-stm32, linux-arm-kernel, linux-kernel
Hi Fabrice
On 10/16/20 4:40 PM, Fabrice Gasnier wrote:
> STM32 LP timer that's available on STM32MP15x can wakeup the platform
> using EXTI interrupts.
>
> This series add:
> - LP timer EXTI - GIC interrupt events to EXTI driver and device-tree
> - LP timer wakeup-source to device-tree
>
> Fabrice Gasnier (3):
> irqchip/stm32-exti: Add all LP timer exti direct events support
> ARM: dts: stm32: Add LP timer irqs on stm32mp151
> ARM: dts: stm32: Add LP timer wakeup-source on stm32mp151
>
> arch/arm/boot/dts/stm32mp151.dtsi | 10 ++++++++++
> drivers/irqchip/irq-stm32-exti.c | 4 ++++
> 2 files changed, 14 insertions(+)
>
DT patches applied on stm32-next.
thanks
alex
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2020-11-09 10:55 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-16 14:40 [PATCH 0/3] Add STM32 LP timer EXTI interrupts Fabrice Gasnier
2020-10-16 14:40 ` [PATCH 1/3] irqchip/stm32-exti: Add all LP timer exti direct events support Fabrice Gasnier
2020-11-01 17:00 ` [tip: irq/urgent] " tip-bot2 for Fabrice Gasnier
2020-10-16 14:40 ` [PATCH 2/3] ARM: dts: stm32: Add LP timer irqs on stm32mp151 Fabrice Gasnier
2020-10-16 14:40 ` [PATCH 3/3] ARM: dts: stm32: Add LP timer wakeup-source " Fabrice Gasnier
2020-10-25 12:06 ` [PATCH 0/3] Add STM32 LP timer EXTI interrupts Marc Zyngier
2020-11-09 10:54 ` Alexandre Torgue
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).