Skip to contentSkip to conversation

K2G: Add support for PWM ECAP

PATCH RESEND In review Vignesh R 1 participant 5 messages Sep 19, 2017 – Oct 10, 2017

Subsystems (2)
lore
Share & tools
lore

Vignesh R

author
#0 lore raw

cover K2G: Add support for PWM ECAP

This series adds support for TI ECAP PWM IP present in 66AK2G SoC. Resending based on today's linux-next.

Vignesh R (3):
ARM: dts: keystone-k2g: Add ECAP PWM DT nodes
ARM: dts: keystone-k2g-evm: Enable PWM ECAP0
ARM: configs: keystone: Enable TIECAP PWM driver

 arch/arm/boot/dts/keystone-k2g-evm.dts | 12 ++++++++++++
 arch/arm/boot/dts/keystone-k2g.dtsi    | 20 ++++++++++++++++++++
 arch/arm/configs/keystone_defconfig    |  2 ++
 3 files changed, 34 insertions(+)
Signature · 1 line
2.14.1
author
#1 lore raw

PATCH RESEND 1/3 ARM: dts: keystone-k2g: Add ECAP PWM DT nodes

Add DT nodes for PWM ECAP IP present on 66AK2G SoC.

---
 arch/arm/boot/dts/keystone-k2g.dtsi | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
arch/arm/boot/dts/keystone-k2g.dtsi +20 -0
index 826b286665e6..dace4672b1e6 100644
@@ -343,5 +343,25 @@
 			clock-names = "fck", "mmchsdb_fck";
 			status = "disabled";
 		};
+
+		ecap0: pwm at 21d1800 {
+			compatible = "ti,k2g-ecap", "ti,am3352-ecap";
+			#pwm-cells = <3>;
+			reg = <0x021d1800 0x60>;
+			power-domains = <&k2g_pds 0x38>;
+			clocks = <&k2g_clks 0x38 0>;
+			clock-names = "fck";
+			status = "disabled";
+		};
+
+		ecap1: pwm at 21d1c00 {
+			compatible = "ti,k2g-ecap", "ti,am3352-ecap";
+			#pwm-cells = <3>;
+			reg = <0x021d1c00 0x60>;
+			power-domains = <&k2g_pds 0x39>;
+			clocks = <&k2g_clks 0x39 0x0>;
+			clock-names = "fck";
+			status = "disabled";
+		};
 	};
 };
Signature · 1 line
2.14.1
author
#2 lore raw

PATCH RESEND 2/3 ARM: dts: keystone-k2g-evm: Enable PWM ECAP0

In reply to Vignesh R

Enable PWM ECAP0 which will be used for display backlight.

---
 arch/arm/boot/dts/keystone-k2g-evm.dts | 12 ++++++++++++
 1 file changed, 12 insertions(+)
arch/arm/boot/dts/keystone-k2g-evm.dts +12 -0
index f462f1043531..808618e747eb 100644
@@ -81,6 +81,12 @@
 			K2G_CORE_IOPAD(0x1110) (BUFFER_CLASS_B | PIN_PULLUP | MUX_MODE0)	/* mmc1_cmd.mmc1_cmd */
 		>;
 	};
+
+	ecap0_pins: ecap0_pins {
+		pinctrl-single,pins = <
+			K2G_CORE_IOPAD(0x1374) (BUFFER_CLASS_B | MUX_MODE4)	/* pr1_mdio_data.ecap0_in_apwm0_out */
+		>;
+	};
 };
 
 &uart0 {
@@ -112,3 +118,9 @@
 	memory-region = <&dsp_common_memory>;
 	status = "okay";
 };
+
+&ecap0 {
+	status = "okay";
+	pinctrl-names = "default";
+	pinctrl-0 = <&ecap0_pins>;
+};
Signature · 1 line
2.14.1
author
#3 lore raw

PATCH RESEND 3/3 ARM: configs: keystone: Enable TIECAP PWM driver

In reply to Vignesh R

Enable PWM_TIECAP driver to support ECAP IP present in 66AK2G SoC.

---
 arch/arm/configs/keystone_defconfig | 2 ++
 1 file changed, 2 insertions(+)
arch/arm/configs/keystone_defconfig +2 -0
index f907869e0ddc..f710c192b33a 100644
@@ -189,6 +189,8 @@ CONFIG_KEYSTONE_NAVIGATOR_DMA=y
 CONFIG_TI_SCI_PM_DOMAINS=y
 CONFIG_MEMORY=y
 CONFIG_TI_AEMIF=y
+CONFIG_PWM=y
+CONFIG_PWM_TIECAP=m
 CONFIG_KEYSTONE_IRQ=y
 CONFIG_RESET_TI_SCI=m
 CONFIG_RESET_TI_SYSCON=m
Signature · 1 line
2.14.1
author
#4 lore raw
In reply to Vignesh R
Quoted 10 lines · Vignesh R

This series adds support for TI ECAP PWM IP present in 66AK2G SoC. Resending based on today's linux-next.

Vignesh R (3):
ARM: dts: keystone-k2g: Add ECAP PWM DT nodes
ARM: dts: keystone-k2g-evm: Enable PWM ECAP0
ARM: configs: keystone: Enable TIECAP PWM driver

Quoted 5 lines
 arch/arm/boot/dts/keystone-k2g-evm.dts | 12 ++++++++++++
 arch/arm/boot/dts/keystone-k2g.dtsi    | 20 ++++++++++++++++++++
 arch/arm/configs/keystone_defconfig    |  2 ++
 3 files changed, 34 insertions(+)

Gentle ping on the series...

Signature · 2 lines
Regards
Vignesh