OSDN Git Service

ARM: dts: mediatek: add mt7629 pwm support
authorSam Shih <sam.shih@mediatek.com>
Wed, 4 Mar 2020 11:06:13 +0000 (19:06 +0800)
committerMatthias Brugger <matthias.bgg@gmail.com>
Wed, 4 Mar 2020 18:02:31 +0000 (19:02 +0100)
This adds pwm support for MT7629.

Signed-off-by: Sam Shih <sam.shih@mediatek.com>
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
arch/arm/boot/dts/mt7629.dtsi

index 6078763..5cbb3d2 100644 (file)
                        status = "disabled";
                };
 
+               pwm: pwm@11006000 {
+                       compatible = "mediatek,mt7629-pwm";
+                       reg = <0x11006000 0x1000>;
+                       #pwm-cells = <2>;
+                       clocks = <&topckgen CLK_TOP_PWM_SEL>,
+                                <&pericfg CLK_PERI_PWM_PD>,
+                                <&pericfg CLK_PERI_PWM1_PD>;
+                       clock-names = "top", "main", "pwm1";
+                       assigned-clocks = <&topckgen CLK_TOP_PWM_SEL>;
+                       assigned-clock-parents =
+                                       <&topckgen CLK_TOP_UNIVPLL2_D4>;
+                       status = "disabled";
+               };
+
                i2c: i2c@11007000 {
                        compatible = "mediatek,mt7629-i2c",
                                     "mediatek,mt2712-i2c";