* [PATCH 1/2] dt-bindings: pwm: add MT8365 SoC binding @ 2022-05-30 20:21 Fabien Parent 2022-05-30 20:21 ` [PATCH 2/2] pwm: mediatek: add MT8365 support Fabien Parent 2022-05-30 20:31 ` [PATCH 1/2] dt-bindings: pwm: add MT8365 SoC binding Uwe Kleine-König 0 siblings, 2 replies; 4+ messages in thread From: Fabien Parent @ 2022-05-30 20:21 UTC (permalink / raw) To: Thierry Reding, Uwe Kleine-König, Lee Jones, Rob Herring, Krzysztof Kozlowski, Matthias Brugger Cc: Fabien Parent, linux-pwm, devicetree, linux-kernel, linux-arm-kernel, linux-mediatek Add binding documentation for the MT8365 SoC. Signed-off-by: Fabien Parent <fparent@baylibre.com> --- Documentation/devicetree/bindings/pwm/pwm-mediatek.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/pwm/pwm-mediatek.txt b/Documentation/devicetree/bindings/pwm/pwm-mediatek.txt index 25ed214473d7..ac5c58bbb22d 100644 --- a/Documentation/devicetree/bindings/pwm/pwm-mediatek.txt +++ b/Documentation/devicetree/bindings/pwm/pwm-mediatek.txt @@ -8,6 +8,7 @@ Required properties: - "mediatek,mt7628-pwm": found on mt7628 SoC. - "mediatek,mt7629-pwm": found on mt7629 SoC. - "mediatek,mt8183-pwm": found on mt8183 SoC. + - "mediatek,mt8365-pwm": found on mt8365 SoC. - "mediatek,mt8516-pwm": found on mt8516 SoC. - reg: physical base address and length of the controller's registers. - #pwm-cells: must be 2. See pwm.yaml in this directory for a description of @@ -17,6 +18,7 @@ Required properties: has no clocks - "top": the top clock generator - "main": clock used by the PWM core + - "pwm1-3": the five per PWM clocks for mt8365 - "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 -- 2.36.1 _______________________________________________ Linux-mediatek mailing list Linux-mediatek@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-mediatek ^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] pwm: mediatek: add MT8365 support 2022-05-30 20:21 [PATCH 1/2] dt-bindings: pwm: add MT8365 SoC binding Fabien Parent @ 2022-05-30 20:21 ` Fabien Parent 2022-05-30 20:31 ` [PATCH 1/2] dt-bindings: pwm: add MT8365 SoC binding Uwe Kleine-König 1 sibling, 0 replies; 4+ messages in thread From: Fabien Parent @ 2022-05-30 20:21 UTC (permalink / raw) To: Thierry Reding, Uwe Kleine-König, Lee Jones, Matthias Brugger Cc: Fabien Parent, linux-pwm, linux-kernel, linux-arm-kernel, linux-mediatek Add support for PWM on MT8365 Signed-off-by: Fabien Parent <fparent@baylibre.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..fd586bc51c5f 100644 --- a/drivers/pwm/pwm-mediatek.c +++ b/drivers/pwm/pwm-mediatek.c @@ -294,6 +294,12 @@ static const struct pwm_mediatek_of_data mt8183_pwm_data = { .has_ck_26m_sel = true, }; +static const struct pwm_mediatek_of_data mt8365_pwm_data = { + .num_pwms = 3, + .pwm45_fixup = false, + .has_ck_26m_sel = true, +}; + static const struct pwm_mediatek_of_data mt8516_pwm_data = { .num_pwms = 5, .pwm45_fixup = false, @@ -307,6 +313,7 @@ static const struct of_device_id pwm_mediatek_of_match[] = { { .compatible = "mediatek,mt7628-pwm", .data = &mt7628_pwm_data }, { .compatible = "mediatek,mt7629-pwm", .data = &mt7629_pwm_data }, { .compatible = "mediatek,mt8183-pwm", .data = &mt8183_pwm_data }, + { .compatible = "mediatek,mt8365-pwm", .data = &mt8365_pwm_data }, { .compatible = "mediatek,mt8516-pwm", .data = &mt8516_pwm_data }, { }, }; -- 2.36.1 _______________________________________________ Linux-mediatek mailing list Linux-mediatek@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-mediatek ^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/2] dt-bindings: pwm: add MT8365 SoC binding 2022-05-30 20:21 [PATCH 1/2] dt-bindings: pwm: add MT8365 SoC binding Fabien Parent 2022-05-30 20:21 ` [PATCH 2/2] pwm: mediatek: add MT8365 support Fabien Parent @ 2022-05-30 20:31 ` Uwe Kleine-König 2022-05-30 20:51 ` Fabien Parent 1 sibling, 1 reply; 4+ messages in thread From: Uwe Kleine-König @ 2022-05-30 20:31 UTC (permalink / raw) To: Fabien Parent Cc: Thierry Reding, Lee Jones, Rob Herring, Krzysztof Kozlowski, Matthias Brugger, linux-pwm, devicetree, linux-kernel, linux-arm-kernel, linux-mediatek [-- Attachment #1.1: Type: text/plain, Size: 1499 bytes --] On Mon, May 30, 2022 at 10:21:34PM +0200, Fabien Parent wrote: > Add binding documentation for the MT8365 SoC. > > Signed-off-by: Fabien Parent <fparent@baylibre.com> > --- > Documentation/devicetree/bindings/pwm/pwm-mediatek.txt | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/Documentation/devicetree/bindings/pwm/pwm-mediatek.txt b/Documentation/devicetree/bindings/pwm/pwm-mediatek.txt > index 25ed214473d7..ac5c58bbb22d 100644 > --- a/Documentation/devicetree/bindings/pwm/pwm-mediatek.txt > +++ b/Documentation/devicetree/bindings/pwm/pwm-mediatek.txt > @@ -8,6 +8,7 @@ Required properties: > - "mediatek,mt7628-pwm": found on mt7628 SoC. > - "mediatek,mt7629-pwm": found on mt7629 SoC. > - "mediatek,mt8183-pwm": found on mt8183 SoC. > + - "mediatek,mt8365-pwm": found on mt8365 SoC. > - "mediatek,mt8516-pwm": found on mt8516 SoC. > - reg: physical base address and length of the controller's registers. > - #pwm-cells: must be 2. See pwm.yaml in this directory for a description of > @@ -17,6 +18,7 @@ Required properties: > has no clocks > - "top": the top clock generator > - "main": clock used by the PWM core > + - "pwm1-3": the five per PWM clocks for mt8365 I think you either want s/3/5/ or s/five/three/ here?! Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-König | Industrial Linux Solutions | https://www.pengutronix.de/ | [-- Attachment #1.2: signature.asc --] [-- Type: application/pgp-signature, Size: 488 bytes --] [-- Attachment #2: Type: text/plain, Size: 170 bytes --] _______________________________________________ Linux-mediatek mailing list Linux-mediatek@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-mediatek ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/2] dt-bindings: pwm: add MT8365 SoC binding 2022-05-30 20:31 ` [PATCH 1/2] dt-bindings: pwm: add MT8365 SoC binding Uwe Kleine-König @ 2022-05-30 20:51 ` Fabien Parent 0 siblings, 0 replies; 4+ messages in thread From: Fabien Parent @ 2022-05-30 20:51 UTC (permalink / raw) To: Uwe Kleine-König Cc: Thierry Reding, Lee Jones, Rob Herring, Krzysztof Kozlowski, Matthias Brugger, linux-pwm, devicetree, linux-kernel, linux-arm-kernel, linux-mediatek [-- Attachment #1.1: Type: text/plain, Size: 1679 bytes --] On Mon, May 30, 2022 at 10:31:01PM +0200, Uwe Kleine-König wrote: > On Mon, May 30, 2022 at 10:21:34PM +0200, Fabien Parent wrote: > > Add binding documentation for the MT8365 SoC. > > > > Signed-off-by: Fabien Parent <fparent@baylibre.com> > > --- > > Documentation/devicetree/bindings/pwm/pwm-mediatek.txt | 2 ++ > > 1 file changed, 2 insertions(+) > > > > diff --git a/Documentation/devicetree/bindings/pwm/pwm-mediatek.txt b/Documentation/devicetree/bindings/pwm/pwm-mediatek.txt > > index 25ed214473d7..ac5c58bbb22d 100644 > > --- a/Documentation/devicetree/bindings/pwm/pwm-mediatek.txt > > +++ b/Documentation/devicetree/bindings/pwm/pwm-mediatek.txt > > @@ -8,6 +8,7 @@ Required properties: > > - "mediatek,mt7628-pwm": found on mt7628 SoC. > > - "mediatek,mt7629-pwm": found on mt7629 SoC. > > - "mediatek,mt8183-pwm": found on mt8183 SoC. > > + - "mediatek,mt8365-pwm": found on mt8365 SoC. > > - "mediatek,mt8516-pwm": found on mt8516 SoC. > > - reg: physical base address and length of the controller's registers. > > - #pwm-cells: must be 2. See pwm.yaml in this directory for a description of > > @@ -17,6 +18,7 @@ Required properties: > > has no clocks > > - "top": the top clock generator > > - "main": clock used by the PWM core > > + - "pwm1-3": the five per PWM clocks for mt8365 > > I think you either want s/3/5/ or s/five/three/ here?! Thanks. Fixed in v2. BR, Fabien > > Best regards > Uwe > > -- > Pengutronix e.K. | Uwe Kleine-König | > Industrial Linux Solutions | https://www.pengutronix.de/ | [-- Attachment #1.2: signature.asc --] [-- Type: application/pgp-signature, Size: 833 bytes --] [-- Attachment #2: Type: text/plain, Size: 170 bytes --] _______________________________________________ Linux-mediatek mailing list Linux-mediatek@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-mediatek ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-05-30 20:51 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2022-05-30 20:21 [PATCH 1/2] dt-bindings: pwm: add MT8365 SoC binding Fabien Parent 2022-05-30 20:21 ` [PATCH 2/2] pwm: mediatek: add MT8365 support Fabien Parent 2022-05-30 20:31 ` [PATCH 1/2] dt-bindings: pwm: add MT8365 SoC binding Uwe Kleine-König 2022-05-30 20:51 ` Fabien Parent
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox