devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [v3,0/2] Add mt7629 pwm support
@ 2020-03-04 11:06 Sam Shih
  2020-03-04 11:06 ` [v3,1/2] dt-bindings: pwm: Update bindings for MT7629 SoC Sam Shih
  2020-03-04 11:06 ` [v3,2/2] arm: dts: mediatek: add mt7629 pwm support Sam Shih
  0 siblings, 2 replies; 5+ messages in thread
From: Sam Shih @ 2020-03-04 11:06 UTC (permalink / raw)
  To: Matthias Brugger, Rob Herring, Mark Rutland
  Cc: devicetree, linux-arm-kernel, linux-kernel, linux-mediatek,
	Sam Shih

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [v3,1/2] dt-bindings: pwm: Update bindings for MT7629 SoC
  2020-03-04 11:06 [v3,0/2] Add mt7629 pwm support Sam Shih
@ 2020-03-04 11:06 ` Sam Shih
  2020-03-04 16:57   ` Rob Herring
  2020-03-04 11:06 ` [v3,2/2] arm: dts: mediatek: add mt7629 pwm support Sam Shih
  1 sibling, 1 reply; 5+ messages in thread
From: Sam Shih @ 2020-03-04 11:06 UTC (permalink / raw)
  To: Matthias Brugger, Rob Herring, Mark Rutland
  Cc: devicetree, linux-arm-kernel, linux-kernel, linux-mediatek,
	Sam Shih

This updates bindings for MT7629 pwm controller.

Signed-off-by: Sam Shih <sam.shih@mediatek.com>
---
 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

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [v3,2/2] arm: dts: mediatek: add mt7629 pwm support
  2020-03-04 11:06 [v3,0/2] Add mt7629 pwm support Sam Shih
  2020-03-04 11:06 ` [v3,1/2] dt-bindings: pwm: Update bindings for MT7629 SoC Sam Shih
@ 2020-03-04 11:06 ` Sam Shih
  2020-03-04 18:03   ` Matthias Brugger
  1 sibling, 1 reply; 5+ messages in thread
From: Sam Shih @ 2020-03-04 11:06 UTC (permalink / raw)
  To: Matthias Brugger, Rob Herring, Mark Rutland
  Cc: devicetree, linux-arm-kernel, linux-kernel, linux-mediatek,
	Sam Shih

This adds pwm support for MT7629.

Signed-off-by: Sam Shih <sam.shih@mediatek.com>
---
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

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [v3,1/2] dt-bindings: pwm: Update bindings for MT7629 SoC
  2020-03-04 11:06 ` [v3,1/2] dt-bindings: pwm: Update bindings for MT7629 SoC Sam Shih
@ 2020-03-04 16:57   ` Rob Herring
  0 siblings, 0 replies; 5+ messages in thread
From: Rob Herring @ 2020-03-04 16:57 UTC (permalink / raw)
  To: Sam Shih
  Cc: Matthias Brugger, Rob Herring, Mark Rutland, devicetree,
	linux-arm-kernel, linux-kernel, linux-mediatek, Sam Shih

On Wed, 4 Mar 2020 19:06:12 +0800, Sam Shih wrote:
> This updates bindings for MT7629 pwm controller.
> 
> Signed-off-by: Sam Shih <sam.shih@mediatek.com>
> ---
>  Documentation/devicetree/bindings/pwm/pwm-mediatek.txt | 5 +++++
>  1 file changed, 5 insertions(+)
> 

Applied, thanks.

Rob

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [v3,2/2] arm: dts: mediatek: add mt7629 pwm support
  2020-03-04 11:06 ` [v3,2/2] arm: dts: mediatek: add mt7629 pwm support Sam Shih
@ 2020-03-04 18:03   ` Matthias Brugger
  0 siblings, 0 replies; 5+ messages in thread
From: Matthias Brugger @ 2020-03-04 18:03 UTC (permalink / raw)
  To: Sam Shih, Rob Herring, Mark Rutland
  Cc: devicetree, linux-arm-kernel, linux-kernel, linux-mediatek



On 04/03/2020 12:06, Sam Shih wrote:
> This adds pwm support for MT7629.
> 
> Signed-off-by: Sam Shih <sam.shih@mediatek.com>

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";
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-03-04 18:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-04 11:06 [v3,0/2] Add mt7629 pwm support Sam Shih
2020-03-04 11:06 ` [v3,1/2] dt-bindings: pwm: Update bindings for MT7629 SoC Sam Shih
2020-03-04 16:57   ` Rob Herring
2020-03-04 11:06 ` [v3,2/2] arm: dts: mediatek: add mt7629 pwm support Sam Shih
2020-03-04 18:03   ` Matthias Brugger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).