linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] pwm: tiehrpwm: Enable EHRPWM for AM654 SoCs
@ 2019-03-12  9:16 Vignesh Raghavendra
  2019-03-12  9:16 ` [PATCH 1/2] dt-bindings: pwm: tiehrpwm: Add TI AM654 SoC specific compatible Vignesh Raghavendra
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Vignesh Raghavendra @ 2019-03-12  9:16 UTC (permalink / raw)
  To: Thierry Reding, Rob Herring
  Cc: linux-pwm, devicetree, linux-kernel, Vignesh Raghavendra,
	Linux ARM Mailing List

This series adds support for EHRPWM IP on TI AM654 SoC

Vignesh Raghavendra (2):
  dt-bindings: pwm: tiehrpwm: Add TI AM654 SoC specific compatible
  pwm: Kconfig: Enable ehrpwm driver to be compiled for ARCH_K3

 Documentation/devicetree/bindings/pwm/pwm-tiehrpwm.txt | 1 +
 drivers/pwm/Kconfig                                    | 5 ++---
 2 files changed, 3 insertions(+), 3 deletions(-)

-- 
2.21.0


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

* [PATCH 1/2] dt-bindings: pwm: tiehrpwm: Add TI AM654 SoC specific compatible
  2019-03-12  9:16 [PATCH 0/2] pwm: tiehrpwm: Enable EHRPWM for AM654 SoCs Vignesh Raghavendra
@ 2019-03-12  9:16 ` Vignesh Raghavendra
  2019-03-12  9:16 ` [PATCH 2/2] pwm: Kconfig: Enable ehrpwm driver to be compiled for ARCH_K3 Vignesh Raghavendra
  2019-03-20 11:33 ` [PATCH 0/2] pwm: tiehrpwm: Enable EHRPWM for AM654 SoCs Thierry Reding
  2 siblings, 0 replies; 6+ messages in thread
From: Vignesh Raghavendra @ 2019-03-12  9:16 UTC (permalink / raw)
  To: Thierry Reding, Rob Herring
  Cc: linux-pwm, devicetree, linux-kernel, Vignesh Raghavendra,
	Linux ARM Mailing List

Add a new compatible string "ti,am654-ehrpwm" to support EHRPWM IP on
TI AM654 SoC.

Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
---
 Documentation/devicetree/bindings/pwm/pwm-tiehrpwm.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/pwm/pwm-tiehrpwm.txt b/Documentation/devicetree/bindings/pwm/pwm-tiehrpwm.txt
index 944fe356bb45..31c4577157dd 100644
--- a/Documentation/devicetree/bindings/pwm/pwm-tiehrpwm.txt
+++ b/Documentation/devicetree/bindings/pwm/pwm-tiehrpwm.txt
@@ -4,6 +4,7 @@ Required properties:
 - compatible: Must be "ti,<soc>-ehrpwm".
   for am33xx  - compatible = "ti,am3352-ehrpwm", "ti,am33xx-ehrpwm";
   for am4372  - compatible = "ti,am4372-ehrpwm", "ti-am3352-ehrpwm", "ti,am33xx-ehrpwm";
+  for am654   - compatible = "ti,am654-ehrpwm", "ti-am3352-ehrpwm";
   for da850   - compatible = "ti,da850-ehrpwm", "ti-am3352-ehrpwm", "ti,am33xx-ehrpwm";
   for dra746 - compatible = "ti,dra746-ehrpwm", "ti-am3352-ehrpwm";
 - #pwm-cells: should be 3. See pwm.txt in this directory for a description of
-- 
2.21.0


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

* [PATCH 2/2] pwm: Kconfig: Enable ehrpwm driver to be compiled for ARCH_K3
  2019-03-12  9:16 [PATCH 0/2] pwm: tiehrpwm: Enable EHRPWM for AM654 SoCs Vignesh Raghavendra
  2019-03-12  9:16 ` [PATCH 1/2] dt-bindings: pwm: tiehrpwm: Add TI AM654 SoC specific compatible Vignesh Raghavendra
@ 2019-03-12  9:16 ` Vignesh Raghavendra
  2019-03-12  9:30   ` Uwe Kleine-König
  2019-03-20 11:33 ` [PATCH 0/2] pwm: tiehrpwm: Enable EHRPWM for AM654 SoCs Thierry Reding
  2 siblings, 1 reply; 6+ messages in thread
