Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1673260 > unrolled thread

[PATCH v2 0/6] mediatek: pwm driver add MT2712/MT7622 support

Started byZhi Mao <zhi.mao@mediatek.com>
First post2017-06-23 07:20 +0200
Last post2017-06-23 07:50 +0200
Articles 5 — 3 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH v2 0/6] mediatek: pwm driver add MT2712/MT7622 support  Zhi Mao <zhi.mao@mediatek.com> - 2017-06-23 07:20 +0200
    [PATCH v2 4/6] pwm: bindings: add MT2712/MT7622 information Zhi Mao <zhi.mao@mediatek.com> - 2017-06-23 07:20 +0200
      Re: [PATCH v2 4/6] pwm: bindings: add MT2712/MT7622 information Rob Herring <robh@kernel.org> - 2017-06-26 21:10 +0200
    [PATCH v2 1/6] pwm: kconfig: modify mediatek information Zhi Mao <zhi.mao@mediatek.com> - 2017-06-23 07:20 +0200
    Re: [PATCH v2 0/6] mediatek: pwm driver add MT2712/MT7622 support John Crispin <john@phrozen.org> - 2017-06-23 07:50 +0200

#1673260 — [PATCH v2 0/6] mediatek: pwm driver add MT2712/MT7622 support

FromZhi Mao <zhi.mao@mediatek.com>
Date2017-06-23 07:20 +0200
Subject[PATCH v2 0/6] mediatek: pwm driver add MT2712/MT7622 support
Message-ID<tVp0Z-6lw-7@gated-at.bofh.it>
change in v2:
1. add error check for enable colock control flow
2. use "goto err_clk(main/top)" coding style, for preparing clk error case
3. remove comments inline /*===*/
4. move "PWM_CLK_DIV_MAX" modification to its own patch
5. move pwm source clock selection to its own patch

Zhi Mao (6):
  pwm: kconfig: modify mediatek information
  pwm: mediatek: fix pwm source clock selection
  pwm: mediatek: fix clock control issue
  pwm: bindings: add MT2712/MT7622 information
  pwm: mediatek: add PWM_CLK_DIV_MAX
  pwm: mediatek: add MT2712/MT7622 support

 .../devicetree/bindings/pwm/pwm-mediatek.txt       |    6 +-
 drivers/pwm/Kconfig                                |    2 +-
 drivers/pwm/pwm-mediatek.c                         |  132 ++++++++++++++------
 3 files changed, 103 insertions(+), 37 deletions(-)

[toc] | [next] | [standalone]


#1673261 — [PATCH v2 4/6] pwm: bindings: add MT2712/MT7622 information

FromZhi Mao <zhi.mao@mediatek.com>
Date2017-06-23 07:20 +0200
Subject[PATCH v2 4/6] pwm: bindings: add MT2712/MT7622 information
Message-ID<tVpaG-6p7-15@gated-at.bofh.it>
In reply to#1673260
add MT2712/MT7622 pwm information

Signed-off-by: Zhi Mao <zhi.mao@mediatek.com>
---
 .../devicetree/bindings/pwm/pwm-mediatek.txt       |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/pwm/pwm-mediatek.txt b/Documentation/devicetree/bindings/pwm/pwm-mediatek.txt
index 54c59b0..ef8bd3c 100644
--- a/Documentation/devicetree/bindings/pwm/pwm-mediatek.txt
+++ b/Documentation/devicetree/bindings/pwm/pwm-mediatek.txt
@@ -2,6 +2,8 @@ MediaTek PWM controller
 
 Required properties:
  - compatible: should be "mediatek,<name>-pwm":
+   - "mediatek,mt2712-pwm": found on mt2712 SoC.
+   - "mediatek,mt7622-pwm": found on mt7622 SoC.
    - "mediatek,mt7623-pwm": found on mt7623 SoC.
  - reg: physical base address and length of the controller's registers.
  - #pwm-cells: must be 2. See pwm.txt in this directory for a description of
@@ -10,7 +12,9 @@ Required properties:
  - clock-names: must contain the following:
    - "top": the top clock generator
    - "main": clock used by the PWM core
-   - "pwm1-5": the five per PWM clocks
+   - "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
  - 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.
-- 
1.7.9.5

[toc] | [prev] | [next] | [standalone]


#1675031 — Re: [PATCH v2 4/6] pwm: bindings: add MT2712/MT7622 information

FromRob Herring <robh@kernel.org>
Date2017-06-26 21:10 +0200
SubjectRe: [PATCH v2 4/6] pwm: bindings: add MT2712/MT7622 information
Message-ID<tWHyx-6h8-1@gated-at.bofh.it>
In reply to#1673261
On Fri, Jun 23, 2017 at 01:08:23PM +0800, Zhi Mao wrote:
> add MT2712/MT7622 pwm information
> 
> Signed-off-by: Zhi Mao <zhi.mao@mediatek.com>
> ---
>  .../devicetree/bindings/pwm/pwm-mediatek.txt       |    6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)

Acked-by: Rob Herring <robh@kernel.org>

[toc] | [prev] | [next] | [standalone]


#1673263 — [PATCH v2 1/6] pwm: kconfig: modify mediatek information

FromZhi Mao <zhi.mao@mediatek.com>
Date2017-06-23 07:20 +0200
Subject[PATCH v2 1/6] pwm: kconfig: modify mediatek information
Message-ID<tVpaG-6p7-19@gated-at.bofh.it>
In reply to#1673260
modify mediatek information

Signed-off-by: Zhi Mao <zhi.mao@mediatek.com>
---
 drivers/pwm/Kconfig |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pwm/Kconfig b/drivers/pwm/Kconfig
index 313c107..45cdf2a 100644
--- a/drivers/pwm/Kconfig
+++ b/drivers/pwm/Kconfig
@@ -300,7 +300,7 @@ config PWM_MEDIATEK
 	  Generic PWM framework driver for Mediatek ARM SoC.
 
 	  To compile this driver as a module, choose M here: the module
-	  will be called pwm-mxs.
+	  will be called pwm-mediatek.
 
 config PWM_MXS
 	tristate "Freescale MXS PWM support"
-- 
1.7.9.5

[toc] | [prev] | [next] | [standalone]


#1673270

FromJohn Crispin <john@phrozen.org>
Date2017-06-23 07:50 +0200
Message-ID<tVpDH-6AF-11@gated-at.bofh.it>
In reply to#1673260

On 23/06/17 07:08, Zhi Mao wrote:
> change in v2:
> 1. add error check for enable colock control flow
> 2. use "goto err_clk(main/top)" coding style, for preparing clk error case
> 3. remove comments inline /*===*/
> 4. move "PWM_CLK_DIV_MAX" modification to its own patch
> 5. move pwm source clock selection to its own patch

Hi,
thanks for updating the series, i will give it a quick test on MT7623 today
     John

> Zhi Mao (6):
>    pwm: kconfig: modify mediatek information
>    pwm: mediatek: fix pwm source clock selection
>    pwm: mediatek: fix clock control issue
>    pwm: bindings: add MT2712/MT7622 information
>    pwm: mediatek: add PWM_CLK_DIV_MAX
>    pwm: mediatek: add MT2712/MT7622 support
>
>   .../devicetree/bindings/pwm/pwm-mediatek.txt       |    6 +-
>   drivers/pwm/Kconfig                                |    2 +-
>   drivers/pwm/pwm-mediatek.c                         |  132 ++++++++++++++------
>   3 files changed, 103 insertions(+), 37 deletions(-)
>
>
> _______________________________________________
> Linux-mediatek mailing list
> Linux-mediatek@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-mediatek

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web