linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] MediaTek Helio X10 MT6795 - PWM driver
@ 2022-05-03 10:54 AngeloGioacchino Del Regno
  2022-05-03 10:54 ` [PATCH 1/2] pwm: pwm-mediatek: Add support for MediaTek Helio X10 MT6795 AngeloGioacchino Del Regno
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: AngeloGioacchino Del Regno @ 2022-05-03 10:54 UTC (permalink / raw)
  To: thierry.reding
  Cc: u.kleine-koenig, lee.jones, robh+dt, krzysztof.kozlowski+dt,
	matthias.bgg, linux-pwm, devicetree, linux-kernel,
	linux-arm-kernel, linux-mediatek, kernel, nfraprado,
	AngeloGioacchino Del Regno

In an effort to give some love to the apparently forgotten MT6795 SoC,
I am upstreaming more components that are necessary to support platforms
powered by this one apart from a simple boot to serial console.

This series introduces support for the PWMs found in Helio X10.

Tested on a Sony Xperia M5 (codename "Holly") smartphone.

AngeloGioacchino Del Regno (2):
  pwm: pwm-mediatek: Add support for MediaTek Helio X10 MT6795
  dt-bindings: pwm: pwm-mediatek: Add documentation for MT6795 SoC

 Documentation/devicetree/bindings/pwm/pwm-mediatek.txt | 1 +
 drivers/pwm/pwm-mediatek.c                             | 7 +++++++
 2 files changed, 8 insertions(+)

-- 
2.35.1


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

* [PATCH 1/2] pwm: pwm-mediatek: Add support for MediaTek Helio X10 MT6795
  2022-05-03 10:54 [PATCH 0/2] MediaTek Helio X10 MT6795 - PWM driver AngeloGioacchino Del Regno
@ 2022-05-03 10:54 ` AngeloGioacchino Del Regno
  2022-05-10 20:21   ` Uwe Kleine-König
  2022-05-03 10:54 ` [PATCH 2/2] dt-bindings: pwm: pwm-mediatek: Add documentation for MT6795 SoC AngeloGioacchino Del Regno
  2022-05-20 14:22 ` [PATCH 0/2] MediaTek Helio X10 MT6795 - PWM driver Thierry Reding
  2 siblings, 1 reply; 6+ messages in thread
From: AngeloGioacchino Del Regno @ 2022-05-03 10:54 UTC (permalink / raw)
  To: thierry.reding
  Cc: u.kleine-koenig, lee.jones, robh+dt, krzysztof.kozlowski+dt,
	matthias.bgg, linux-pwm, devicetree, linux-kernel,
	linux-arm-kernel, linux-mediatek, kernel, nfraprado,
	AngeloGioacchino Del Regno

The MediaTek Helio X10 MT6795 SoC has 7 PWMs: add a compatible string
to use the right match data.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
---
 drivers/pwm/pwm-mediatek.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/pwm/pwm-mediatek.c b/drivers/pwm/pwm-mediatek.c
index 568b13a48717..28c2d0e5a8ac 100644
--- a/drivers/pwm/pwm-mediatek.c
+++ b/drivers/pwm/pwm-mediatek.c
@@ -264,6 +264,12 @@ static const struct pwm_mediatek_of_data mt2712_pwm_data = {
 	.has_ck_26m_sel = false,
 };
 
+static const struct pwm_mediatek_of_data mt6795_pwm_data = {
+	.num_pwms = 7,
+	.pwm45_fixup = false,
+	.has_ck_26m_sel = false,
+};
+
 static const struct pwm_mediatek_of_data mt7622_pwm_data = {
 	.num_pwms = 6,
 	.pwm45_fixup = false,
@@ -302,6 +308,7 @@ static const struct pwm_mediatek_of_data mt8516_pwm_data = {
 
 static const struct of_device_id pwm_mediatek_of_match[] = {
 	{ .compatible = "mediatek,mt2712-pwm", .data = &mt2712_pwm_data },
+	{ .compatible = "mediatek,mt6795-pwm", .data = &mt6795_pwm_data },
 	{ .compatible = "mediatek,mt7622-pwm", .data = &mt7622_pwm_data },
 	{ .compatible = "mediatek,mt7623-pwm", .data = &mt7623_pwm_data },
 	{ .compatible = "mediatek,mt7628-pwm", .data = &mt7628_pwm_data },
-- 
2.35.1


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

* [PATCH 2/2] dt-bindings: pwm: pwm-mediatek: Add documentation for MT6795 SoC
  2022-05-03 10:54 [PATCH 0/2] MediaTek Helio X10 MT6795 - PWM driver AngeloGioacchino Del Regno
  2022-05-03 10:54 ` [PATCH 1/2] pwm: pwm-mediatek: Add support for MediaTek Helio X10 MT6795 AngeloGioacchino Del Regno
