* [PATCH 1/2] arm64: dts: ti: k3-am62-main: Add epwm nodes
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-07-06 23:25 ` Nishanth Menon
2022-05-31 20:52 ` [PATCH 2/2] arm64: dts: ti: k3-am625-sk: " Georgi Vlaev
2022-09-09 14:38 ` [PATCH 0/2] arm64: dts: ti: k3-am62: Add ePWM support Vignesh Raghavendra
2 siblings, 1 reply; 5+ 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] 5+ messages in thread* Re: [PATCH 0/2] arm64: dts: ti: k3-am62: Add ePWM support
2022-05-31 20:52 [PATCH 0/2] arm64: dts: ti: k3-am62: Add ePWM support 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 ` [PATCH 2/2] arm64: dts: ti: k3-am625-sk: " Georgi Vlaev
@ 2022-09-09 14:38 ` Vignesh Raghavendra
2 siblings, 0 replies; 5+ 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] 5+ messages in thread