Skip to contentSkip to conversation

pwm-tiecap: Add support for AM654 SoCs

PATCH Superseded Vignesh R 3 participants 5 messages Oct 3, 2018 – Oct 15, 2018

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Vignesh R

author
#0 lore raw

cover pwm-tiecap: Add support for AM654 SoCs

Couple of patches to enable pwm-tiecap driver to be used with TI's new AM654 platforms.

Vignesh R (2):
dt-bindings: pwm: tiecap: Add TI AM654 SoC specific compatible
pwm: Kconfig: Enable TI ECAP driver for ARCH_K3

 Documentation/devicetree/bindings/pwm/pwm-tiecap.txt | 1 +
 drivers/pwm/Kconfig                                  | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
Signature · 1 line
2.19.0
author
#1 lore raw

PATCH 1/2 dt-bindings: pwm: tiecap: Add TI AM654 SoC specific compatible

Add a new compatible string "ti,am654-ecap" to support PWM ECAP IP of TI AM654 SoC.

---
 Documentation/devicetree/bindings/pwm/pwm-tiecap.txt | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/pwm/pwm-tiecap.txt +1 -0
index 06a363d9ccef..b9a1d7402128 100644
@@ -7,6 +7,7 @@ Required properties:
   for da850  - compatible = "ti,da850-ecap", "ti,am3352-ecap", "ti,am33xx-ecap";
   for dra746 - compatible = "ti,dra746-ecap", "ti,am3352-ecap";
   for 66ak2g - compatible = "ti,k2g-ecap", "ti,am3352-ecap";
+  for am654  - compatible = "ti,am654-ecap", "ti,am3352-ecap";
 - #pwm-cells: should be 3. See pwm.txt in this directory for a description of
   the cells format. The PWM channel index ranges from 0 to 4. The only third
   cell flag supported by this binding is PWM_POLARITY_INVERTED.
Signature · 1 line
2.19.0
author
#3 lore raw

PATCH 2/2 pwm: Kconfig: Enable TI ECAP driver for ARCH_K3

In reply to Vignesh R

K3 devices have the same ECAP IP as OMAP SoC. Enable driver to be built for K3 devices.

---
 drivers/pwm/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pwm/Kconfig +1 -1
index 504d252716f2..0c7bc6f554cf 100644
@@ -447,7 +447,7 @@ config PWM_TEGRA
 
 config  PWM_TIECAP
 	tristate "ECAP PWM support"
-	depends on ARCH_OMAP2PLUS || ARCH_DAVINCI_DA8XX || ARCH_KEYSTONE
+	depends on ARCH_OMAP2PLUS || ARCH_DAVINCI_DA8XX || ARCH_KEYSTONE || ARCH_K3
 	help
 	  PWM driver support for the ECAP APWM controller found on AM33XX
 	  TI SOC
Signature · 1 line
2.19.0
#4 lore raw

Re: [PATCH 2/2] pwm: Kconfig: Enable TI ECAP driver for ARCH_K3

Quoted 15 lines · Vignesh R

K3 devices have the same ECAP IP as OMAP SoC. Enable driver to be built for K3 devices.

---
 drivers/pwm/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pwm/Kconfig +0 -0
index 504d252716f2..0c7bc6f554cf 100644

drivers/pwm/Kconfig config PWM_TEGRA · line 453

Quoted 8 lines
drivers/pwm/Kconfig +1 -1
@@ -447,7 +447,7 @@ config PWM_TEGRA
 
 config  PWM_TIECAP
 	tristate "ECAP PWM support"
-	depends on ARCH_OMAP2PLUS || ARCH_DAVINCI_DA8XX || ARCH_KEYSTONE
+	depends on ARCH_OMAP2PLUS || ARCH_DAVINCI_DA8XX || ARCH_KEYSTONE || ARCH_K3
 	help
 	  PWM driver support for the ECAP APWM controller found on AM33XX
 	  TI SOC

Minor, perhaps calling out AM33XX specifically in the help text is no longer needed and a bit confusing.

Andrew

maintainer Reviewed-by on v1 1/2
#2 lore raw

Re: [PATCH 1/2] dt-bindings: pwm: tiecap: Add TI AM654 SoC specific compatible

In reply to Vignesh R
Quoted 9 lines · Vignesh R

Add a new compatible string "ti,am654-ecap" to support PWM ECAP IP of TI AM654 SoC.

---
 Documentation/devicetree/bindings/pwm/pwm-tiecap.txt | 1 +
 1 file changed, 1 insertion(+)