All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] arm64: dts: ti: k3-am62: Add ePWM support
@ 2022-05-31 20:52 ` Georgi Vlaev
  0 siblings, 0 replies; 10+ messages in thread
From: Georgi Vlaev @ 2022-05-31 20:52 UTC (permalink / raw)
  To: Nishanth Menon, Vignesh Raghavendra, Tero Kristo, Rob Herring,
	Krzysztof Kozlowski
  Cc: linux-arm-kernel, devicetree, Georgi Vlaev

This patch series enables the ePWM support on the AM62 platform.
The ePWMs are enabled by default, but we have to disable them
for the AM625-SK board, as they are not in use.

Georgi Vlaev (2):
  arm64: dts: ti: k3-am62-main: Add epwm nodes
  arm64: dts: ti: k3-am625-sk: Add epwm nodes

 arch/arm64/boot/dts/ti/k3-am62-main.dtsi | 33 ++++++++++++++++++++++++
 arch/arm64/boot/dts/ti/k3-am625-sk.dts   | 12 +++++++++
 2 files changed, 45 insertions(+)


base-commit: e1cbc3b96a9974746b2a80c3a6c8a0f7eff7b1b5
-- 
2.30.2


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

* [PATCH 0/2] arm64: dts: ti: k3-am62: Add ePWM support
@ 2022-05-31 20:52 ` Georgi Vlaev
  0 siblings, 0 replies; 10+ messages in thread
From: Georgi Vlaev @ 2022-05-31 20:52 UTC (permalink / raw)
  To: Nishanth Menon, Vignesh Raghavendra, Tero Kristo, Rob Herring,
	Krzysztof Kozlowski
  Cc: linux-arm-kernel, devicetree, Georgi Vlaev

This patch series enables the ePWM support on the AM62 platform.
The ePWMs are enabled by default, but we have to disable them
for the AM625-SK board, as they are not in use.

Georgi Vlaev (2):
  arm64: dts: ti: k3-am62-main: Add epwm nodes
  arm64: dts: ti: k3-am625-sk: Add epwm nodes

 arch/arm64/boot/dts/ti/k3-am62-main.dtsi | 33 ++++++++++++++++++++++++
 arch/arm64/boot/dts/ti/k3-am625-sk.dts   | 12 +++++++++
 2 files changed, 45 insertions(+)


base-commit: e1cbc3b96a9974746b2a80c3a6c8a0f7eff7b1b5
-- 
2.30.2


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* [PATCH 1/2] arm64: dts: ti: k3-am62-main: Add epwm nodes
  2022-05-31 20:52 ` Georgi Vlaev
@ 2022-05-31 20:52   ` Georgi Vlaev
  -1 siblings, 0 replies; 10+ messages in thread
From: Georgi Vlaev @ 2022-05-31 20:52 UTC (permalink / raw)
  To: Nishanth Menon, Vignesh Raghavendra, Tero Kristo, Rob Herring,
	Krzysztof Kozlowski
  Cc: linux-arm-kernel, devicetree, Georgi Vlaev

Add the compatible DT nodes for all EPWM instances
present in AM62 SoC. There is a total of 3 EPWM modules
available, sharing the same K3 IP as in AM64 SoC.

This also adds a required "ti,am62-epwm-tbclk" clock
provider node for the EPWM time-base clock.

Signed-off-by: Georgi Vlaev <g-vlaev@ti.com>
---
 arch/arm64/boot/dts/ti/k3-am62-main.dtsi | 33 ++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/arch/arm64/boot/dts/ti/k3-am62-main.dtsi b/arch/arm64/boot/dts/ti/k3-am62-main.dtsi
index d08abad0bcf4..951f0309d6be 100644
--- a/arch/arm64/boot/dts/ti/k3-am62-main.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-am62-main.dtsi
@@ -54,6 +54,12 @@ phy_gmii_sel: phy@4044 {
 			reg = <0x4044 0x8>;
 			#phy-cells = <1>;
 		};
