2020-03-04 11:06:42

by Sam Shih

[permalink] [raw]
Subject: [v3,0/2] 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(+)

--
2.17.1


2020-03-04 11:07:08

by Sam Shih

[permalink] [raw]
Subject: [v3,2/2] arm: dts: mediatek: add mt7629 pwm support

This adds pwm support for MT7629.

Signed-off-by: Sam Shih <[email protected]>
---
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(+)

diff --git a/arch/arm/boot/dts/mt7629.dtsi b/arch/arm/boot/dts/mt7629.dtsi
index 867b88103b9d..a2658fbadeca 100644
--- a/arch/arm/boot/dts/mt7629.dtsi
+++ b/arch/arm/boot/dts/mt7629.dtsi
@@ -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";
--
2.17.1

2020-03-04 11:07:20

by Sam Shih

[permalink] [raw]
Subject: [v3,1/2] dt-bindings: pwm: Update bindings for MT7629 SoC

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(+)

diff --git a/Documentation/devicetree/bindings/pwm/pwm-mediatek.txt b/Documentation/devicetree/bindings/pwm/pwm-mediatek.txt
index 95536d83c5f2..29adff59c479 100644
--- a/Documentation/devicetree/bindings/pwm/pwm-mediatek.txt
+++ b/Documentation/devicetree/bindings/pwm/pwm-mediatek.txt
@@ -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";
--
2.17.1

2020-03-04 16:57:30

by Rob Herring (Arm)

[permalink] [raw]
Subject: Re: [v3,1/2] dt-bindings: pwm: Update bindings for MT7629 SoC

On Wed, 4 Mar 2020 19:06:12 +0800, Sam Shih wrote:
> 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

2020-03-04 18:04:19

by Matthias Brugger

[permalink] [raw]
Subject: Re: [v3,2/2] arm: dts: mediatek: add mt7629 pwm support



On 04/03/2020 12:06, Sam Shih wrote:
> 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

> ---
> 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(+)
>
> diff --git a/arch/arm/boot/dts/mt7629.dtsi b/arch/arm/boot/dts/mt7629.dtsi
> index 867b88103b9d..a2658fbadeca 100644
> --- a/arch/arm/boot/dts/mt7629.dtsi
> +++ b/arch/arm/boot/dts/mt7629.dtsi
> @@ -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";
>