From: Vignesh Raghavendra @ 2019-03-12  9:16 UTC (permalink / raw)
  To: Thierry Reding, Rob Herring
  Cc: linux-pwm, devicetree, linux-kernel, Vignesh Raghavendra,
	Linux ARM Mailing List

K3 devices have the same EHRPWM IP as OMAP SoCs. Enable driver to be built
for K3 devices. Also, drop reference to AM33xx in help text, as IP is
found on multiple TI SoCs.

Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
---
 drivers/pwm/Kconfig | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/pwm/Kconfig b/drivers/pwm/Kconfig
index 54f8238aac0d..c054bd1dba36 100644
--- a/drivers/pwm/Kconfig
+++ b/drivers/pwm/Kconfig
@@ -467,10 +467,9 @@ config  PWM_TIECAP
 
 config  PWM_TIEHRPWM
 	tristate "EHRPWM PWM support"
-	depends on ARCH_OMAP2PLUS || ARCH_DAVINCI_DA8XX
+	depends on ARCH_OMAP2PLUS || ARCH_DAVINCI_DA8XX || ARCH_K3
 	help
-	  PWM driver support for the EHRPWM controller found on AM33XX
-	  TI SOC
+	  PWM driver support for the EHRPWM controller found on TI SOCs
 
 	  To compile this driver as a module, choose M here: the module
 	  will be called pwm-tiehrpwm.
-- 
2.21.0


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

* Re: [PATCH 2/2] pwm: Kconfig: Enable ehrpwm driver to be compiled for ARCH_K3
  2019-03-12  9:16 ` [PATCH 2/2] pwm: Kconfig: Enable ehrpwm driver to be compiled for ARCH_K3 Vignesh Raghavendra
@ 2019-03-12  9:30   ` Uwe Kleine-König
  2019-03-20  9:05     ` Vignesh Raghavendra
  0 siblings, 1 reply; 6+ messages in thread
From: Uwe Kleine-König @ 2019-03-12  9:30 UTC (permalink / raw)
  To: Vignesh Raghavendra
  Cc: Thierry Reding, Rob Herring, linux-pwm, devicetree, linux-kernel,
	Linux ARM Mailing List

On Tue, Mar 12, 2019 at 02:46:29PM +0530, Vignesh Raghavendra wrote:
> K3 devices have the same EHRPWM IP as OMAP SoCs. Enable driver to be built
> for K3 devices. Also, drop reference to AM33xx in help text, as IP is
> found on multiple TI SoCs.
> 
> Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
> ---
>  drivers/pwm/Kconfig | 5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/pwm/Kconfig b/drivers/pwm/Kconfig
> index 54f8238aac0d..c054bd1dba36 100644
> --- a/drivers/pwm/Kconfig
> +++ b/drivers/pwm/Kconfig
> @@ -467,10 +467,9 @@ config  PWM_TIECAP
>  
>  config  PWM_TIEHRPWM
>  	tristate "EHRPWM PWM support"
> -	depends on ARCH_OMAP2PLUS || ARCH_DAVINCI_DA8XX
> +	depends on ARCH_OMAP2PLUS || ARCH_DAVINCI_DA8XX || ARCH_K3
>  	help
> -	  PWM driver support for the EHRPWM controller found on AM33XX
> -	  TI SOC
> +	  PWM driver support for the EHRPWM controller found on TI SOCs

It would be great to be able to compile this driver with COMPILE_TEST.
From a quick look the following would be appropriate:

	depends on ARCH_OMAP2PLUS || ARCH_DAVINCI_DA8XX || ARCH_K3 || COMPILE_TEST
	depends on HAVE_CLK && HAS_IOMEM
 
Best regards
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |

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

* Re: [PATCH 2/2] pwm: Kconfig: Enable ehrpwm driver to be compiled for ARCH_K3
  2019-03-12  9:30   ` Uwe Kleine-König