+
+		epwm_tbclk: clock@4130 {
+			compatible = "ti,am62-epwm-tbclk", "syscon";
+			reg = <0x4130 0x4>;
+			#clock-cells = <1>;
+		};
 	};
 
 	dmss: bus@48000000 {
@@ -571,4 +577,31 @@ main_mcan0: can@20701000 {
 		interrupt-names = "int0", "int1";
 		bosch,mram-cfg = <0x0 128 64 64 64 64 32 32>;
 	};
+
+	epwm0: pwm@23000000 {
+		compatible = "ti,am64-epwm", "ti,am3352-ehrpwm";
+		#pwm-cells = <3>;
+		reg = <0x00 0x23000000 0x00 0x100>;
+		power-domains = <&k3_pds 86 TI_SCI_PD_EXCLUSIVE>;
+		clocks = <&epwm_tbclk 0>, <&k3_clks 86 0>;
+		clock-names = "tbclk", "fck";
+	};
+
+	epwm1: pwm@23010000 {
+		compatible = "ti,am64-epwm", "ti,am3352-ehrpwm";
+		#pwm-cells = <3>;
+		reg = <0x00 0x23010000 0x00 0x100>;
+		power-domains = <&k3_pds 87 TI_SCI_PD_EXCLUSIVE>;
+		clocks = <&epwm_tbclk 1>, <&k3_clks 87 0>;
+		clock-names = "tbclk", "fck";
+	};
+
+	epwm2: pwm@23020000 {
+		compatible = "ti,am64-epwm", "ti,am3352-ehrpwm";
+		#pwm-cells = <3>;
+		reg = <0x00 0x23020000 0x00 0x100>;
+		power-domains = <&k3_pds 88 TI_SCI_PD_EXCLUSIVE>;
+		clocks = <&epwm_tbclk 2>, <&k3_clks 88 0>;
+		clock-names = "tbclk", "fck";
+	};
 };
-- 
2.30.2


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

* [PATCH 1/2] arm64: dts: ti: k3-am62-main: Add epwm nodes
@ 2022-05-31 20:52   ` Georgi Vlaev
  0 siblings, 0 replies; 10+ messages in thread
From: Georgi Vlaev @ 2022-05-31 20:52 UTC (permalink / raw)
  To: Nishanth Menon, Vignesh Raghavendra, Tero Kristo, Rob Herring,
	Krzysztof Kozlowski
  Cc: linux-arm-kernel, devicetree, Georgi Vlaev

Add the compatible DT nodes for all EPWM instances
present in AM62 SoC. There is a total of 3 EPWM modules
available, sharing the same K3 IP as in AM64 SoC.

This also adds a required "ti,am62-epwm-tbclk" clock
provider node for the EPWM time-base clock.

Signed-off-by: Georgi Vlaev <g-vlaev@ti.com>
---
 arch/arm64/boot/dts/ti/k3-am62-main.dtsi | 33 ++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/arch/arm64/boot/dts/ti/k3-am62-main.dtsi b/arch/arm64/boot/dts/ti/k3-am62-main.dtsi
index d08abad0bcf4..951f0309d6be 100644
--- a/arch/arm64/boot/dts/ti/k3-am62-main.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-am62-main.dtsi
@@ -54,6 +54,12 @@ phy_gmii_sel: phy@4044 {
 			reg = <0x4044 0x8>;
 			#phy-cells = <1>;
 		};
+
+		epwm_tbclk: clock@4130 {
+			compatible = "ti,am62-epwm-tbclk", "syscon";
+			reg = <0x4130 0x4>;
+			#clock-cells = <1>;
+		};
 	};
 
 	dmss: bus@48000000 {
@@ -571,4 +577,31 @@ main_mcan0: can@20701000 {
 		interrupt-names = "int0", "int1";
 		bosch,mram-cfg = <0x0 128 64 64 64 64 32 32>;
 	};
+
+	epwm0: pwm@23000000 {
+		compatible = "ti,am64-epwm", "ti,am3352-ehrpwm";
+		#pwm-cells = <3>;
+		reg = <0x00 0x23000000 0x00 0x100>;
+		power-domains = <&k3_pds 86 TI_SCI_PD_EXCLUSIVE>;
+		clocks = <&epwm_tbclk 0>, <&k3_clks 86 0>;
+		clock-names = "tbclk", "fck";
+	};
+
+	epwm1: pwm@23010000 {
+		compatible = "ti,am64-epwm", "ti,am3352-ehrpwm";
+		#pwm-cells = <3>;
+		reg = <0x00 0x23010000 0x00 0x100>;
+		power-domains = <&k3_pds 87 TI_SCI_PD_EXCLUSIVE>;
+		clocks = <&epwm_tbclk 1>, <&k3_clks 87 0>;
+		clock-names = "tbclk", "fck";
+	};
+
+	epwm2: pwm@23020000 {
+		compatible = "ti,am64-epwm", "ti,am3352-ehrpwm";
+		#pwm-cells = <3>;
+		reg = <0x00 0x23020000 0x00 0x100>;
+		power-domains = <&k3_pds 88 TI_SCI_PD_EXCLUSIVE>;
+		clocks = <&epwm_tbclk 2>, <&k3_clks 88 0>;
+		clock-names = "tbclk", "fck";
+	};
 };
-- 
2.30.2


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* [PATCH 2/2] arm64: dts: ti: k3-am625-sk: Add epwm nodes
  2022-05-31 20:52 ` Georgi Vlaev