@ 2022-05-03 10:54 ` AngeloGioacchino Del Regno
  2022-05-03 12:37   ` Krzysztof Kozlowski
  2022-05-20 14:22 ` [PATCH 0/2] MediaTek Helio X10 MT6795 - PWM driver Thierry Reding
  2 siblings, 1 reply; 6+ messages in thread
From: AngeloGioacchino Del Regno @ 2022-05-03 10:54 UTC (permalink / raw)
  To: thierry.reding
  Cc: u.kleine-koenig, lee.jones, robh+dt, krzysztof.kozlowski+dt,
	matthias.bgg, linux-pwm, devicetree, linux-kernel,
	linux-arm-kernel, linux-mediatek, kernel, nfraprado,
	AngeloGioacchino Del Regno

Add binding documentation for the MT6795 Helio X10 SoC.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
---
 Documentation/devicetree/bindings/pwm/pwm-mediatek.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/pwm/pwm-mediatek.txt b/Documentation/devicetree/bindings/pwm/pwm-mediatek.txt
index 25ed214473d7..033d1fc0f405 100644
--- a/Documentation/devicetree/bindings/pwm/pwm-mediatek.txt
+++ b/Documentation/devicetree/bindings/pwm/pwm-mediatek.txt
@@ -3,6 +3,7 @@ MediaTek PWM controller
 Required properties:
  - compatible: should be "mediatek,<name>-pwm":
    - "mediatek,mt2712-pwm": found on mt2712 SoC.
+   - "mediatek,mt6795-pwm": found on mt6795 SoC.
    - "mediatek,mt7622-pwm": found on mt7622 SoC.
    - "mediatek,mt7623-pwm": found on mt7623 SoC.
    - "mediatek,mt7628-pwm": found on mt7628 SoC.
-- 
2.35.1


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

* Re: [PATCH 2/2] dt-bindings: pwm: pwm-mediatek: Add documentation for MT6795 SoC
  2022-05-03 10:54 ` [PATCH 2/2] dt-bindings: pwm: pwm-mediatek: Add documentation for MT6795 SoC AngeloGioacchino Del Regno
@ 2022-05-03 12:37   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 6+ messages in thread
From: Krzysztof Kozlowski @ 2022-05-03 12:37 UTC (permalink / raw)
  To: AngeloGioacchino Del Regno, thierry.reding
  Cc: u.kleine-koenig, lee.jones, robh+dt, krzysztof.kozlowski+dt,
	matthias.bgg, linux-pwm, devicetree, linux-kernel,
	linux-arm-kernel, linux-mediatek, kernel, nfraprado

On 03/05/2022 12:54, AngeloGioacchino Del Regno wrote:
> Add binding documentation for the MT6795 Helio X10 SoC.
> 
> Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>


Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>


Best regards,
Krzysztof

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

* Re: [PATCH 1/2] pwm: pwm-mediatek: Add support for MediaTek Helio X10 MT6795
  2022-05-03 10:54 ` [PATCH 1/2] pwm: pwm-mediatek: Add support for MediaTek Helio X10 MT6795 AngeloGioacchino Del Regno
@ 2022-05-10 20:21   ` Uwe Kleine-König
  0 siblings, 0 replies; 6+ messages in thread
