linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] AM654: Add ECAP PWM support
@ 2018-12-07  9:35 Vignesh R
  2018-12-07  9:35 ` [PATCH 1/2] arm64: dts: ti: k3-am65-main: Add ECAP PWM node Vignesh R
  2018-12-07  9:35 ` [PATCH 2/2] arm64: dts: ti: k3-am654-base-board: Enable ECAP PWM Vignesh R
  0 siblings, 2 replies; 3+ messages in thread
From: Vignesh R @ 2018-12-07  9:35 UTC (permalink / raw)
  To: Tero Kristo, Nishanth Menon
  Cc: Rob Herring, linux-arm-kernel, devicetree, linux-kernel, Vignesh R

Couple of patches to add ECAP PWM support for AM654 SoC. Based on top of
git://git.kernel.org/pub/scm/linux/kernel/git/kristo/linux.git 4.20-rc1-am65x-queue

Vignesh R (2):
  arm64: dts: ti: k3-am65-main: Add ECAP PWM node
  arm64: dts: ti: k3-am654-base-board: Enable ECAP PWM

 arch/arm64/boot/dts/ti/k3-am65-main.dtsi       |  9 +++++++++
 arch/arm64/boot/dts/ti/k3-am654-base-board.dts | 11 +++++++++++
 2 files changed, 20 insertions(+)

-- 
2.19.2


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 1/2] arm64: dts: ti: k3-am65-main: Add ECAP PWM node
  2018-12-07  9:35 [PATCH 0/2] AM654: Add ECAP PWM support Vignesh R
@ 2018-12-07  9:35 ` Vignesh R
  2018-12-07  9:35 ` [PATCH 2/2] arm64: dts: ti: k3-am654-base-board: Enable ECAP PWM Vignesh R
  1 sibling, 0 replies; 3+ messages in thread
From: Vignesh R @ 2018-12-07  9:35 UTC (permalink / raw)
  To: Tero Kristo, Nishanth Menon
  Cc: Rob Herring, linux-arm-kernel, devicetree, linux-kernel, Vignesh R

Add DT entry for ECAP0 PWM node present in main domain

Signed-off-by: Vignesh R <vigneshr@ti.com>
---
 arch/arm64/boot/dts/ti/k3-am65-main.dtsi | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/arch/arm64/boot/dts/ti/k3-am65-main.dtsi b/arch/arm64/boot/dts/ti/k3-am65-main.dtsi
index 916434839603..0a0a8fc5df64 100644
--- a/arch/arm64/boot/dts/ti/k3-am65-main.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-am65-main.dtsi
@@ -129,4 +129,13 @@
 		clocks = <&k3_clks 113 1>;
 		power-domains = <&k3_pds 113>;
 	};
+
+	ecap0: pwm@3100000 {
+		compatible = "ti,am654-ecap", "ti,am3352-ecap";
+		#pwm-cells = <3>;
+		reg = <0x0 0x03100000 0x0 0x60>;
+		power-domains = <&k3_pds 39>;
+		clocks = <&k3_clks 39 0>;
+		clock-names = "fck";
+	};
 };
-- 
2.19.2


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 2/2] arm64: dts: ti: k3-am654-base-board: Enable ECAP PWM
  2018-12-07  9:35 [PATCH 0/2] AM654: Add ECAP PWM support Vignesh R
  2018-12-07  9:35 ` [PATCH 1/2] arm64: dts: ti: k3-am65-main: Add ECAP PWM node Vignesh R
@ 2018-12-07  9:35 ` Vignesh R
  1 sibling, 0 replies; 3+ messages in thread
From: Vignesh R @ 2018-12-07  9:35 UTC (permalink / raw)
  To: Tero Kristo, Nishanth Menon
  Cc: Rob Herring, linux-arm-kernel, devicetree, linux-kernel, Vignesh R

Enable ECAP PWM which is used for LCD backlight.

Signed-off-by: Vignesh R <vigneshr@ti.com>
---
 arch/arm64/boot/dts/ti/k3-am654-base-board.dts | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/arch/arm64/boot/dts/ti/k3-am654-base-board.dts b/arch/arm64/boot/dts/ti/k3-am654-base-board.dts
index bd5a0069191d..49ec2c3f5ef1 100644
--- a/arch/arm64/boot/dts/ti/k3-am654-base-board.dts
+++ b/arch/arm64/boot/dts/ti/k3-am654-base-board.dts
@@ -76,6 +76,12 @@
 			AM65X_IOPAD(0x000c, PIN_INPUT, 0) /* (E21) I2C1_SDA */
 		>;
 	};
+
+	ecap0_pins_default: ecap0-pins-default {
+		pinctrl-single,pins = <
+			AM65X_IOPAD(0x0010, PIN_INPUT, 0) /* (D21) ECAP0_IN_APWM_OUT */
+		>;
+	};
 };
 
 &wkup_uart0 {
@@ -125,3 +131,8 @@
 	pinctrl-0 = <&main_i2c2_pins_default>;
 	clock-frequency = <400000>;
 };
+
+&ecap0 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&ecap0_pins_default>;
+};
-- 
2.19.2


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-12-07  9:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-07  9:35 [PATCH 0/2] AM654: Add ECAP PWM support Vignesh R
2018-12-07  9:35 ` [PATCH 1/2] arm64: dts: ti: k3-am65-main: Add ECAP PWM node Vignesh R
2018-12-07  9:35 ` [PATCH 2/2] arm64: dts: ti: k3-am654-base-board: Enable ECAP PWM Vignesh R

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).