Subject: [PATCH 0/2] MediaTek Helio X10 MT6795 - PWM driver

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


Subject: [PATCH 1/2] pwm: pwm-mediatek: Add support for MediaTek Helio X10 MT6795

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 <[email protected]>
---
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

2022-05-11 02:48:22

by Uwe Kleine-König

[permalink] [raw]
Subject: Re: [PATCH 1/2] pwm: pwm-mediatek: Add support for MediaTek Helio X10 MT6795

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 <[email protected]>

LGTM

Acked-by: Uwe Kleine-K?nig <[email protected]>

Best regards
Uwe

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


Attachments:
(No filename) (524.00 B)
signature.asc (499.00 B)
Download all attachments

2022-05-23 05:51:20

by Thierry Reding

[permalink] [raw]
Subject: Re: [PATCH 0/2] MediaTek Helio X10 MT6795 - PWM driver

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


Attachments:
(No filename) (813.00 B)
signature.asc (849.00 B)
Download all attachments