Thread (35 messages) 35 messages, 5 authors, 2016-12-06

[PATCH v3 7/7] ARM: dts: stm32: add stm32 general purpose timer driver in DT

From: Lee Jones <hidden>
Date: 2016-12-06 09:45:28
Also in: linux-devicetree, linux-iio, linux-pwm, lkml

On Mon, 05 Dec 2016, Alexandre Torgue wrote:
On 12/02/2016 02:22 PM, Lee Jones wrote:
quoted
On Fri, 02 Dec 2016, Benjamin Gaignard wrote:
quoted
Add general purpose timers and it sub-nodes into DT for stm32f4.
Define and enable pwm1 and pwm3 for stm32f469 discovery board

version 3:
- use "st,stm32-timer-trigger" in DT

version 2:
- use parameters to describe hardware capabilities
- do not use references for pwm and iio timer subnodes

Signed-off-by: Benjamin Gaignard <redacted>
---
 arch/arm/boot/dts/stm32f429.dtsi      | 333 +++++++++++++++++++++++++++++++++-
 arch/arm/boot/dts/stm32f469-disco.dts |  28 +++
 2 files changed, 360 insertions(+), 1 deletion(-)
[...]

If you're only commenting on a little piece of the patch, it's always
a good idea to trim the rest.
quoted
quoted
diff --git a/arch/arm/boot/dts/stm32f469-disco.dts b/arch/arm/boot/dts/stm32f469-disco.dts
index 8a163d7..df4ca7e 100644
--- a/arch/arm/boot/dts/stm32f469-disco.dts
+++ b/arch/arm/boot/dts/stm32f469-disco.dts
@@ -81,3 +81,31 @@
 &usart3 {
 	status = "okay";
 };
+
+&gptimer1 {
+	status = "okay";
+
+	pwm1 at 0 {
+		pinctrl-0	= <&pwm1_pins>;
+		pinctrl-names	= "default";
+		status = "okay";
+	};
+
+	timer1 at 0 {
+		status = "okay";
+	};
+};
This is a much *better* format than before.

I still don't like the '&' syntax though.
Please keep "&" format to match with existing nodes.
Right.  I wasn't suggesting that he differs from the current format in
*this* set.  I am suggesting that we change the format in a subsequent
set though.
quoted
quoted
+&gptimer3 {
+	status = "okay";
+
+	pwm3 at 0 {
+		pinctrl-0	= <&pwm3_pins>;
+		pinctrl-names	= "default";
+		status = "okay";
+	};
+
+	timer3 at 0 {
+		status = "okay";
+	};
+};
-- 
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org ? Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help