Add mt7629 pwm support
Subsystems (3)
v3 cover Add mt7629 pwm support
This adds pwm support for MT7629
Sam Shih (2):
dt-bindings: pwm: Update bindings for MT7629 SoC
arm: dts: mediatek: add mt7629 pwm support
.../devicetree/bindings/pwm/pwm-mediatek.txt | 5 +++++ arch/arm/boot/dts/mt7629.dtsi | 14 ++++++++++++++ 2 files changed, 19 insertions(+)
Signature · 1 line
2.17.1
PATCH v3 1/2 dt-bindings: pwm: Update bindings for MT7629 SoC
This updates bindings for MT7629 pwm controller.
--- Documentation/devicetree/bindings/pwm/pwm-mediatek.txt | 5 +++++ 1 file changed, 5 insertions(+)
Documentation/devicetree/bindings/pwm/pwm-mediatek.txt +5 -0
@@ -19,10 +19,15 @@ Required properties: - "pwm1-8": the eight per PWM clocks for mt2712 - "pwm1-6": the six per PWM clocks for mt7622 - "pwm1-5": the five per PWM clocks for mt7623 + - "pwm1" : the PWM1 clock for mt7629 - pinctrl-names: Must contain a "default" entry. - pinctrl-0: One property must exist for each entry in pinctrl-names. See pinctrl/pinctrl-bindings.txt for details of the property values. +Optional properties: +- assigned-clocks: Reference to the PWM clock entries. +- assigned-clock-parents: The phandle of the parent clock of PWM clock. + Example: pwm0: pwm@11006000 { compatible = "mediatek,mt7623-pwm";
Signature · 1 line
2.17.1
Re: [v3,1/2] dt-bindings: pwm: Update bindings for MT7629 SoC
Quoted 7 lines · Sam Shih
This updates bindings for MT7629 pwm controller.
Signed-off-by Sam Shih <[email protected]>--- Documentation/devicetree/bindings/pwm/pwm-mediatek.txt | 5 +++++ 1 file changed, 5 insertions(+)
Applied, thanks.
Rob
PATCH v3 2/2 arm: dts: mediatek: add mt7629 pwm support
In reply to Sam ShihThis adds pwm support for MT7629.
---
Used:
https://patchwork.kernel.org/patch/11160851/
Change since v2:
Updated bindings for MT7629 pwm controller.
--- arch/arm/boot/dts/mt7629.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
arch/arm/boot/dts/mt7629.dtsi +14 -0
@@ -241,6 +241,20 @@ 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";
Signature · 1 line
2.17.1
Matthias Brugger
maintainerRe: [v3,2/2] arm: dts: mediatek: add mt7629 pwm support
Quoted 3 lines · Sam Shih
This adds pwm support for MT7629.
Signed-off-by Sam Shih <[email protected]>
I wrote "arm" in capital letters in the subject and pushed it to v5.6-next/dts32
Thanks!
Matthias
Quoted 37 lines
---
Used:
https://patchwork.kernel.org/patch/11160851/Change since v2:
Updated bindings for MT7629 pwm controller.--- arch/arm/boot/dts/mt7629.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+)arch/arm/boot/dts/mt7629.dtsi +14
-0@@ -241,6 +241,20 @@ 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";