Convert pwm-mtk-disp.txt to mediatek, pwm-disp.yaml format
Subsystems (3)
v6 cover Convert pwm-mtk-disp.txt to mediatek, pwm-disp.yaml format
From: Xinlei Lee <[email protected]>
Change since v5:
1.Add interrupts property.
Changes since v4:
1.Base on Linux-next.
2.Cancel removal of mt8167 compatiable patch.
Changes since v3:
1. Combine multiplexed socs into one entry
Changes since v2:
1. Modify the PWM name to DISP_PWM.
2. Include pwm.yaml.
3. Separate conversion files and add/remove operations.
Changes since v1:
1. Fixed formatting issues mentioned in the v1.
2. Delete pwm-mtk-disp.txt.
3. Add mtk_pwm dt_maintainers.
4. Add "#pwm-cells" & power-domains properties.
5. Make dt_checking successful.
Xinlei Lee (5):
dt-bindings: pwm: Convert pwm-mtk-disp.txt to mediatek,pwm-disp.yaml
format
dt-bindings: pwm: Add compatible for MediaTek MT8192
dt-bindings: pwm: Add compatible for MediaTek MT8195
dt-bindings: pwm: Add compatible for MediaTek MT8186
dt-bindings: pwm: Add interrupts property for MediaTek MT8192
.../bindings/pwm/mediatek,pwm-disp.yaml | 75 +++++++++++++++++++ .../devicetree/bindings/pwm/pwm-mtk-disp.txt | 45 ----------- 2 files changed, 75 insertions(+), 45 deletions(-) create mode 100644 Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml delete mode 100644 Documentation/devicetree/bindings/pwm/pwm-mtk-disp.txt
Signature · 7 lines
2.18.0 _______________________________________________ Linux-mediatek mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-mediatek
PATCH v6 1/5 dt-bindings: pwm: Convert pwm-mtk-disp.txt to mediatek,pwm-disp.yaml format
From: Xinlei Lee <[email protected]>
Convert pwm-mtk-disp.txt to mediatek,pwm-disp.yaml format as suggested by maintainer.
--- .../bindings/pwm/mediatek,pwm-disp.yaml | 66 +++++++++++++++++++ .../devicetree/bindings/pwm/pwm-mtk-disp.txt | 45 ------------- 2 files changed, 66 insertions(+), 45 deletions(-) create mode 100644 Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml delete mode 100644 Documentation/devicetree/bindings/pwm/pwm-mtk-disp.txt
Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml new file +66 -0
@@ -0,0 +1,66 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pwm/mediatek,pwm-disp.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek DISP_PWM Controller Device Tree Bindings + +maintainers: + - Jitao Shi <[email protected]> + - Xinlei Lee <[email protected]> + +allOf: + - $ref: pwm.yaml# + +properties: + compatible: + oneOf: + - enum: + - mediatek,mt2701-disp-pwm + - mediatek,mt6595-disp-pwm + - mediatek,mt8173-disp-pwm + - mediatek,mt8183-disp-pwm + - items: + - const: mediatek,mt8167-disp-pwm + - const: mediatek,mt8173-disp-pwm + + reg: + maxItems: 1 + + "#pwm-cells": + const: 2 + + clocks: + items: + - description: Main Clock + - description: Mm Clock + + clock-names: + items: + - const: main + - const: mm + +required: + - compatible + - reg + - "#pwm-cells" + - clocks + - clock-names + +additionalProperties: false + +examples: + - | + #include <dt-bindings/interrupt-controller/arm-gic.h> + #include <dt-bindings/clock/mt8173-clk.h> + #include <dt-bindings/interrupt-controller/irq.h> + + pwm0: pwm@1401e000 { + compatible = "mediatek,mt8173-disp-pwm"; + reg = <0x1401e000 0x1000>; + #pwm-cells = <2>; + clocks = <&mmsys CLK_MM_DISP_PWM026M>, + <&mmsys CLK_MM_DISP_PWM0MM>; + clock-names = "main", "mm"; + };
Documentation/devicetree/bindings/pwm/pwm-mtk-disp.txt deleted +0 -45
45 lines not on this page · raw message
Signature · 7 lines
2.18.0 _______________________________________________ Linux-mediatek mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-mediatek
PATCH v6 2/5 dt-bindings: pwm: Add compatible for MediaTek MT8192
In reply to [email protected]From: Xinlei Lee <[email protected]>
Add dt-binding documentation of pwm for MediaTek MT8192 SoC.
--- Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml | 4 ++++ 1 file changed, 4 insertions(+)
Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml +4 -0
@@ -24,6 +24,10 @@ properties: - items: - const: mediatek,mt8167-disp-pwm - const: mediatek,mt8173-disp-pwm + - items: + - enum: + - mediatek,mt8192-disp-pwm + - const: mediatek,mt8183-disp-pwm reg: maxItems: 1
Signature · 7 lines
2.18.0 _______________________________________________ Linux-mediatek mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-mediatek
PATCH v6 3/5 dt-bindings: pwm: Add compatible for MediaTek MT8195
In reply to [email protected]From: Xinlei Lee <[email protected]>
Add dt-binding documentation of pwm for MediaTek MT8195 SoC.
--- Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml +1 -0
@@ -27,6 +27,7 @@ properties: - items: - enum: - mediatek,mt8192-disp-pwm + - mediatek,mt8195-disp-pwm - const: mediatek,mt8183-disp-pwm reg:
Signature · 7 lines
2.18.0 _______________________________________________ Linux-mediatek mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-mediatek
PATCH v6 4/5 dt-bindings: pwm: Add compatible for MediaTek MT8186
In reply to [email protected]From: Xinlei Lee <[email protected]>
Add dt-binding documentation of pwm for MediaTek MT8186 SoC.
--- Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml +1 -0
@@ -26,6 +26,7 @@ properties: - const: mediatek,mt8173-disp-pwm - items: - enum: + - mediatek,mt8186-disp-pwm - mediatek,mt8192-disp-pwm - mediatek,mt8195-disp-pwm - const: mediatek,mt8183-disp-pwm
Signature · 7 lines
2.18.0 _______________________________________________ Linux-mediatek mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-mediatek
PATCH v6 5/5 dt-bindings: pwm: Add interrupts property for MediaTek MT8192
In reply to [email protected]From: Xinlei Lee <[email protected]>
Add interrupts property of pwm for MediaTek MT8192 SoC.
--- Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml | 3 +++ 1 file changed, 3 insertions(+)
Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml +3 -0
@@ -37,6 +37,9 @@ properties: "#pwm-cells": const: 2 + interrupts: + maxItems: 1 + clocks: items: - description: Main Clock
Signature · 7 lines
2.18.0 _______________________________________________ Linux-mediatek mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-mediatek
AngeloGioacchino Del Regno
maintainerRe: [PATCH v6, 5/5] dt-bindings: pwm: Add interrupts property for MediaTek MT8192
Il 18/04/22 14:20, [email protected] ha scritto:
Quoted 5 lines
From: Xinlei Lee <[email protected]>
Add interrupts property of pwm for MediaTek MT8192 SoC.
Signed-off-by Xinlei Lee <[email protected]>
Hello Xinlei,
the pwm-mtk-disp.c driver does not support interrupts.
Please add interrupts support to the driver first, and only then add that in the dt-bindings.
Regards,
Angelo
Re: [PATCH v6, 5/5] dt-bindings: pwm: Add interrupts property for MediaTek MT8192
Hello,
Quoted 5 lines · AngeloGioacchino Del Regno
Il 18/04/22 14:20, [email protected] ha scritto:
Quoted 4 lines
From: Xinlei Lee <[email protected]>
Add interrupts property of pwm for MediaTek MT8192 SoC.
Quoted 7 lines
Quoted 1 line
Signed-off-by Xinlei Lee <[email protected]>Hello Xinlei,
thepwm-mtk-disp.cdriver does not support interrupts.Please add interrupts support to the driver first, and only then add that in the dt-bindings.
in my understanding the linux driver state and the binding documentation are somewhat independent. Here I'd say adding the irq information to dt without the driver supporting it is fine.
Best regards
Uwe
Signature · 2 lines
Pengutronix e.K. | Uwe Kleine-König | Industrial Linux Solutions | https://www.pengutronix.de/ |
Re: [PATCH v6, 5/5] dt-bindings: pwm: Add interrupts property for MediaTek MT8192
Quoted 13 lines · Uwe Kleine-König
Hello,
Quoted 10 lines · AngeloGioacchino Del Regno
Il 18/04/22 14:20, [email protected] ha scritto:
Quoted 5 lines
From: Xinlei Lee <[email protected]>
Add interrupts property of pwm for MediaTek MT8192 SoC.
Signed-off-by Xinlei Lee <[email protected]>Hello Xinlei,
thepwm-mtk-disp.cdriver does not support interrupts.
Quoted 6 lines
Quoted 2 lines
Please add interrupts support to the driver first, and only then add that in the dt-bindings.
in my understanding the linux driver state and the binding documentation are somewhat independent. Here I'd say adding the irq information to dt without the driver supporting it is fine.
Agreed. I've applied this along with the rest. It doesn't have Rob's or Krzysztof's stamp of approval, but it's a trivial change and looks fine to me.
Thierry
Thierry Reding
AppliedQuoted 32 lines · On Mon, Apr 18, 2022 at 08:20:51PM +0800, [email protected] wrote:
From: Xinlei Lee <[email protected]>
Change since v5:
1.Add interrupts property.Changes since v4:
1.Base on Linux-next.
2.Cancel removal of mt8167 compatiable patch.Changes since v3:
1. Combine multiplexed socs into one entryChanges since v2:
1. Modify the PWM name toDISP_PWM.
2. Includepwm.yaml.
3. Separate conversion files and add/remove operations.Changes since v1:
1. Fixed formatting issues mentioned in the v1.
2. Delete pwm-mtk-disp.txt.
3. Addmtk_pwmdt_maintainers.
4. Add "#pwm-cells" & power-domains properties.
5. Makedt_checkingsuccessful.Xinlei Lee (5):
dt-bindings: pwm: Convert pwm-mtk-disp.txt to mediatek,pwm-disp.yaml
format
dt-bindings: pwm: Add compatible for MediaTek MT8192
dt-bindings: pwm: Add compatible for MediaTek MT8195
dt-bindings: pwm: Add compatible for MediaTek MT8186
dt-bindings: pwm: Add interrupts property for MediaTek MT8192
Quoted 5 lines
.../bindings/pwm/mediatek,pwm-disp.yaml | 75 +++++++++++++++++++ .../devicetree/bindings/pwm/pwm-mtk-disp.txt | 45 ----------- 2 files changed, 75 insertions(+), 45 deletions(-) create mode 100644 Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml delete mode 100644 Documentation/devicetree/bindings/pwm/pwm-mtk-disp.txt
Applied, thanks.
Thierry