From: Uwe Kleine-König @ 2022-05-10 20:21 UTC (permalink / raw)
  To: AngeloGioacchino Del Regno
  Cc: thierry.reding, lee.jones, robh+dt, krzysztof.kozlowski+dt,
	matthias.bgg, linux-pwm, devicetree, linux-kernel,
	linux-arm-kernel, linux-mediatek, kernel, nfraprado

[-- Attachment #1: Type: text/plain, Size: 524 bytes --]

On Tue, May 03, 2022 at 12:54:04PM +0200, AngeloGioacchino Del Regno wrote:
> The MediaTek Helio X10 MT6795 SoC has 7 PWMs: add a compatible string
> to use the right match data.
> 
> Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>

LGTM

Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>

Best regards
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | https://www.pengutronix.de/ |

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

* Re: [PATCH 0/2] MediaTek Helio X10 MT6795 - PWM driver
  2022-05-03 10:54 [PATCH 0/2] MediaTek Helio X10 MT6795 - PWM driver AngeloGioacchino Del Regno
  2022-05-03 10:54 ` [PATCH 1/2] pwm: pwm-mediatek: Add support for MediaTek Helio X10 MT6795 AngeloGioacchino Del Regno
  2022-05-03 10:54 ` [PATCH 2/2] dt-bindings: pwm: pwm-mediatek: Add documentation for MT6795 SoC AngeloGioacchino Del Regno
@ 2022-05-20 14:22 ` Thierry Reding
  2 siblings, 0 replies; 6+ messages in thread
From: Thierry Reding @ 2022-05-20 14:22 UTC (permalink / raw)
  To: AngeloGioacchino Del Regno
  Cc: u.kleine-koenig, lee.jones, robh+dt, krzysztof.kozlowski+dt,
	matthias.bgg, linux-pwm, devicetree, linux-kernel,
	linux-arm-kernel, linux-mediatek, kernel, nfraprado

[-- Attachment #1: Type: text/plain, Size: 813 bytes --]

On Tue, May 03, 2022 at 12:54:03PM +0200, AngeloGioacchino Del Regno wrote:
> In an effort to give some love to the apparently forgotten MT6795 SoC,
> I am upstreaming more components that are necessary to support platforms
> powered by this one apart from a simple boot to serial console.
> 
> This series introduces support for the PWMs found in Helio X10.
> 
> Tested on a Sony Xperia M5 (codename "Holly") smartphone.
> 
> AngeloGioacchino Del Regno (2):
>   pwm: pwm-mediatek: Add support for MediaTek Helio X10 MT6795
>   dt-bindings: pwm: pwm-mediatek: Add documentation for MT6795 SoC
> 
>  Documentation/devicetree/bindings/pwm/pwm-mediatek.txt | 1 +
>  drivers/pwm/pwm-mediatek.c                             | 7 +++++++
>  2 files changed, 8 insertions(+)

Applied, thanks.

Thierry

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

end of thread, other threads:[~2022-05-20 14:22 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-03 10:54 [PATCH 0/2] MediaTek Helio X10 MT6795 - PWM driver AngeloGioacchino Del Regno
2022-05-03 10:54 ` [PATCH 1/2] pwm: pwm-mediatek: Add support for MediaTek Helio X10 MT6795 AngeloGioacchino Del Regno
2022-05-10 20:21   ` Uwe Kleine-König
2022-05-03 10:54 ` [PATCH 2/2] dt-bindings: pwm: pwm-mediatek: Add documentation for MT6795 SoC AngeloGioacchino Del Regno
2022-05-03 12:37   ` Krzysztof Kozlowski
2022-05-20 14:22 ` [PATCH 0/2] MediaTek Helio X10 MT6795 - PWM driver Thierry Reding

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).