@ 2022-05-31 20:52   ` Georgi Vlaev
  -1 siblings, 0 replies; 10+ messages in thread
From: Georgi Vlaev @ 2022-05-31 20:52 UTC (permalink / raw)
  To: Nishanth Menon, Vignesh Raghavendra, Tero Kristo, Rob Herring,
	Krzysztof Kozlowski
  Cc: linux-arm-kernel, devicetree, Georgi Vlaev

Add epwm nodes and mark them disabled, as they're
not currently in use.

Signed-off-by: Georgi Vlaev <g-vlaev@ti.com>
---
 arch/arm64/boot/dts/ti/k3-am625-sk.dts | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/arch/arm64/boot/dts/ti/k3-am625-sk.dts b/arch/arm64/boot/dts/ti/k3-am625-sk.dts
index 39fb1d763037..2ebd344a3a76 100644
--- a/arch/arm64/boot/dts/ti/k3-am625-sk.dts
+++ b/arch/arm64/boot/dts/ti/k3-am625-sk.dts
@@ -493,3 +493,15 @@ &ecap2 {
 &main_mcan0 {
 	status = "disabled";
 };
+
+&epwm0 {
+	status = "disabled";
+};
+
+&epwm1 {
+	status = "disabled";
+};
+
+&epwm2 {
+	status = "disabled";
+};
-- 
2.30.2


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

* [PATCH 2/2] arm64: dts: ti: k3-am625-sk: Add epwm nodes
@ 2022-05-31 20:52   ` Georgi Vlaev
  0 siblings, 0 replies; 10+ messages in thread
From: Georgi Vlaev @ 2022-05-31 20:52 UTC (permalink / raw)
  To: Nishanth Menon, Vignesh Raghavendra, Tero Kristo, Rob Herring,
	Krzysztof Kozlowski
  Cc: linux-arm-kernel, devicetree, Georgi Vlaev

Add epwm nodes and mark them disabled, as they're
not currently in use.

Signed-off-by: Georgi Vlaev <g-vlaev@ti.com>
---
 arch/arm64/boot/dts/ti/k3-am625-sk.dts | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/arch/arm64/boot/dts/ti/k3-am625-sk.dts b/arch/arm64/boot/dts/ti/k3-am625-sk.dts
