* [PATCH] ARM: dts: stm32: Add lptimer definitions to stm32h743
@ 2017-09-18 13:16 Fabrice Gasnier
[not found] ` <1505740615-24920-1-git-send-email-fabrice.gasnier-qxv4g6HH51o@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Gasnier @ 2017-09-18 13:16 UTC (permalink / raw)
To: alexandre.torgue-qxv4g6HH51o, robh+dt-DgEjT+Ai2ygdnm+yROfE0A
Cc: mcoquelin.stm32-Re5JQEeQqe8AvxtiuMwx3w,
linux-I+IVW8TIWO2tmTQ+vhA3Yw, mark.rutland-5wv7dgnIgG8,
devicetree-u79uwXL29TY76Z2rM5mHXA,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
linux-kernel-u79uwXL29TY76Z2rM5mHXA, fabrice.gasnier-qxv4g6HH51o
Add lptimer definitions, depending on features they provide:
- lptimer1 & 2 can act as PWM, trigger and encoder/counter
- lptimer3 can act as PWM and trigger
- lptimer4 & 5 can act as PWM
Signed-off-by: Fabrice Gasnier <fabrice.gasnier-qxv4g6HH51o@public.gmane.org>
---
arch/arm/boot/dts/stm32h743.dtsi | 103 +++++++++++++++++++++++++++++++++++++++
1 file changed, 103 insertions(+)
diff --git a/arch/arm/boot/dts/stm32h743.dtsi b/arch/arm/boot/dts/stm32h743.dtsi
index 58ec227..de54123 100644
--- a/arch/arm/boot/dts/stm32h743.dtsi
+++ b/arch/arm/boot/dts/stm32h743.dtsi
@@ -66,6 +66,32 @@
clocks = <&timer_clk>;
};
+ lptimer1: timer@0x40002400 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ compatible = "st,stm32-lptimer";
+ reg = <0x40002400 0x400>;
+ clocks = <&timer_clk>;
+ clock-names = "mux";
+ status = "disabled";
+
+ pwm {
+ compatible = "st,stm32-pwm-lp";
+ status = "disabled";
+ };
+
+ trigger@0 {
+ compatible = "st,stm32-lptimer-trigger";
+ reg = <0>;
+ status = "disabled";
+ };
+
+ counter {
+ compatible = "st,stm32-lptimer-counter";
+ status = "disabled";
+ };
+ };
+
usart2: serial@40004400 {
compatible = "st,stm32f7-usart", "st,stm32f7-uart";
reg = <0x40004400 0x400>;
@@ -172,6 +198,83 @@
};
};
+ lptimer2: timer@0x58002400 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ compatible = "st,stm32-lptimer";
+ reg = <0x58002400 0x400>;
+ clocks = <&timer_clk>;
+ clock-names = "mux";
+ status = "disabled";
+
+ pwm {
+ compatible = "st,stm32-pwm-lp";
+ status = "disabled";
+ };
+
+ trigger@1 {
+ compatible = "st,stm32-lptimer-trigger";
+ reg = <1>;
+ status = "disabled";
+ };
+
+ counter {
+ compatible = "st,stm32-lptimer-counter";
+ status = "disabled";
+ };
+ };
+
+ lptimer3: timer@0x58002800 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ compatible = "st,stm32-lptimer";
+ reg = <0x58002800 0x400>;
+ clocks = <&timer_clk>;
+ clock-names = "mux";
+ status = "disabled";
+
+ pwm {
+ compatible = "st,stm32-pwm-lp";
+ status = "disabled";
+ };
+
+ trigger@2 {
+ compatible = "st,stm32-lptimer-trigger";
+ reg = <2>;
+ status = "disabled";
+ };
+ };
+
+ lptimer4: timer@0x58002c00 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ compatible = "st,stm32-lptimer";
+ reg = <0x58002c00 0x400>;
+ clocks = <&timer_clk>;
+ clock-names = "mux";
+ status = "disabled";
+
+ pwm {
+ compatible = "st,stm32-pwm-lp";
+ status = "disabled";
+ };
+ };
+
+ lptimer5: timer@0x58003000 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ compatible = "st,stm32-lptimer";
+ reg = <0x58003000 0x400>;
+ clocks = <&timer_clk>;
+ clock-names = "mux";
+ status = "disabled";
+
+ pwm {
+ compatible = "st,stm32-pwm-lp";
+ status = "disabled";
+ };
+ };
+
adc_3: adc@58026000 {
compatible = "st,stm32h7-adc-core";
reg = <0x58026000 0x400>;
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 2+ messages in thread[parent not found: <1505740615-24920-1-git-send-email-fabrice.gasnier-qxv4g6HH51o@public.gmane.org>]
* Re: [PATCH] ARM: dts: stm32: Add lptimer definitions to stm32h743 [not found] ` <1505740615-24920-1-git-send-email-fabrice.gasnier-qxv4g6HH51o@public.gmane.org> @ 2017-10-06 13:03 ` Alexandre Torgue 0 siblings, 0 replies; 2+ messages in thread From: Alexandre Torgue @ 2017-10-06 13:03 UTC (permalink / raw) To: Fabrice Gasnier, robh+dt-DgEjT+Ai2ygdnm+yROfE0A Cc: mcoquelin.stm32-Re5JQEeQqe8AvxtiuMwx3w, linux-I+IVW8TIWO2tmTQ+vhA3Yw, mark.rutland-5wv7dgnIgG8, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-kernel-u79uwXL29TY76Z2rM5mHXA Hi, On 09/18/2017 03:16 PM, Fabrice Gasnier wrote: > Add lptimer definitions, depending on features they provide: > - lptimer1 & 2 can act as PWM, trigger and encoder/counter > - lptimer3 can act as PWM and trigger > - lptimer4 & 5 can act as PWM > > Signed-off-by: Fabrice Gasnier <fabrice.gasnier-qxv4g6HH51o@public.gmane.org> > --- Applied on stm32-dt-for-v4.15 branch. Thanks Alex > arch/arm/boot/dts/stm32h743.dtsi | 103 +++++++++++++++++++++++++++++++++++++++ > 1 file changed, 103 insertions(+) > > diff --git a/arch/arm/boot/dts/stm32h743.dtsi b/arch/arm/boot/dts/stm32h743.dtsi > index 58ec227..de54123 100644 > --- a/arch/arm/boot/dts/stm32h743.dtsi > +++ b/arch/arm/boot/dts/stm32h743.dtsi > @@ -66,6 +66,32 @@ > clocks = <&timer_clk>; > }; > > + lptimer1: timer@0x40002400 { > + #address-cells = <1>; > + #size-cells = <0>; > + compatible = "st,stm32-lptimer"; > + reg = <0x40002400 0x400>; > + clocks = <&timer_clk>; > + clock-names = "mux"; > + status = "disabled"; > + > + pwm { > + compatible = "st,stm32-pwm-lp"; > + status = "disabled"; > + }; > + > + trigger@0 { > + compatible = "st,stm32-lptimer-trigger"; > + reg = <0>; > + status = "disabled"; > + }; > + > + counter { > + compatible = "st,stm32-lptimer-counter"; > + status = "disabled"; > + }; > + }; > + > usart2: serial@40004400 { > compatible = "st,stm32f7-usart", "st,stm32f7-uart"; > reg = <0x40004400 0x400>; > @@ -172,6 +198,83 @@ > }; > }; > > + lptimer2: timer@0x58002400 { > + #address-cells = <1>; > + #size-cells = <0>; > + compatible = "st,stm32-lptimer"; > + reg = <0x58002400 0x400>; > + clocks = <&timer_clk>; > + clock-names = "mux"; > + status = "disabled"; > + > + pwm { > + compatible = "st,stm32-pwm-lp"; > + status = "disabled"; > + }; > + > + trigger@1 { > + compatible = "st,stm32-lptimer-trigger"; > + reg = <1>; > + status = "disabled"; > + }; > + > + counter { > + compatible = "st,stm32-lptimer-counter"; > + status = "disabled"; > + }; > + }; > + > + lptimer3: timer@0x58002800 { > + #address-cells = <1>; > + #size-cells = <0>; > + compatible = "st,stm32-lptimer"; > + reg = <0x58002800 0x400>; > + clocks = <&timer_clk>; > + clock-names = "mux"; > + status = "disabled"; > + > + pwm { > + compatible = "st,stm32-pwm-lp"; > + status = "disabled"; > + }; > + > + trigger@2 { > + compatible = "st,stm32-lptimer-trigger"; > + reg = <2>; > + status = "disabled"; > + }; > + }; > + > + lptimer4: timer@0x58002c00 { > + #address-cells = <1>; > + #size-cells = <0>; > + compatible = "st,stm32-lptimer"; > + reg = <0x58002c00 0x400>; > + clocks = <&timer_clk>; > + clock-names = "mux"; > + status = "disabled"; > + > + pwm { > + compatible = "st,stm32-pwm-lp"; > + status = "disabled"; > + }; > + }; > + > + lptimer5: timer@0x58003000 { > + #address-cells = <1>; > + #size-cells = <0>; > + compatible = "st,stm32-lptimer"; > + reg = <0x58003000 0x400>; > + clocks = <&timer_clk>; > + clock-names = "mux"; > + status = "disabled"; > + > + pwm { > + compatible = "st,stm32-pwm-lp"; > + status = "disabled"; > + }; > + }; > + > adc_3: adc@58026000 { > compatible = "st,stm32h7-adc-core"; > reg = <0x58026000 0x400>; > -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-10-06 13:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-18 13:16 [PATCH] ARM: dts: stm32: Add lptimer definitions to stm32h743 Fabrice Gasnier
[not found] ` <1505740615-24920-1-git-send-email-fabrice.gasnier-qxv4g6HH51o@public.gmane.org>
2017-10-06 13:03 ` 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).