[v2] dt-bindings: pwm: mediatek: Add compatible for MT7986
Commit Message
Add new compatible string for MT7986 PWM and list compatible units for
existing entries. Also make sure the number of pwm1-X clocks is listed
for all supported units.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
---
.../devicetree/bindings/pwm/pwm-mediatek.txt | 20 +++++++++++--------
1 file changed, 12 insertions(+), 8 deletions(-)
Comments
On Mon, Oct 31, 2022 at 07:23:28PM +0000, Daniel Golle wrote:
> Add new compatible string for MT7986 PWM and list compatible units for
> existing entries. Also make sure the number of pwm1-X clocks is listed
> for all supported units.
>
> Signed-off-by: Daniel Golle <daniel@makrotopia.org>
> ---
> .../devicetree/bindings/pwm/pwm-mediatek.txt | 20 +++++++++++--------
> 1 file changed, 12 insertions(+), 8 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/pwm/pwm-mediatek.txt b/Documentation/devicetree/bindings/pwm/pwm-mediatek.txt
> index 554c96b6d0c3e0..952a338e06e7c5 100644
> --- a/Documentation/devicetree/bindings/pwm/pwm-mediatek.txt
> +++ b/Documentation/devicetree/bindings/pwm/pwm-mediatek.txt
> @@ -2,14 +2,15 @@ MediaTek PWM controller
>
> Required properties:
> - compatible: should be "mediatek,<name>-pwm":
> - - "mediatek,mt2712-pwm": found on mt2712 SoC.
> + - "mediatek,mt2712-pwm", "mediatek,mt6795-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,mt7622-pwm", "mediatek,mt8195-pwm", "mediatek,mt8183-pwm", "mediatek,mt7986-pwm": found on mt7622 SoC.
> + - "mediatek,mt7623-pwm", "mediatek,mt7628-pwm": found on mt7623 SoC.
> - "mediatek,mt7628-pwm": found on mt7628 SoC.
> - "mediatek,mt7629-pwm": found on mt7629 SoC.
> - - "mediatek,mt8183-pwm": found on mt8183 SoC.
> - - "mediatek,mt8195-pwm", "mediatek,mt8183-pwm": found on mt8195 SoC.
> + - "mediatek,mt7986-pwm": found on mt7986 SoC.
> + - "mediatek,mt8183-pwm", "mediatek,mt7986-pwm": found on mt8183 SoC.
> + - "mediatek,mt8195-pwm", "mediatek,mt8183-pwm", "mediatek,mt7986-pwm": found on mt8195 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.
> @@ -20,11 +21,14 @@ Required properties:
> has no clocks
> - "top": the top clock generator
> - "main": clock used by the PWM core
> + - "pwm1" : the PWM1 clock for mt7629
> + - "pwm1-2": the two per PWM clocks for mt7986
> - "pwm1-3": the three per PWM clocks for mt8365
> - - "pwm1-8": the eight per PWM clocks for mt2712
> + - "pwm1-4": the four per PWM clocks for mt7628 or mt8183
> + - "pwm1-5": the five per PWM clocks for mt7623 or mt8516
> - "pwm1-6": the six per PWM clocks for mt7622
> - - "pwm1-5": the five per PWM clocks for mt7623
> - - "pwm1" : the PWM1 clock for mt7629
> + - "pwm1-7": the seven per PWM clocks for mt6795
> + - "pwm1-8": the eight per PWM clocks for mt2712
> - 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.
I have no concerns. However converting that to yaml would be a nice
thing. Also I didn't notice an effort to adapt the dts files
accordingly. But that might be because I wasn't on Cc: for these (or I
might have missed them despite the Cc: :-)
I'll mark this patch as handled-elsewhere in the PWM patchwork.
Best regards
Uwe
On 31/10/2022 20:23, Daniel Golle wrote:
> Add new compatible string for MT7986 PWM and list compatible units for
> existing entries. Also make sure the number of pwm1-X clocks is listed
> for all supported units.
>
> Signed-off-by: Daniel Golle <daniel@makrotopia.org>
> ---
> .../devicetree/bindings/pwm/pwm-mediatek.txt | 20 +++++++++++--------
> 1 file changed, 12 insertions(+), 8 deletions(-)
>
Please use scripts/get_maintainers.pl to get a list of necessary people
and lists to CC. It might happen, that command when run on an older
kernel, gives you outdated entries. Therefore please be sure you base
your patches on recent Linux kernel.
You managed to miss all folks from DT :/
Best regards,
Krzysztof
@@ -2,14 +2,15 @@ MediaTek PWM controller
Required properties:
- compatible: should be "mediatek,<name>-pwm":
- - "mediatek,mt2712-pwm": found on mt2712 SoC.
+ - "mediatek,mt2712-pwm", "mediatek,mt6795-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,mt7622-pwm", "mediatek,mt8195-pwm", "mediatek,mt8183-pwm", "mediatek,mt7986-pwm": found on mt7622 SoC.
+ - "mediatek,mt7623-pwm", "mediatek,mt7628-pwm": found on mt7623 SoC.
- "mediatek,mt7628-pwm": found on mt7628 SoC.
- "mediatek,mt7629-pwm": found on mt7629 SoC.
- - "mediatek,mt8183-pwm": found on mt8183 SoC.
- - "mediatek,mt8195-pwm", "mediatek,mt8183-pwm": found on mt8195 SoC.
+ - "mediatek,mt7986-pwm": found on mt7986 SoC.
+ - "mediatek,mt8183-pwm", "mediatek,mt7986-pwm": found on mt8183 SoC.
+ - "mediatek,mt8195-pwm", "mediatek,mt8183-pwm", "mediatek,mt7986-pwm": found on mt8195 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.
@@ -20,11 +21,14 @@ Required properties:
has no clocks
- "top": the top clock generator
- "main": clock used by the PWM core
+ - "pwm1" : the PWM1 clock for mt7629
+ - "pwm1-2": the two per PWM clocks for mt7986
- "pwm1-3": the three per PWM clocks for mt8365
- - "pwm1-8": the eight per PWM clocks for mt2712
+ - "pwm1-4": the four per PWM clocks for mt7628 or mt8183
+ - "pwm1-5": the five per PWM clocks for mt7623 or mt8516
- "pwm1-6": the six per PWM clocks for mt7622
- - "pwm1-5": the five per PWM clocks for mt7623
- - "pwm1" : the PWM1 clock for mt7629
+ - "pwm1-7": the seven per PWM clocks for mt6795
+ - "pwm1-8": the eight per PWM clocks for mt2712
- 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.