@ 2019-03-20  9:05     ` Vignesh Raghavendra
  0 siblings, 0 replies; 6+ messages in thread
From: Vignesh Raghavendra @ 2019-03-20  9:05 UTC (permalink / raw)
  To: Uwe Kleine-König
  Cc: Thierry Reding, Rob Herring, linux-pwm, devicetree, linux-kernel,
	Linux ARM Mailing List

Hi,

On 12/03/19 3:00 PM, Uwe Kleine-König wrote:
> On Tue, Mar 12, 2019 at 02:46:29PM +0530, Vignesh Raghavendra wrote:
>> K3 devices have the same EHRPWM IP as OMAP SoCs. Enable driver to be built
>> for K3 devices. Also, drop reference to AM33xx in help text, as IP is
>> found on multiple TI SoCs.
>>
>> Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
>> ---
>>  drivers/pwm/Kconfig | 5 ++---
>>  1 file changed, 2 insertions(+), 3 deletions(-)
>>
>> diff --git a/drivers/pwm/Kconfig b/drivers/pwm/Kconfig
>> index 54f8238aac0d..c054bd1dba36 100644
>> --- a/drivers/pwm/Kconfig
>> +++ b/drivers/pwm/Kconfig
>> @@ -467,10 +467,9 @@ config  PWM_TIECAP
>>  
>>  config  PWM_TIEHRPWM
>>  	tristate "EHRPWM PWM support"
>> -	depends on ARCH_OMAP2PLUS || ARCH_DAVINCI_DA8XX
>> +	depends on ARCH_OMAP2PLUS || ARCH_DAVINCI_DA8XX || ARCH_K3
>>  	help
>> -	  PWM driver support for the EHRPWM controller found on AM33XX
>> -	  TI SOC
>> +	  PWM driver support for the EHRPWM controller found on TI SOCs
> 
> It would be great to be able to compile this driver with COMPILE_TEST.
> From a quick look the following would be appropriate:
> 
> 	depends on ARCH_OMAP2PLUS || ARCH_DAVINCI_DA8XX || ARCH_K3 || COMPILE_TEST
> 	depends on HAVE_CLK && HAS_IOMEM
>  

Thanks for the suggestion! I will send a separate patch on top of this
series to enable COMPILE TEST for this driver and other TI PWM drivers.

> Best regards
> Uwe
> 

-- 
Regards
Vignesh

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

* Re: [PATCH 0/2] pwm: tiehrpwm: Enable EHRPWM for AM654 SoCs
  2019-03-12  9:16 [PATCH 0/2] pwm: tiehrpwm: Enable EHRPWM for AM654 SoCs Vignesh Raghavendra
  2019-03-12  9:16 ` [PATCH 1/2] dt-bindings: pwm: tiehrpwm: Add TI AM654 SoC specific compatible Vignesh Raghavendra
  2019-03-12  9:16 ` [PATCH 2/2] pwm: Kconfig: Enable ehrpwm driver to be compiled for ARCH_K3 Vignesh Raghavendra
@ 2019-03-20 11:33 ` Thierry Reding
  2 siblings, 0 replies; 6+ messages in thread
From: Thierry Reding @ 2019-03-20 11:33 UTC (permalink / raw)
  To: Vignesh Raghavendra
  Cc: Rob Herring, linux-pwm, devicetree, linux-kernel, Linux ARM Mailing List

[-- Attachment #1: Type: text/plain, Size: 519 bytes --]

On Tue, Mar 12, 2019 at 02:46:27PM +0530, Vignesh Raghavendra wrote:
> This series adds support for EHRPWM IP on TI AM654 SoC
> 
> Vignesh Raghavendra (2):
>   dt-bindings: pwm: tiehrpwm: Add TI AM654 SoC specific compatible
>   pwm: Kconfig: Enable ehrpwm driver to be compiled for ARCH_K3
> 
>  Documentation/devicetree/bindings/pwm/pwm-tiehrpwm.txt | 1 +
>  drivers/pwm/Kconfig                                    | 5 ++---
>  2 files changed, 3 insertions(+), 3 deletions(-)

Applied, thanks.

Thierry

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

end of thread, other threads:[~2019-03-20 11:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-12  9:16 [PATCH 0/2] pwm: tiehrpwm: Enable EHRPWM for AM654 SoCs Vignesh Raghavendra
2019-03-12  9:16 ` [PATCH 1/2] dt-bindings: pwm: tiehrpwm: Add TI AM654 SoC specific compatible Vignesh Raghavendra
2019-03-12  9:16 ` [PATCH 2/2] pwm: Kconfig: Enable ehrpwm driver to be compiled for ARCH_K3 Vignesh Raghavendra
2019-03-12  9:30   ` Uwe Kleine-König
2019-03-20  9:05     ` Vignesh Raghavendra
2019-03-20 11:33 ` [PATCH 0/2] pwm: tiehrpwm: Enable EHRPWM for AM654 SoCs Thierry Reding

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