diff mbox series

[V2,1/2] arm64: dts: mediatek: mt7988: add PWM controller

Message ID 20240604064302.487-1-zajec5@gmail.com (mailing list archive)
State Accepted
Headers show
Series [V2,1/2] arm64: dts: mediatek: mt7988: add PWM controller | expand

Commit Message

Rafał Miłecki June 4, 2024, 6:43 a.m. UTC
From: Rafał Miłecki <rafal@milecki.pl>

MT7988 has on-SoC controller that can control up to 8 PWM interfaces.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
---
 arch/arm64/boot/dts/mediatek/mt7988a.dtsi | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

Comments

AngeloGioacchino Del Regno June 4, 2024, 12:44 p.m. UTC | #1
On Tue, 04 Jun 2024 08:43:01 +0200, Rafał Miłecki wrote:
> MT7988 has on-SoC controller that can control up to 8 PWM interfaces.
> 
> 

Applied to v6.10-next/dts64, thanks!

[1/2] arm64: dts: mediatek: mt7988: add PWM controller
      commit: 9e12e66ef9584900b0a08ff7ed1a70078386c0d7
[2/2] arm64: dts: mediatek: mt7988: add I2C controllers
      commit: 92b1be17128be7cc5ba7753ceda973899205ffcb

Cheers,
Angelo
diff mbox series

Patch

diff --git a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi
index 3eb5396dea22..27098f724b7a 100644
--- a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi
@@ -105,6 +105,25 @@  clock-controller@1001e000 {
 			#clock-cells = <1>;
 		};
 
+		pwm@10048000 {
+			compatible = "mediatek,mt7988-pwm";
+			reg = <0 0x10048000 0 0x1000>;
+			clocks = <&infracfg CLK_INFRA_66M_PWM_BCK>,
+				 <&infracfg CLK_INFRA_66M_PWM_HCK>,
+				 <&infracfg CLK_INFRA_66M_PWM_CK1>,
+				 <&infracfg CLK_INFRA_66M_PWM_CK2>,
+				 <&infracfg CLK_INFRA_66M_PWM_CK3>,
+				 <&infracfg CLK_INFRA_66M_PWM_CK4>,
+				 <&infracfg CLK_INFRA_66M_PWM_CK5>,
+				 <&infracfg CLK_INFRA_66M_PWM_CK6>,
+				 <&infracfg CLK_INFRA_66M_PWM_CK7>,
+				 <&infracfg CLK_INFRA_66M_PWM_CK8>;
+			clock-names = "top", "main", "pwm1", "pwm2", "pwm3",
+				      "pwm4", "pwm5", "pwm6", "pwm7", "pwm8";
+			#pwm-cells = <2>;
+			status = "disabled";
+		};
+
 		usb@11190000 {
 			compatible = "mediatek,mt7988-xhci", "mediatek,mtk-xhci";
 			reg = <0 0x11190000 0 0x2e00>,