index 39fb1d763037..2ebd344a3a76 100644
--- a/arch/arm64/boot/dts/ti/k3-am625-sk.dts
+++ b/arch/arm64/boot/dts/ti/k3-am625-sk.dts
@@ -493,3 +493,15 @@ &ecap2 {
 &main_mcan0 {
 	status = "disabled";
 };
+
+&epwm0 {
+	status = "disabled";
+};
+
+&epwm1 {
+	status = "disabled";
+};
+
+&epwm2 {
+	status = "disabled";
+};
-- 
2.30.2


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: [PATCH 1/2] arm64: dts: ti: k3-am62-main: Add epwm nodes
  2022-05-31 20:52   ` Georgi Vlaev
@ 2022-07-06 23:25     ` Nishanth Menon
  -1 siblings, 0 replies; 10+ messages in thread
From: Nishanth Menon @ 2022-07-06 23:25 UTC (permalink / raw)
  To: Georgi Vlaev
  Cc: Vignesh Raghavendra, Tero Kristo, Rob Herring,
	Krzysztof Kozlowski, linux-arm-kernel, devicetree

On 23:52-20220531, Georgi Vlaev wrote:
[...]

> Signed-off-by: Georgi Vlaev <g-vlaev@ti.com>
> ---
>  arch/arm64/boot/dts/ti/k3-am62-main.dtsi | 33 ++++++++++++++++++++++++
>  1 file changed, 33 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/ti/k3-am62-main.dtsi b/arch/arm64/boot/dts/ti/k3-am62-main.dtsi
> index d08abad0bcf4..951f0309d6be 100644
> --- a/arch/arm64/boot/dts/ti/k3-am62-main.dtsi
> +++ b/arch/arm64/boot/dts/ti/k3-am62-main.dtsi
> @@ -54,6 +54,12 @@ phy_gmii_sel: phy@4044 {
>  			reg = <0x4044 0x8>;
>  			#phy-cells = <1>;
>  		};
> +
> +		epwm_tbclk: clock@4130 {
> +			compatible = "ti,am62-epwm-tbclk", "syscon";

Lets do this in the next rc1 cycle. we should have all the missing
pieces in master by then.

[...]

-- 
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3  1A34 DDB5 849D 1736 249D

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

* Re: [PATCH 1/2] arm64: dts: ti: k3-am62-main: Add epwm nodes
@ 2022-07-06 23:25     ` Nishanth Menon
  0 siblings, 0 replies; 10+ messages in thread
From: Nishanth Menon @ 2022-07-06 23:25 UTC (permalink / raw)
  To: Georgi Vlaev
  Cc: Vignesh Raghavendra, Tero Kristo, Rob Herring,
	Krzysztof Kozlowski, linux-arm-kernel, devicetree

On 23:52-20220531, Georgi Vlaev wrote:
[...]

> Signed-off-by: Georgi Vlaev <g-vlaev@ti.com>
> ---
>  arch/arm64/boot/dts/ti/k3-am62-main.dtsi | 33 ++++++++++++++++++++++++
>  1 file changed, 33 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/ti/k3-am62-main.dtsi b/arch/arm64/boot/dts/ti/k3-am62-main.dtsi
> index d08abad0bcf4..951f0309d6be 100644
> --- a/arch/arm64/boot/dts/ti/k3-am62-main.dtsi
> +++ b/arch/arm64/boot/dts/ti/k3-am62-main.dtsi
> @@ -54,6 +54,12 @@ phy_gmii_sel: phy@4044 {
>  			reg = <0x4044 0x8>;
>  			#phy-cells = <1>;
>  		};
> +
> +		epwm_tbclk: clock@4130 {
> +			compatible = "ti,am62-epwm-tbclk", "syscon";

Lets do this in the next rc1 cycle. we should have all the missing
pieces in master by then.

[...]

-- 
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3  1A34 DDB5 849D 1736 249D

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: [PATCH 0/2] arm64: dts: ti: k3-am62: Add ePWM support
  2022-05-31 20:52 ` Georgi Vlaev
@ 2022-09-09 14:38   ` Vignesh Raghavendra
  -1 siblings, 0 replies; 10+ messages in thread
From: Vignesh Raghavendra @ 2022-09-09 14:38 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Nishanth Menon, Georgi Vlaev, Tero Kristo,
	Rob Herring
  Cc: Vignesh Raghavendra, devicetree, linux-arm-kernel

Hi Georgi Vlaev,

On Tue, 31 May 2022 23:52:27 +0300, Georgi Vlaev wrote:
> This patch series enables the ePWM support on the AM62 platform.
> The ePWMs are enabled by default, but we have to disable them
> for the AM625-SK board, as they are not in use.
> 
> Georgi Vlaev (2):
>   arm64: dts: ti: k3-am62-main: Add epwm nodes
>   arm64: dts: ti: k3-am625-sk: Add epwm nodes
> 
> [...]

I have applied the following to branch master on [1].
Thank you!

[1/2] arm64: dts: ti: k3-am62-main: Add epwm nodes
      commit: ab1ad455cf33de6dc1f6cbf0d0d1d49dbe3d9e4f
[2/2] arm64: dts: ti: k3-am625-sk: Add epwm nodes
      commit: acf3fdc88665a26abfe22827993a2dabf182a513

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent up the chain during
the next merge window (or sooner if it is a relevant bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/ti/linux.git
--
Vignesh


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

* Re: [PATCH 0/2] arm64: dts: ti: k3-am62: Add ePWM support
@ 2022-09-09 14:38   ` Vignesh Raghavendra
  0 siblings, 0 replies; 10+ messages in thread
From: Vignesh Raghavendra @ 2022-09-09 14:38 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Nishanth Menon, Georgi Vlaev, Tero Kristo,
	Rob Herring
  Cc: Vignesh Raghavendra, devicetree, linux-arm-kernel

Hi Georgi Vlaev,

On Tue, 31 May 2022 23:52:27 +0300, Georgi Vlaev wrote:
> This patch series enables the ePWM support on the AM62 platform.
> The ePWMs are enabled by default, but we have to disable them
> for the AM625-SK board, as they are not in use.
> 
> Georgi Vlaev (2):
>   arm64: dts: ti: k3-am62-main: Add epwm nodes
>   arm64: dts: ti: k3-am625-sk: Add epwm nodes
> 
> [...]

I have applied the following to branch master on [1].
Thank you!

[1/2] arm64: dts: ti: k3-am62-main: Add epwm nodes
      commit: ab1ad455cf33de6dc1f6cbf0d0d1d49dbe3d9e4f
[2/2] arm64: dts: ti: k3-am625-sk: Add epwm nodes
      commit: acf3fdc88665a26abfe22827993a2dabf182a513

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent up the chain during
the next merge window (or sooner if it is a relevant bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/ti/linux.git
--
Vignesh


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

end of thread, other threads:[~2022-09-09 14:40 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-31 20:52 [PATCH 0/2] arm64: dts: ti: k3-am62: Add ePWM support Georgi Vlaev
2022-05-31 20:52 ` Georgi Vlaev
2022-05-31 20:52 ` [PATCH 1/2] arm64: dts: ti: k3-am62-main: Add epwm nodes Georgi Vlaev
2022-05-31 20:52   ` Georgi Vlaev
2022-07-06 23:25   ` Nishanth Menon
2022-07-06 23:25     ` Nishanth Menon
2022-05-31 20:52 ` [PATCH 2/2] arm64: dts: ti: k3-am625-sk: " Georgi Vlaev
2022-05-31 20:52   ` Georgi Vlaev
2022-09-09 14:38 ` [PATCH 0/2] arm64: dts: ti: k3-am62: Add ePWM support Vignesh Raghavendra
2022-09-09 14:38   ` Vignesh Raghavendra

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.