introduce more MDP3 components in MT8195
Subsystems (6)
v6 cover introduce more MDP3 components in MT8195
Changes since v5:
- Rebase on v6.6-rc2.
- Dependent dtsi files:
https://patchwork.kernel.org/project/linux-mediatek/list/?series=786511
- Depends on:
Message ID = [email protected]
- Split out common propertis for RDMA.
- Split each component into independent patches.
Changes since v4:
- Rebase on v6.6-rc1
- Organize identical hardware components into their respective files.
Hi,
The purpose of this patch is to separate the MDP3-related bindings from the original mailing list mentioned below:
https://lore.kernel.org/all/[email protected]/
Those binding files describe additional components that
are present in the mt8195.
Moudy Ho (16):
dt-bindings: media: mediatek: mdp3: correct RDMA and WROT node with
generic names
dt-bindings: media: mediatek: mdp3: split out general properties
dt-bindings: media: mediatek: mdp3: include common properties
dt-bindings: media: mediatek: mdp3: rename to MT8183 RDMA
dt-bindings: media: mediatek: mdp3: add support MT8195 RDMA
dt-bindings: media: mediatek: mdp3: add component FG for MT8195
dt-bindings: media: mediatek: mdp3: add component HDR for MT8195
dt-bindings: media: mediatek: mdp3: add component STITCH for MT8195
dt-bindings: media: mediatek: mdp3: add component STITCH for MT8195
dt-bindings: media: mediatek: mdp3: add component TDSHP for MT8195
dt-bindings: display: mediatek: aal: add compatible for MT8195
dt-bindings: display: mediatek: color: add compatible for MT8195
dt-bindings: display: mediatek: merge: add compatible for MT8195
dt-bindings: display: mediatek: ovl: add compatible for MT8195
dt-bindings: display: mediatek: split: add compatible for MT8195
dt-bindings: display: mediatek: padding: add compatible for MT8195
.../display/mediatek/mediatek,aal.yaml | 1 +
.../display/mediatek/mediatek,color.yaml | 1 +
.../display/mediatek/mediatek,merge.yaml | 1 +
.../display/mediatek/mediatek,ovl.yaml | 1 +
.../display/mediatek/mediatek,padding.yaml | 4 +-
.../display/mediatek/mediatek,split.yaml | 1 +
.../bindings/media/mediatek,mdp3-fg.yaml | 61 +++++++++++++++++
.../bindings/media/mediatek,mdp3-hdr.yaml | 60 +++++++++++++++++
.../media/mediatek,mdp3-rdma-8183.yaml | 65 +++++++++++++++++++
.../media/mediatek,mdp3-rdma-8195.yaml | 64 ++++++++++++++++++
...ma.yaml => mediatek,mdp3-rdma-common.yaml} | 49 ++++----------
.../bindings/media/mediatek,mdp3-stitch.yaml | 61 +++++++++++++++++
.../bindings/media/mediatek,mdp3-tcc.yaml | 60 +++++++++++++++++
.../bindings/media/mediatek,mdp3-tdshp.yaml | 61 +++++++++++++++++
.../bindings/media/mediatek,mdp3-wrot.yaml | 23 ++++---
15 files changed, 467 insertions(+), 46 deletions(-)
create mode 100644 Documentation/devicetree/bindings/media/mediatek,mdp3-fg.yaml
create mode 100644 Documentation/devicetree/bindings/media/mediatek,mdp3-hdr.yaml
create mode 100644 Documentation/devicetree/bindings/media/mediatek,mdp3-rdma-8183.yaml
create mode 100644 Documentation/devicetree/bindings/media/mediatek,mdp3-rdma-8195.yaml
rename Documentation/devicetree/bindings/media/{mediatek,mdp3-rdma.yaml => mediatek,mdp3-rdma-common.yaml} (57%)
create mode 100644 Documentation/devicetree/bindings/media/mediatek,mdp3-stitch.yaml
create mode 100644 Documentation/devicetree/bindings/media/mediatek,mdp3-tcc.yaml
create mode 100644 Documentation/devicetree/bindings/media/mediatek,mdp3-tdshp.yamlSignature · 1 line
2.18.0
PATCH v6 1/16 dt-bindings: media: mediatek: mdp3: correct RDMA and WROT node with generic names
The DMA-related nodes RDMA/WROT in MDP3 should be changed to generic names. In addition, fix improper space indent in example.
--- .../bindings/media/mediatek,mdp3-rdma.yaml | 29 +++++++++++-------- .../bindings/media/mediatek,mdp3-wrot.yaml | 23 +++++++++------ 2 files changed, 31 insertions(+), 21 deletions(-)
Documentation/devicetree/bindings/media/mediatek,mdp3-rdma.yaml +17 -12
@@ -61,6 +61,9 @@ properties: - description: used for 1st data pipe from RDMA - description: used for 2nd data pipe from RDMA + '#dma-cells': + const: 1 + required: - compatible - reg
@@ -70,6 +73,7 @@ required: - clocks - iommus - mboxes + - '#dma-cells' additionalProperties: false
@@ -80,16 +84,17 @@ examples: #include <dt-bindings/power/mt8183-power.h> #include <dt-bindings/memory/mt8183-larb-port.h> - mdp3_rdma0: mdp3-rdma0@14001000 { - compatible = "mediatek,mt8183-mdp3-rdma"; - reg = <0x14001000 0x1000>; - mediatek,gce-client-reg = <&gce SUBSYS_1400XXXX 0x1000 0x1000>; - mediatek,gce-events = <CMDQ_EVENT_MDP_RDMA0_SOF>, - <CMDQ_EVENT_MDP_RDMA0_EOF>; - power-domains = <&spm MT8183_POWER_DOMAIN_DISP>; - clocks = <&mmsys CLK_MM_MDP_RDMA0>, - <&mmsys CLK_MM_MDP_RSZ1>; - iommus = <&iommu>; - mboxes = <&gce 20 CMDQ_THR_PRIO_LOWEST>, - <&gce 21 CMDQ_THR_PRIO_LOWEST>; + dma-controller@14001000 { + compatible = "mediatek,mt8183-mdp3-rdma"; + reg = <0x14001000 0x1000>; + mediatek,gce-client-reg = <&gce SUBSYS_1400XXXX 0x1000 0x1000>; + mediatek,gce-events = <CMDQ_EVENT_MDP_RDMA0_SOF>, + <CMDQ_EVENT_MDP_RDMA0_EOF>; + power-domains = <&spm MT8183_POWER_DOMAIN_DISP>; + clocks = <&mmsys CLK_MM_MDP_RDMA0>, + <&mmsys CLK_MM_MDP_RSZ1>; + iommus = <&iommu>; + mboxes = <&gce 20 CMDQ_THR_PRIO_LOWEST>, + <&gce 21 CMDQ_THR_PRIO_LOWEST>; + #dma-cells = <1>; };
Documentation/devicetree/bindings/media/mediatek,mdp3-wrot.yaml +14 -9
@@ -50,6 +50,9 @@ properties: iommus: maxItems: 1 + '#dma-cells': + const: 1 + required: - compatible - reg
@@ -58,6 +61,7 @@ required: - power-domains - clocks - iommus + - '#dma-cells' additionalProperties: false
@@ -68,13 +72,14 @@ examples: #include <dt-bindings/power/mt8183-power.h> #include <dt-bindings/memory/mt8183-larb-port.h> - mdp3_wrot0: mdp3-wrot0@14005000 { - compatible = "mediatek,mt8183-mdp3-wrot"; - reg = <0x14005000 0x1000>; - mediatek,gce-client-reg = <&gce SUBSYS_1400XXXX 0x5000 0x1000>; - mediatek,gce-events = <CMDQ_EVENT_MDP_WROT0_SOF>, - <CMDQ_EVENT_MDP_WROT0_EOF>; - power-domains = <&spm MT8183_POWER_DOMAIN_DISP>; - clocks = <&mmsys CLK_MM_MDP_WROT0>; - iommus = <&iommu>; + dma-controller@14005000 { + compatible = "mediatek,mt8183-mdp3-wrot"; + reg = <0x14005000 0x1000>; + mediatek,gce-client-reg = <&gce SUBSYS_1400XXXX 0x5000 0x1000>; + mediatek,gce-events = <CMDQ_EVENT_MDP_WROT0_SOF>, + <CMDQ_EVENT_MDP_WROT0_EOF>; + power-domains = <&spm MT8183_POWER_DOMAIN_DISP>; + clocks = <&mmsys CLK_MM_MDP_WROT0>; + iommus = <&iommu>; + #dma-cells = <1>; };
Signature · 1 line
2.18.0
PATCH v6 2/16 dt-bindings: media: mediatek: mdp3: split out general properties
In reply to Moudy HoIn order to minimize duplication and standardize the document style, it is necessary to separate the general properties specific to MediaTek MDP3 RDMA.
--- .../media/mediatek,mdp3-rdma-common.yaml | 72 +++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/mediatek,mdp3-rdma-common.yaml
Documentation/devicetree/bindings/media/mediatek,mdp3-rdma-common.yaml new file +72 -0
@@ -0,0 +1,72 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/mediatek,mdp3-rdma-common.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek Read Direct Memory Access + +maintainers: + - Matthias Brugger <[email protected]> + - Moudy Ho <[email protected]> + +description: | + MediaTek Read Direct Memory Access(RDMA) component used to do read DMA. + It contains one line buffer to store the sufficient pixel data, and + must be siblings to the central MMSYS_CONFIG node. + For a description of the MMSYS_CONFIG binding, see + Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.yaml + for details. + +properties: + reg: + maxItems: 1 + + mediatek,gce-client-reg: + $ref: /schemas/types.yaml#/definitions/phandle-array + items: + items: + - description: phandle of GCE + - description: GCE subsys id + - description: register offset + - description: register size + description: The register of client driver can be configured by gce with + 4 arguments defined in this property. Each GCE subsys id is mapping to + a client defined in the header include/dt-bindings/gce/<chip>-gce.h. + maxItems: 1 + + mediatek,gce-events: + description: + The event id which is mapping to the specific hardware event signal + to gce. The event id is defined in the gce header + include/dt-bindings/gce/<chip>-gce.h of each chips. + $ref: /schemas/types.yaml#/definitions/uint32-array + minItems: 1 + maxItems: 2 + + power-domains: + maxItems: 1 + + clocks: + minItems: 1 + maxItems: 2 + + iommus: + maxItems: 1 + + mboxes: + minItems: 1 + maxItems: 5 + + '#dma-cells': + const: 1 + +required: + - reg + - mediatek,gce-client-reg + - power-domains + - clocks + - iommus + - '#dma-cells' + +additionalProperties: true
Signature · 1 line
2.18.0
Re: [PATCH v6 02/16] dt-bindings: media: mediatek: mdp3: split out general properties
Quoted 8 lines · Moudy Ho
In order to minimize duplication and standardize the document style, it is necessary to separate the general properties specific to MediaTek MDP3 RDMA.
Signed-off-by Moudy Ho <[email protected]>--- .../media/mediatek,mdp3-rdma-common.yaml | 72 +++++++++++++++++++ 1 file changed, 72 insertions(+)
I don't understand why this is a separate patch. It's not used, not effective and not visible for us how it extracts common parts.
Best regards,
Krzysztof
Re: [PATCH v6 02/16] dt-bindings: media: mediatek: mdp3: split out general properties
Quoted 12 lines · Krzysztof Kozlowski
External email : Please do not click links or open attachments until you have verified the sender or the content.
Quoted 1 line · Moudy Ho
In order to minimize duplication and standardize the document
style,
Quoted 6 lines
it is necessary to separate the general properties specific to MediaTek MDP3 RDMA.
Signed-off-by Moudy Ho <[email protected]>--- .../media/mediatek,mdp3-rdma-common.yaml | 72
Quoted 9 lines
+++++++++++++++++++
Quoted 1 line
1 file changed, 72 insertions(+)I don't understand why this is a separate patch. It's not used, not effective and not visible for us how it extracts common parts.
Best regards,
Krzysztof
Hi Krzysztof,
I completely misunderstood the suggestions given in V5, which led to incorrect modifications and confusion in patches 2~5. I'm in the process of rectifying these errors and respectfully ask everyone to disregard the improper changes. I sincerely regret any inconvenience my actions may have caused.
Regards,
Moudy
PATCH v6 3/16 dt-bindings: media: mediatek: mdp3: include common properties
In reply to Moudy HoTo minimize duplication and standardize the document style, include the common properties for MT8183 RDMA.
--- .../bindings/media/mediatek,mdp3-rdma.yaml | 43 ++----------------- 1 file changed, 4 insertions(+), 39 deletions(-)
Documentation/devicetree/bindings/media/mediatek,mdp3-rdma.yaml +4 -39
@@ -4,7 +4,7 @@ $id: http://devicetree.org/schemas/media/mediatek,mdp3-rdma.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# -title: MediaTek Read Direct Memory Access +title: MediaTek MT8183 Read Direct Memory Access maintainers: - Matthias Brugger <[email protected]>
@@ -18,62 +18,27 @@ description: | Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.yaml for details. +allOf: + - $ref: mediatek,mdp3-rdma-common.yaml# + properties: compatible: items: - const: mediatek,mt8183-mdp3-rdma - reg: - maxItems: 1 - - mediatek,gce-client-reg: - $ref: /schemas/types.yaml#/definitions/phandle-array - items: - items: - - description: phandle of GCE - - description: GCE subsys id - - description: register offset - - description: register size - description: The register of client driver can be configured by gce with - 4 arguments defined in this property. Each GCE subsys id is mapping to - a client defined in the header include/dt-bindings/gce/<chip>-gce.h. - - mediatek,gce-events: - description: - The event id which is mapping to the specific hardware event signal - to gce. The event id is defined in the gce header - include/dt-bindings/gce/<chip>-gce.h of each chips. - $ref: /schemas/types.yaml#/definitions/uint32-array - - power-domains: - maxItems: 1 - clocks: items: - description: RDMA clock - description: RSZ clock - iommus: - maxItems: 1 - mboxes: items: - description: used for 1st data pipe from RDMA - description: used for 2nd data pipe from RDMA - '#dma-cells': - const: 1 - required: - compatible - - reg - - mediatek,gce-client-reg - - mediatek,gce-events - - power-domains - - clocks - - iommus - mboxes - - '#dma-cells' additionalProperties: false
Signature · 1 line
2.18.0
Re: [PATCH v6 03/16] dt-bindings: media: mediatek: mdp3: include common properties
Quoted 2 lines · Moudy Ho
To minimize duplication and standardize the document style, include the common properties for MT8183 RDMA.
Duplication that you created in the previous patch? Why not combine patches 2 & 3?
Cheers,
Conor.
Quoted 88 lines
Signed-off-by Moudy Ho <[email protected]>--- .../bindings/media/mediatek,mdp3-rdma.yaml | 43 ++----------------- 1 file changed, 4 insertions(+), 39 deletions(-)Documentation/devicetree/bindings/media/mediatek,mdp3-rdma.yaml +4
-39@@ -4,7 +4,7 @@ $id: http://devicetree.org/schemas/media/mediatek,mdp3-rdma.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# -title: MediaTek Read Direct Memory Access +title: MediaTek MT8183 Read Direct Memory Access maintainers: - Matthias Brugger <[email protected]>@@ -18,62 +18,27 @@ description: | Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.yaml for details. +allOf: + - $ref: mediatek,mdp3-rdma-common.yaml# + properties: compatible: items: - const: mediatek,mt8183-mdp3-rdma - reg: - maxItems: 1 - - mediatek,gce-client-reg: - $ref: /schemas/types.yaml#/definitions/phandle-array - items: - items: - - description: phandle of GCE - - description: GCE subsys id - - description: register offset - - description: register size - description: The register of client driver can be configured by gce with - 4 arguments defined in this property. Each GCE subsys id is mapping to - a client defined in the header include/dt-bindings/gce/<chip>-gce.h. - - mediatek,gce-events: - description: - The event id which is mapping to the specific hardware event signal - to gce. The event id is defined in the gce header - include/dt-bindings/gce/<chip>-gce.h of each chips. - $ref: /schemas/types.yaml#/definitions/uint32-array - - power-domains: - maxItems: 1 - clocks: items: - description: RDMA clock - description: RSZ clock - iommus: - maxItems: 1 - mboxes: items: - description: used for 1st data pipe from RDMA - description: used for 2nd data pipe from RDMA - '#dma-cells': - const: 1 - required: - compatible - - reg - - mediatek,gce-client-reg - - mediatek,gce-events - - power-domains - - clocks - - iommus - mboxes - - '#dma-cells' additionalProperties: falseSignature · 1 line
2.18.0
Re: [PATCH v6 03/16] dt-bindings: media: mediatek: mdp3: include common properties
In reply to Moudy HoQuoted 13 lines · Moudy Ho
To minimize duplication and standardize the document style, include the common properties for MT8183 RDMA.
Signed-off-by Moudy Ho <[email protected]>--- .../bindings/media/mediatek,mdp3-rdma.yaml | 43 ++----------------- 1 file changed, 4 insertions(+), 39 deletions(-)Documentation/devicetree/bindings/media/mediatek,mdp3-rdma.yaml +0
-0
Documentation/devicetree/bindings/media/mediatek,mdp3-rdma.yaml line 7
Quoted 5 lines
Documentation/devicetree/bindings/media/mediatek,mdp3-rdma.yaml +1
-1@@ -4,7 +4,7 @@ $id: http://devicetree.org/schemas/media/mediatek,mdp3-rdma.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# -title: MediaTek Read Direct Memory Access +title: MediaTek MT8183 Read Direct Memory Access
How is this related to patch? Why rename is separate? This is poor way to split your work.
Best regards,
Krzysztof
PATCH v6 4/16 dt-bindings: media: mediatek: mdp3: rename to MT8183 RDMA
In reply to Moudy HoThe file was renamed to support future scalability in response to the changes in general properties separation.
---
.../{mediatek,mdp3-rdma.yaml => mediatek,mdp3-rdma-8183.yaml} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename Documentation/devicetree/bindings/media/{mediatek,mdp3-rdma.yaml => mediatek,mdp3-rdma-8183.yaml} (96%)Documentation/devicetree/bindings/media/mediatek,mdp3-rdma-8183.yaml renamed from Documentation/devicetree/bindings/media/mediatek,mdp3-rdma.yaml +1 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) %YAML 1.2 --- -$id: http://devicetree.org/schemas/media/mediatek,mdp3-rdma.yaml# +$id: http://devicetree.org/schemas/media/mediatek,mdp3-rdma-8183.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# title: MediaTek MT8183 Read Direct Memory Access
Signature · 1 line
2.18.0
Re: [PATCH v6 04/16] dt-bindings: media: mediatek: mdp3: rename to MT8183 RDMA
Quoted 4 lines · Moudy Ho
The file was renamed to support future scalability in response to the changes in general properties separation.
Signed-off-by Moudy Ho <[email protected]>
Same with this, not all too sure why this is a commit of its own.
Quoted 24 lines
--- .../{mediatek,mdp3-rdma.yaml => mediatek,mdp3-rdma-8183.yaml} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename Documentation/devicetree/bindings/media/{mediatek,mdp3-rdma.yaml => mediatek,mdp3-rdma-8183.yaml} (96%)Documentation/devicetree/bindings/media/mediatek,mdp3-rdma-8183.yaml renamed from Documentation/devicetree/bindings/media/mediatek,mdp3-rdma.yaml +1
-1@@ -1,7 +1,7 @@ # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) %YAML 1.2 --- -$id: http://devicetree.org/schemas/media/mediatek,mdp3-rdma.yaml# +$id: http://devicetree.org/schemas/media/mediatek,mdp3-rdma-8183.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# title: MediaTek MT8183 Read Direct Memory AccessSignature · 1 line
2.18.0
PATCH v6 5/16 dt-bindings: media: mediatek: mdp3: add support MT8195 RDMA
In reply to Moudy HoSupport for MT8195 RDMA has been added, allowing for the configuration of multiple MDP3 pipes. Furthermore, this particular device does not require sharing SRAM with RSZ.
--- .../media/mediatek,mdp3-rdma-8195.yaml | 64 +++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/mediatek,mdp3-rdma-8195.yaml
Documentation/devicetree/bindings/media/mediatek,mdp3-rdma-8195.yaml new file +64 -0
@@ -0,0 +1,64 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/mediatek,mdp3-rdma-8195.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek MT8195 Read Direct Memory Access + +maintainers: + - Matthias Brugger <[email protected]> + - Moudy Ho <[email protected]> + +description: | + MediaTek Read Direct Memory Access(RDMA) component used to do read DMA. + This type of component is configured when there are multiple MDP3 pipelines + that belong to different MMSYS subsystems. + It contains one line buffer to store the sufficient pixel data, and + must be siblings to the central MMSYS_CONFIG node. + For a description of the MMSYS_CONFIG binding, see + Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.yaml + for details. + +allOf: + - $ref: mediatek,mdp3-rdma-common.yaml# + +properties: + compatible: + items: + - const: mediatek,mt8195-mdp3-rdma + + clocks: + maxItems: 1 + + mboxes: + maxItems: 5 + +required: + - compatible + +additionalProperties: false + +examples: + - | + #include <dt-bindings/clock/mt8195-clk.h> + #include <dt-bindings/gce/mt8195-gce.h> + #include <dt-bindings/power/mt8195-power.h> + #include <dt-bindings/memory/mt8195-memory-port.h> + + dma-controller@14001000 { + compatible = "mediatek,mt8195-mdp3-rdma"; + reg = <0x14001000 0x1000>; + mediatek,gce-client-reg = <&gce1 SUBSYS_1400XXXX 0x1000 0x1000>; + mediatek,gce-events = <CMDQ_EVENT_VPP0_MDP_RDMA_SOF>, + <CMDQ_EVENT_VPP0_MDP_RDMA_FRAME_DONE>; + power-domains = <&spm MT8195_POWER_DOMAIN_VPPSYS0>; + iommus = <&iommu_vpp M4U_PORT_L4_MDP_RDMA>; + clocks = <&vppsys0 CLK_VPP0_MDP_RDMA>; + mboxes = <&gce1 12 CMDQ_THR_PRIO_1>, + <&gce1 13 CMDQ_THR_PRIO_1>, + <&gce1 14 CMDQ_THR_PRIO_1>, + <&gce1 21 CMDQ_THR_PRIO_1>, + <&gce1 22 CMDQ_THR_PRIO_1>; + #dma-cells = <1>; + };
Signature · 1 line
2.18.0
Re: [PATCH v6 05/16] dt-bindings: media: mediatek: mdp3: add support MT8195 RDMA
Quoted 4 lines · Moudy Ho
Support for MT8195 RDMA has been added, allowing for the configuration of multiple MDP3 pipes. Furthermore, this particular device does not require sharing SRAM with RSZ.
I'm sorry if I am going over past arguments, if this is 90% the same as the 8193 rdma, why the extraction + mostly duplicate file, rather than covering whatever clocks/mboxes differences with an if/then/else in a single file?
Thanks,
Conor.
Quoted 80 lines
Signed-off-by Moudy Ho <[email protected]>--- .../media/mediatek,mdp3-rdma-8195.yaml | 64 +++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/mediatek,mdp3-rdma-8195.yamlDocumentation/devicetree/bindings/media/mediatek,mdp3-rdma-8195.yaml new file +64
-0@@ -0,0 +1,64 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/mediatek,mdp3-rdma-8195.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek MT8195 Read Direct Memory Access + +maintainers: + - Matthias Brugger <[email protected]> + - Moudy Ho <[email protected]> + +description: | + MediaTek Read Direct Memory Access(RDMA) component used to do read DMA. + This type of component is configured when there are multiple MDP3 pipelines + that belong to different MMSYS subsystems. + It contains one line buffer to store the sufficient pixel data, and + must be siblings to the central MMSYS_CONFIG node. + For a description of the MMSYS_CONFIG binding, see + Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.yaml + for details. + +allOf: + - $ref: mediatek,mdp3-rdma-common.yaml# + +properties: + compatible: + items: + - const: mediatek,mt8195-mdp3-rdma + + clocks: + maxItems: 1 + + mboxes: + maxItems: 5 + +required: + - compatible + +additionalProperties: false + +examples: + - | + #include <dt-bindings/clock/mt8195-clk.h> + #include <dt-bindings/gce/mt8195-gce.h> + #include <dt-bindings/power/mt8195-power.h> + #include <dt-bindings/memory/mt8195-memory-port.h> + + dma-controller@14001000 { + compatible = "mediatek,mt8195-mdp3-rdma"; + reg = <0x14001000 0x1000>; + mediatek,gce-client-reg = <&gce1 SUBSYS_1400XXXX 0x1000 0x1000>; + mediatek,gce-events = <CMDQ_EVENT_VPP0_MDP_RDMA_SOF>, + <CMDQ_EVENT_VPP0_MDP_RDMA_FRAME_DONE>; + power-domains = <&spm MT8195_POWER_DOMAIN_VPPSYS0>; + iommus = <&iommu_vpp M4U_PORT_L4_MDP_RDMA>; + clocks = <&vppsys0 CLK_VPP0_MDP_RDMA>; + mboxes = <&gce1 12 CMDQ_THR_PRIO_1>, + <&gce1 13 CMDQ_THR_PRIO_1>, + <&gce1 14 CMDQ_THR_PRIO_1>, + <&gce1 21 CMDQ_THR_PRIO_1>, + <&gce1 22 CMDQ_THR_PRIO_1>; + #dma-cells = <1>; + };Signature · 1 line
2.18.0
Re: [PATCH v6 05/16] dt-bindings: media: mediatek: mdp3: add support MT8195 RDMA
Quoted 13 lines · Conor Dooley
Quoted 4 lines · Moudy Ho
Support for MT8195 RDMA has been added, allowing for the configuration of multiple MDP3 pipes. Furthermore, this particular device does not require sharing SRAM with RSZ.
I'm sorry if I am going over past arguments, if this is 90% the same as
the 8193 rdma, why the extraction + mostly duplicate file, rather than
covering whatever clocks/mboxes differences with an if/then/else in a single file?
Quoted 3 lines
Thanks,
Conor.
Hi Conor,
As mentioned in [2/16], please disregard these changes.
Sincerely,
Moudy
Quoted 94 lines
Quoted 94 lines
Signed-off-by Moudy Ho <[email protected]>--- .../media/mediatek,mdp3-rdma-8195.yaml | 64 +++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644
Documentation/devicetree/bindings/media/mediatek,mdp3-rdma-8195.yaml(quoted diff) +0
-0
rdma-8195.yamlb/Documentation/devicetree/bindings/media/mediatek,mdp3-rdma- 8195.yaml
new file mode 100644
index 000000000000..f10139aec3c5Documentation/devicetree/bindings/media/mediatek,mdp3-rdma- new file +0
-08195.yaml
Documentation/devicetree/bindings/media/mediatek,mdp3-rdma- new file +4
-0@@ -0,0 +1,64 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id:http://devicetree.org/schemas/media/mediatek,mdp3-rdma-8195.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#Documentation/devicetree/bindings/media/mediatek,mdp3-rdma- new file +9
-0+ +title: MediaTek MT8195 Read Direct Memory Access + +maintainers: + - Matthias Brugger <[email protected]> + - Moudy Ho <[email protected]> + +description: | + MediaTek Read Direct Memory Access(RDMA) component used to doread DMA.
+ This type of component is configured when there are multiple MDP3 pipelinesDocumentation/devicetree/bindings/media/mediatek,mdp3-rdma- new file +2
-0+ that belong to different MMSYS subsystems. + It contains one line buffer to store the sufficient pixel data,and
Documentation/devicetree/bindings/media/mediatek,mdp3-rdma- new file +3
-0+ must be siblings to the central MMSYS_CONFIG node. + For a description of the MMSYS_CONFIG binding, see + Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.yaml
Documentation/devicetree/bindings/media/mediatek,mdp3-rdma- new file +32
-0+ for details. + +allOf: + - $ref: mediatek,mdp3-rdma-common.yaml# + +properties: + compatible: + items: + - const: mediatek,mt8195-mdp3-rdma + + clocks: + maxItems: 1 + + mboxes: + maxItems: 5 + +required: + - compatible + +additionalProperties: false + +examples: + - | + #include <dt-bindings/clock/mt8195-clk.h> + #include <dt-bindings/gce/mt8195-gce.h> + #include <dt-bindings/power/mt8195-power.h> + #include <dt-bindings/memory/mt8195-memory-port.h> + + dma-controller@14001000 { + compatible = "mediatek,mt8195-mdp3-rdma"; + reg = <0x14001000 0x1000>; + mediatek,gce-client-reg = <&gce1 SUBSYS_1400XXXX 0x1000
0x1000>;Documentation/devicetree/bindings/media/mediatek,mdp3-rdma- new file +2
-0+ mediatek,gce-events = <CMDQ_EVENT_VPP0_MDP_RDMA_SOF>, + <CMDQ_EVENT_VPP0_MDP_RDMA_FRAME_DONEQuoted 1 line
;
Documentation/devicetree/bindings/media/mediatek,mdp3-rdma- new file +10
-0+ power-domains = <&spm MT8195_POWER_DOMAIN_VPPSYS0>; + iommus = <&iommu_vpp M4U_PORT_L4_MDP_RDMA>; + clocks = <&vppsys0 CLK_VPP0_MDP_RDMA>; + mboxes = <&gce1 12 CMDQ_THR_PRIO_1>, + <&gce1 13 CMDQ_THR_PRIO_1>, + <&gce1 14 CMDQ_THR_PRIO_1>, + <&gce1 21 CMDQ_THR_PRIO_1>, + <&gce1 22 CMDQ_THR_PRIO_1>; + #dma-cells = <1>; + };Signature · 1 line
2.18.0
PATCH v6 6/16 dt-bindings: media: mediatek: mdp3: add component FG for MT8195
In reply to Moudy HoAdd the fundamental hardware configuration of component FG, which is controlled by MDP3 on MT8195.
--- .../bindings/media/mediatek,mdp3-fg.yaml | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/mediatek,mdp3-fg.yaml
Documentation/devicetree/bindings/media/mediatek,mdp3-fg.yaml new file +61 -0
@@ -0,0 +1,61 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/mediatek,mdp3-fg.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek Media Data Path 3 FG + +maintainers: + - Matthias Brugger <[email protected]> + - Moudy Ho <[email protected]> + +description: + One of Media Data Path 3 (MDP3) components used to add film grain + according to AV1 spec. + +properties: + compatible: + enum: + - mediatek,mt8195-mdp3-fg + + reg: + maxItems: 1 + + mediatek,gce-client-reg: + description: + The register of display function block to be set by gce. There are 4 arguments, + such as gce node, subsys id, offset and register size. The subsys id that is + mapping to the register of display function blocks is defined in the gce header + include/dt-bindings/gce/<chip>-gce.h of each chips. + $ref: /schemas/types.yaml#/definitions/phandle-array + items: + items: + - description: phandle of GCE + - description: GCE subsys id + - description: register offset + - description: register size + maxItems: 1 + + clocks: + minItems: 1 + +required: + - compatible + - reg + - mediatek,gce-client-reg + - clocks + +additionalProperties: false + +examples: + - | + #include <dt-bindings/clock/mt8195-clk.h> + #include <dt-bindings/gce/mt8195-gce.h> + + display@14002000 { + compatible = "mediatek,mt8195-mdp3-fg"; + reg = <0x14002000 0x1000>; + mediatek,gce-client-reg = <&gce1 SUBSYS_1400XXXX 0x2000 0x1000>; + clocks = <&vppsys0 CLK_VPP0_MDP_FG>; + };
Signature · 1 line
2.18.0
PATCH v6 7/16 dt-bindings: media: mediatek: mdp3: add component HDR for MT8195
In reply to Moudy HoAdd the fundamental hardware configuration of component HDR, which is controlled by MDP3 on MT8195.
--- .../bindings/media/mediatek,mdp3-hdr.yaml | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/mediatek,mdp3-hdr.yaml
Documentation/devicetree/bindings/media/mediatek,mdp3-hdr.yaml new file +60 -0
@@ -0,0 +1,60 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/mediatek,mdp3-hdr.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek Media Data Path 3 HDR + +maintainers: + - Matthias Brugger <[email protected]> + - Moudy Ho <[email protected]> + +description: + One of Media Data Path 3 (MDP3) components used to perform HDR to SDR + +properties: + compatible: + enum: + - mediatek,mt8195-mdp3-hdr + + reg: + maxItems: 1 + + mediatek,gce-client-reg: + description: + The register of display function block to be set by gce. There are 4 arguments, + such as gce node, subsys id, offset and register size. The subsys id that is + mapping to the register of display function blocks is defined in the gce header + include/dt-bindings/gce/<chip>-gce.h of each chips. + $ref: /schemas/types.yaml#/definitions/phandle-array + items: + items: + - description: phandle of GCE + - description: GCE subsys id + - description: register offset + - description: register size + maxItems: 1 + + clocks: + minItems: 1 + +required: + - compatible + - reg + - mediatek,gce-client-reg + - clocks + +additionalProperties: false + +examples: + - | + #include <dt-bindings/clock/mt8195-clk.h> + #include <dt-bindings/gce/mt8195-gce.h> + + display@14004000 { + compatible = "mediatek,mt8195-mdp3-hdr"; + reg = <0x14004000 0x1000>; + mediatek,gce-client-reg = <&gce1 SUBSYS_1400XXXX 0x4000 0x1000>; + clocks = <&vppsys0 CLK_VPP0_MDP_HDR>; + };
Signature · 1 line
2.18.0
PATCH v6 8/16 dt-bindings: media: mediatek: mdp3: add component STITCH for MT8195
In reply to Moudy HoAdd the fundamental hardware configuration of component STITCH, which is controlled by MDP3 on MT8195.
--- .../bindings/media/mediatek,mdp3-stitch.yaml | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/mediatek,mdp3-stitch.yaml
Documentation/devicetree/bindings/media/mediatek,mdp3-stitch.yaml new file +61 -0
@@ -0,0 +1,61 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/mediatek,mdp3-stitch.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek Media Data Path 3 STITCH + +maintainers: + - Matthias Brugger <[email protected]> + - Moudy Ho <[email protected]> + +description: + One of Media Data Path 3 (MDP3) components used to combine multiple video frame + with overlapping fields of view to produce a segmented panorame. + +properties: + compatible: + enum: + - mediatek,mt8195-mdp3-stitch + + reg: + maxItems: 1 + + mediatek,gce-client-reg: + description: + The register of display function block to be set by gce. There are 4 arguments, + such as gce node, subsys id, offset and register size. The subsys id that is + mapping to the register of display function blocks is defined in the gce header + include/dt-bindings/gce/<chip>-gce.h of each chips. + $ref: /schemas/types.yaml#/definitions/phandle-array + items: + items: + - description: phandle of GCE + - description: GCE subsys id + - description: register offset + - description: register size + maxItems: 1 + + clocks: + minItems: 1 + +required: + - compatible + - reg + - mediatek,gce-client-reg + - clocks + +additionalProperties: false + +examples: + - | + #include <dt-bindings/clock/mt8195-clk.h> + #include <dt-bindings/gce/mt8195-gce.h> + + display@14003000 { + compatible = "mediatek,mt8195-mdp3-stitch"; + reg = <0x14003000 0x1000>; + mediatek,gce-client-reg = <&gce1 SUBSYS_1400XXXX 0x3000 0x1000>; + clocks = <&vppsys0 CLK_VPP0_STITCH>; + };
Signature · 1 line
2.18.0
PATCH v6 9/16 dt-bindings: media: mediatek: mdp3: add component STITCH for MT8195
In reply to Moudy HoAdd the fundamental hardware configuration of component STITCH, which is controlled by MDP3 on MT8195.
--- .../bindings/media/mediatek,mdp3-tcc.yaml | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/mediatek,mdp3-tcc.yaml
Documentation/devicetree/bindings/media/mediatek,mdp3-tcc.yaml new file +60 -0
@@ -0,0 +1,60 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/mediatek,mdp3-tcc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek Media Data Path 3 TCC + +maintainers: + - Matthias Brugger <[email protected]> + +description: + One of Media Data Path 3 (MDP3) components used to support + HDR gamma curve conversion HDR displays. + +properties: + compatible: + enum: + - mediatek,mt8195-mdp3-tcc + + reg: + maxItems: 1 + + mediatek,gce-client-reg: + description: + The register of display function block to be set by gce. There are 4 arguments, + such as gce node, subsys id, offset and register size. The subsys id that is + mapping to the register of display function blocks is defined in the gce header + include/dt-bindings/gce/<chip>-gce.h of each chips. + $ref: /schemas/types.yaml#/definitions/phandle-array + items: + items: + - description: phandle of GCE + - description: GCE subsys id + - description: register offset + - description: register size + maxItems: 1 + + clocks: + minItems: 1 + +required: + - compatible + - reg + - mediatek,gce-client-reg + - clocks + +additionalProperties: false + +examples: + - | + #include <dt-bindings/clock/mt8195-clk.h> + #include <dt-bindings/gce/mt8195-gce.h> + + display@1400b000 { + compatible = "mediatek,mt8195-mdp3-tcc"; + reg = <0x1400b000 0x1000>; + mediatek,gce-client-reg = <&gce1 SUBSYS_1400XXXX 0xb000 0x1000>; + clocks = <&vppsys0 CLK_VPP0_MDP_TCC>; + };
Signature · 1 line
2.18.0
Rob Herring
maintainerRe: [PATCH v6 09/16] dt-bindings: media: mediatek: mdp3: add component STITCH for MT8195
Quoted 1 line · Moudy Ho
Add the fundamental hardware configuration of component STITCH,
STITCH? You mean TCC?
Quoted 18 lines
which is controlled by MDP3 on MT8195.
Signed-off-by Moudy Ho <[email protected]>--- .../bindings/media/mediatek,mdp3-tcc.yaml | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/mediatek,mdp3-tcc.yamlDocumentation/devicetree/bindings/media/mediatek,mdp3-tcc.yaml new file +4
-0@@ -0,0 +1,60 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/mediatek,mdp3-tcc.yaml#
Documentation/devicetree/bindings/media/mediatek,mdp3-tcc.yaml line 14
Quoted 10 lines
Documentation/devicetree/bindings/media/mediatek,mdp3-tcc.yaml new file +10
-0+$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek Media Data Path 3 TCC + +maintainers: + - Matthias Brugger <[email protected]> + +description: + One of Media Data Path 3 (MDP3) components used to support + HDR gamma curve conversion HDR displays.
Please say what the block does.
Quoted 49 lines
Documentation/devicetree/bindings/media/mediatek,mdp3-tcc.yaml new file +46
-0+ +properties: + compatible: + enum: + - mediatek,mt8195-mdp3-tcc + + reg: + maxItems: 1 + + mediatek,gce-client-reg: + description: + The register of display function block to be set by gce. There are 4 arguments, + such as gce node, subsys id, offset and register size. The subsys id that is + mapping to the register of display function blocks is defined in the gce header + include/dt-bindings/gce/<chip>-gce.h of each chips. + $ref: /schemas/types.yaml#/definitions/phandle-array + items: + items: + - description: phandle of GCE + - description: GCE subsys id + - description: register offset + - description: register size + maxItems: 1 + + clocks: + minItems: 1 + +required: + - compatible + - reg + - mediatek,gce-client-reg + - clocks + +additionalProperties: false + +examples: + - | + #include <dt-bindings/clock/mt8195-clk.h> + #include <dt-bindings/gce/mt8195-gce.h> + + display@1400b000 { + compatible = "mediatek,mt8195-mdp3-tcc"; + reg = <0x1400b000 0x1000>; + mediatek,gce-client-reg = <&gce1 SUBSYS_1400XXXX 0xb000 0x1000>; + clocks = <&vppsys0 CLK_VPP0_MDP_TCC>; + };Signature · 1 line
2.18.0
Re: [PATCH v6 09/16] dt-bindings: media: mediatek: mdp3: add component STITCH for MT8195
Quoted 8 lines · Rob Herring
External email : Please do not click links or open attachments until you have verified the sender or the content.
Quoted 1 line · Moudy Ho
Add the fundamental hardware configuration of component STITCH,
STITCH? You mean TCC?
Hi Rob,
Apologize for the typo, it will be promptly addressed and corrected.
Quoted 27 lines
Quoted 5 lines
which is controlled by MDP3 on MT8195.
Signed-off-by Moudy Ho <[email protected]>--- .../bindings/media/mediatek,mdp3-tcc.yaml | 60+++++++++++++++++++
Quoted 2 lines
1 file changed, 60 insertions(+) create mode 100644
Documentation/devicetree/bindings/media/mediatek,mdp3-tcc.yamlReview
Quoted 2 lines
(quoted diff) +0
-0
tcc.yamlb/Documentation/devicetree/bindings/media/mediatek,mdp3-tcc.yamlDocumentation/devicetree/bindings/media/mediatek,mdp3-
Quoted 4 lines
new file mode 100644
index 000000000000..245e2134c74aDocumentation/devicetree/bindings/media/mediatek,mdp3- new file +0
-0
tcc.yamlQuoted 9 lines
Documentation/devicetree/bindings/media/mediatek,mdp3- new file +8
-0@@ -0,0 +1,60 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/mediatek,mdp3-tcc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek Media Data Path 3 TCC +
Quoted 9 lines
Documentation/devicetree/bindings/media/mediatek,mdp3- line 14
Quoted 6 lines
Documentation/devicetree/bindings/media/mediatek,mdp3- new file +6
-0+maintainers: + - Matthias Brugger <[email protected]> + +description: + One of Media Data Path 3 (MDP3) components used to support + HDR gamma curve conversion HDR displays.Please say what the block does.
I will provide a more specific description for this.
Sincerely,
Moudy
Quoted 53 lines
Documentation/devicetree/bindings/media/mediatek,mdp3- line 26
Quoted 12 lines
Documentation/devicetree/bindings/media/mediatek,mdp3- new file +12
-0+ +properties: + compatible: + enum: + - mediatek,mt8195-mdp3-tcc + + reg: + maxItems: 1 + + mediatek,gce-client-reg: + description: + The register of display function block to be set by gce.There are 4 arguments,
Documentation/devicetree/bindings/media/mediatek,mdp3- line 27
Quoted 1 line
Documentation/devicetree/bindings/media/mediatek,mdp3- new file +1
-0+ such as gce node, subsys id, offset and register size. Thesubsys id that is
Documentation/devicetree/bindings/media/mediatek,mdp3- line 28
Quoted 1 line
Documentation/devicetree/bindings/media/mediatek,mdp3- new file +1
-0+ mapping to the register of display function blocks isdefined in the gce header
Quoted 20 lines
Documentation/devicetree/bindings/media/mediatek,mdp3- new file +20
-0+ include/dt-bindings/gce/<chip>-gce.h of each chips. + $ref: /schemas/types.yaml#/definitions/phandle-array + items: + items: + - description: phandle of GCE + - description: GCE subsys id + - description: register offset + - description: register size + maxItems: 1 + + clocks: + minItems: 1 + +required: + - compatible + - reg + - mediatek,gce-client-reg + - clocks + +additionalProperties: falseDocumentation/devicetree/bindings/media/mediatek,mdp3- line 58
Quoted 10 lines
Documentation/devicetree/bindings/media/mediatek,mdp3- new file +10
-0+ +examples: + - | + #include <dt-bindings/clock/mt8195-clk.h> + #include <dt-bindings/gce/mt8195-gce.h> + + display@1400b000 { + compatible = "mediatek,mt8195-mdp3-tcc"; + reg = <0x1400b000 0x1000>; + mediatek,gce-client-reg = <&gce1 SUBSYS_1400XXXX 0xb000
0x1000>;Quoted 5 lines
Documentation/devicetree/bindings/media/mediatek,mdp3- new file +2
-0+ clocks = <&vppsys0 CLK_VPP0_MDP_TCC>; + };Signature · 1 line
2.18.0
PATCH v6 10/16 dt-bindings: media: mediatek: mdp3: add component TDSHP for MT8195
In reply to Moudy HoAdd the fundamental hardware configuration of component TDSHP, which is controlled by MDP3 on MT8195.
--- .../bindings/media/mediatek,mdp3-tdshp.yaml | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/mediatek,mdp3-tdshp.yaml
Documentation/devicetree/bindings/media/mediatek,mdp3-tdshp.yaml new file +61 -0
@@ -0,0 +1,61 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/mediatek,mdp3-tdshp.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek Media Data Path 3 TDSHP + +maintainers: + - Matthias Brugger <[email protected]> + - Moudy Ho <[email protected]> + +description: + One of Media Data Path 3 (MDP3) components used to improve image + sharpness and contrast. + +properties: + compatible: + enum: + - mediatek,mt8195-mdp3-tdshp + + reg: + maxItems: 1 + + mediatek,gce-client-reg: + description: + The register of display function block to be set by gce. There are 4 arguments, + such as gce node, subsys id, offset and register size. The subsys id that is + mapping to the register of display function blocks is defined in the gce header + include/dt-bindings/gce/<chip>-gce.h of each chips. + $ref: /schemas/types.yaml#/definitions/phandle-array + items: + items: + - description: phandle of GCE + - description: GCE subsys id + - description: register offset + - description: register size + maxItems: 1 + + clocks: + minItems: 1 + +required: + - compatible + - reg + - mediatek,gce-client-reg + - clocks + +additionalProperties: false + +examples: + - | + #include <dt-bindings/clock/mt8195-clk.h> + #include <dt-bindings/gce/mt8195-gce.h> + + display@14007000 { + compatible = "mediatek,mt8195-mdp3-tdshp"; + reg = <0x14007000 0x1000>; + mediatek,gce-client-reg = <&gce1 SUBSYS_1400XXXX 0x7000 0x1000>; + clocks = <&vppsys0 CLK_VPP0_MDP_TDSHP>; + };
Signature · 1 line
2.18.0
Re: [PATCH v6 10/16] dt-bindings: media: mediatek: mdp3: add component TDSHP for MT8195
Quoted 46 lines · Moudy Ho
Add the fundamental hardware configuration of component TDSHP, which is controlled by MDP3 on MT8195.
Signed-off-by Moudy Ho <[email protected]>--- .../bindings/media/mediatek,mdp3-tdshp.yaml | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/mediatek,mdp3-tdshp.yamlDocumentation/devicetree/bindings/media/mediatek,mdp3-tdshp.yaml new file +31
-0@@ -0,0 +1,61 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/mediatek,mdp3-tdshp.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek Media Data Path 3 TDSHP + +maintainers: + - Matthias Brugger <[email protected]> + - Moudy Ho <[email protected]> + +description: + One of Media Data Path 3 (MDP3) components used to improve image + sharpness and contrast. + +properties: + compatible: + enum: + - mediatek,mt8195-mdp3-tdshp + + reg: + maxItems: 1 + + mediatek,gce-client-reg: + description: + The register of display function block to be set by gce. There are 4 arguments, + such as gce node, subsys id, offset and register size. The subsys id that is + mapping to the register of display function blocks is defined in the gce header + include/dt-bindings/gce/<chip>-gce.h of each chips. + $ref: /schemas/types.yaml#/definitions/phandle-array
Documentation/devicetree/bindings/media/mediatek,mdp3-tdshp.yaml line 41
Quoted 10 lines
Documentation/devicetree/bindings/media/mediatek,mdp3-tdshp.yaml new file +10
-0+ items: + items: + - description: phandle of GCE + - description: GCE subsys id + - description: register offset + - description: register size + maxItems: 1 + + clocks: + minItems: 1
NAK. So you ignored all the review. Brilliant.
I am getting fed up with Mediatek's approach. It's not the first time.
Best regards,
Krzysztof
Re: [PATCH v6 10/16] dt-bindings: media: mediatek: mdp3: add component TDSHP for MT8195
Quoted 69 lines · Krzysztof Kozlowski
External email : Please do not click links or open attachments until you have verified the sender or the content.
Quoted 6 lines · Moudy Ho
Add the fundamental hardware configuration of component TDSHP, which is controlled by MDP3 on MT8195.
Signed-off-by Moudy Ho <[email protected]>--- .../bindings/media/mediatek,mdp3-tdshp.yaml | 61+++++++++++++++++++
Quoted 2 lines
1 file changed, 61 insertions(+) create mode 100644
Documentation/devicetree/bindings/media/mediatek,mdp3-tdshp.yamlReview
Quoted 2 lines
(quoted diff) +0
-0
tdshp.yamlb/Documentation/devicetree/bindings/media/mediatek,mdp3-tdshp.yamlDocumentation/devicetree/bindings/media/mediatek,mdp3-
Quoted 4 lines
new file mode 100644
index 000000000000..0ac904cbc2c0Documentation/devicetree/bindings/media/mediatek,mdp3- new file +0
-0
tdshp.yamlQuoted 18 lines
Documentation/devicetree/bindings/media/mediatek,mdp3- new file +17
-0@@ -0,0 +1,61 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/mediatek,mdp3-tdshp.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek Media Data Path 3 TDSHP + +maintainers: + - Matthias Brugger <[email protected]> + - Moudy Ho <[email protected]> + +description: + One of Media Data Path 3 (MDP3) components used to improve image + sharpness and contrast. + +properties:Documentation/devicetree/bindings/media/mediatek,mdp3- line 27
Quoted 10 lines
Documentation/devicetree/bindings/media/mediatek,mdp3- new file +10
-0+ compatible: + enum: + - mediatek,mt8195-mdp3-tdshp + + reg: + maxItems: 1 + + mediatek,gce-client-reg: + description: + The register of display function block to be set by gce.There are 4 arguments,
Documentation/devicetree/bindings/media/mediatek,mdp3- line 28
Quoted 1 line
Documentation/devicetree/bindings/media/mediatek,mdp3- new file +1
-0+ such as gce node, subsys id, offset and register size. Thesubsys id that is
Documentation/devicetree/bindings/media/mediatek,mdp3- line 29
Quoted 1 line
Documentation/devicetree/bindings/media/mediatek,mdp3- new file +1
-0+ mapping to the register of display function blocks isdefined in the gce header
Documentation/devicetree/bindings/media/mediatek,mdp3- line 41
Quoted 12 lines
Documentation/devicetree/bindings/media/mediatek,mdp3- new file +12
-0+ include/dt-bindings/gce/<chip>-gce.h of each chips. + $ref: /schemas/types.yaml#/definitions/phandle-array + items: + items: + - description: phandle of GCE + - description: GCE subsys id + - description: register offset + - description: register size + maxItems: 1 + + clocks: + minItems: 1
Quoted 8 lines
NAK. So you ignored all the review. Brilliant.
I am getting fed up with Mediatek's approach. It's not the first time.
Best regards,
Krzysztof
Hi Krzysztof,
I apologize sincerely for overlooking despite your multiple reminders. To prevent similar incidents, I will ensure a thorough scrutiny of everything in question. I genuinely appreciate your patient review and deeply regret any inconvenience this may have caused you.
Sincerely,
Moudy
PATCH v6 11/16 dt-bindings: display: mediatek: aal: add compatible for MT8195
In reply to Moudy HoAdd a compatible string for the AAL block in MediaTek MT8195 that is controlled by MDP3.
--- .../devicetree/bindings/display/mediatek/mediatek,aal.yaml | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/display/mediatek/mediatek,aal.yaml +1 -0
@@ -24,6 +24,7 @@ properties: - enum: - mediatek,mt8173-disp-aal - mediatek,mt8183-disp-aal + - mediatek,mt8195-mdp3-aal - items: - enum: - mediatek,mt2712-disp-aal
Signature · 1 line
2.18.0
Re: [PATCH v6 11/16] dt-bindings: display: mediatek: aal: add compatible for MT8195
Quoted 4 lines · Moudy Ho
Add a compatible string for the AAL block in MediaTek MT8195 that is controlled by MDP3.
Signed-off-by Moudy Ho <[email protected]>
Thanks,
Conor.
Quoted 19 lines
--- .../devicetree/bindings/display/mediatek/mediatek,aal.yaml | 1 + 1 file changed, 1 insertion(+)Documentation/devicetree/bindings/display/mediatek/mediatek,aal.yaml +1
-0@@ -24,6 +24,7 @@ properties: - enum: - mediatek,mt8173-disp-aal - mediatek,mt8183-disp-aal + - mediatek,mt8195-mdp3-aal - items: - enum: - mediatek,mt2712-disp-aalSignature · 1 line
2.18.0
PATCH v6 12/16 dt-bindings: display: mediatek: color: add compatible for MT8195
In reply to Moudy HoAdd a compatible string for the COLOR block in MediaTek MT8195 that is controlled by MDP3.
--- .../devicetree/bindings/display/mediatek/mediatek,color.yaml | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/display/mediatek/mediatek,color.yaml +1 -0
@@ -26,6 +26,7 @@ properties: - mediatek,mt2701-disp-color - mediatek,mt8167-disp-color - mediatek,mt8173-disp-color + - mediatek,mt8195-mdp3-color - items: - enum: - mediatek,mt7623-disp-color
Signature · 1 line
2.18.0
Re: [PATCH v6 12/16] dt-bindings: display: mediatek: color: add compatible for MT8195
Quoted 13 lines · Moudy Ho
Add a compatible string for the COLOR block in MediaTek MT8195 that is controlled by MDP3.
Signed-off-by Moudy Ho <[email protected]>--- .../devicetree/bindings/display/mediatek/mediatek,color.yaml | 1 + 1 file changed, 1 insertion(+)Documentation/devicetree/bindings/display/mediatek/mediatek,color.yaml +0
-0
Documentation/devicetree/bindings/display/mediatek/mediatek,color.yaml properties: · line 29
Quoted 4 lines
Documentation/devicetree/bindings/display/mediatek/mediatek,color.yaml +1
-0@@ -26,6 +26,7 @@ properties: - mediatek,mt2701-disp-color - mediatek,mt8167-disp-color - mediatek,mt8173-disp-color + - mediatek,mt8195-mdp3-color
How come this one is a "mdp3" not a "disp"?
Quoted 6 lines
Documentation/devicetree/bindings/display/mediatek/mediatek,color.yaml +0
-0- items: - enum: - mediatek,mt7623-disp-colorSignature · 1 line
2.18.0
Re: [PATCH v6 12/16] dt-bindings: display: mediatek: color: add compatible for MT8195
Quoted 9 lines · Conor Dooley
Quoted 8 lines · Moudy Ho
Add a compatible string for the COLOR block in MediaTek MT8195 that is controlled by MDP3.
Signed-off-by Moudy Ho <[email protected]>--- .../devicetree/bindings/display/mediatek/mediatek,color.yaml | 1 + 1 file changed, 1 insertion(+)
Quoted 11 lines
Documentation/devicetree/bindings/display/mediatek/mediatek,color.yaml properties: · line 29
Quoted 9 lines
Documentation/devicetree/bindings/display/mediatek/mediatek,color.yaml +1
-0@@ -26,6 +26,7 @@ properties: - mediatek,mt2701-disp-color - mediatek,mt8167-disp-color - mediatek,mt8173-disp-color + - mediatek,mt8195-mdp3-colorHow come this one is a "mdp3" not a "disp"?
I don't know what mdp3 means & googling gives me no answers. What's the "disp" one controlled by, since it isn't controlled by mdp3?
Quoted 7 lines
Quoted 7 lines
Documentation/devicetree/bindings/display/mediatek/mediatek,color.yaml +0
-0- items: - enum: - mediatek,mt7623-disp-colorSignature · 1 line
2.18.0
Re: [PATCH v6 12/16] dt-bindings: display: mediatek: color: add compatible for MT8195
Quoted 32 lines · Conor Dooley
Quoted 22 lines · Conor Dooley
Quoted 21 lines · Moudy Ho
Add a compatible string for the COLOR block in MediaTek MT8195 that
is controlled by MDP3.Signed-off-by Moudy Ho <[email protected]>---
.../devicetree/bindings/display/mediatek/mediatek,color.yaml| 1 +1 file changed, 1 insertion(+)diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek,col
or.yamlb/Documentation/devicetree/bindings/display/mediatek/mediatek,color.yaml
indexf21e44092043..b886ca0d89ea100644
---
a/Documentation/devicetree/bindings/display/mediatek/mediatek,color.yaml
+++
b/Documentation/devicetree/bindings/display/mediatek/mediatek,colQuoted 8 lines
Documentation/devicetree/bindings/display/mediatek/mediatek,color.yaml properties: · line 29
Quoted 6 lines
or.yamlDocumentation/devicetree/bindings/display/mediatek/mediatek,color.yaml +1
-0@@ -26,6 +26,7 @@ properties: - mediatek,mt2701-disp-color - mediatek,mt8167-disp-color - mediatek,mt8173-disp-color + - mediatek,mt8195-mdp3-colorHow come this one is a "mdp3" not a "disp"?
Quoted 4 lines
I don't know what mdp3 means & googling gives me no answers. What's the
"disp" one controlled by, since it isn't controlled by mdp3?
Hi Conor,
Mediatek's Media Data Path ver.3 (MDP3) is associated with MMSYS and acts as an independent driver that operates between VDEC and DISP. By controlling multiple components, it carries out tasks like converting color formats, resizing, and applying specific Picture Quality (PQ) effects.
The driver can be found at "driver/media/platform/mediatek/mdp3". Since the same hardware components are configured in both MDP3 and DISP, considering previous discussions, I attemped to integrate into a single binding, named after the controlling user.
Sincerely,
Moudy
Quoted 9 lines
Quoted 7 lines
Quoted 7 lines
Documentation/devicetree/bindings/display/mediatek/mediatek,color.yaml +0
-0- items: - enum: - mediatek,mt7623-disp-colorSignature · 1 line
2.18.0
Re: [PATCH v6 12/16] dt-bindings: display: mediatek: color: add compatible for MT8195
Quoted 40 lines · Moudy Ho (何宗原)
Quoted 32 lines · Conor Dooley
Quoted 22 lines · Conor Dooley
Quoted 21 lines · Moudy Ho
Add a compatible string for the COLOR block in MediaTek MT8195 that
is controlled by MDP3.Signed-off-by Moudy Ho <[email protected]>---
.../devicetree/bindings/display/mediatek/mediatek,color.yaml| 1 +1 file changed, 1 insertion(+)diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek,col
or.yamlb/Documentation/devicetree/bindings/display/mediatek/mediatek,color.yaml
indexf21e44092043..b886ca0d89ea100644
---
a/Documentation/devicetree/bindings/display/mediatek/mediatek,color.yaml
+++
b/Documentation/devicetree/bindings/display/mediatek/mediatek,colQuoted 8 lines
Documentation/devicetree/bindings/display/mediatek/mediatek,color.yaml properties: · line 29
Quoted 6 lines
or.yamlDocumentation/devicetree/bindings/display/mediatek/mediatek,color.yaml +1
-0@@ -26,6 +26,7 @@ properties: - mediatek,mt2701-disp-color - mediatek,mt8167-disp-color - mediatek,mt8173-disp-color + - mediatek,mt8195-mdp3-colorHow come this one is a "mdp3" not a "disp"?
Quoted 4 lines
I don't know what mdp3 means & googling gives me no answers. What's the
"disp" one controlled by, since it isn't controlled by mdp3?Hi Conor,
Quoted 9 lines
Mediatek's Media Data Path ver.3 (MDP3) is associated with MMSYS and acts as an independent driver that operates between VDEC and DISP. By controlling multiple components, it carries out tasks like converting color formats, resizing, and applying specific Picture Quality (PQ) effects.
The driver can be found at "driver/media/platform/mediatek/mdp3". Since the same hardware components are configured in both MDP3 and DISP, considering previous discussions, I attemped to integrate into a single binding, named after the controlling user.
I'm still kinda struggling to understand this. Do you mean that the hardware can be controlled by either of the disp and mdp3 drivers, and a compatible containing "disp" would use one driver, and one containing "mdp3" would use another?
Re: [PATCH v6 12/16] dt-bindings: display: mediatek: color: add compatible for MT8195
Quoted 60 lines · Conor Dooley
Quoted 47 lines · Moudy Ho (何宗原)
Quoted 38 lines · Conor Dooley
Quoted 28 lines · Conor Dooley
Quoted 27 lines · Moudy Ho
Add a compatible string for the COLOR block in MediaTek MT8195
that
is controlled by MDP3.Signed-off-by Moudy Ho <[email protected]>---
.../devicetree/bindings/display/mediatek/mediatek,color.yaml| 1 +
1 file changed, 1 insertion(+)diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek ,col
or.yamlb/Documentation/devicetree/bindings/display/mediatek/mediatek ,color.yaml
indexf21e44092043..b886ca0d89ea100644
---
a/Documentation/devicetree/bindings/display/mediatek/mediatek ,color.yaml
+++
b/Documentation/devicetree/bindings/display/mediatek/mediatek ,colQuoted 8 lines
Documentation/devicetree/bindings/display/mediatek/mediatek,color.yaml properties: · line 29
Quoted 6 lines
or.yamlDocumentation/devicetree/bindings/display/mediatek/mediatek,color.yaml +1
-0@@ -26,6 +26,7 @@ properties: - mediatek,mt2701-disp-color - mediatek,mt8167-disp-color - mediatek,mt8173-disp-color + - mediatek,mt8195-mdp3-colorHow come this one is a "mdp3" not a "disp"?
Quoted 5 lines
I don't know what mdp3 means & googling gives me no answers. What's
the
"disp" one controlled by, since it isn't controlled by mdp3?Hi Conor,
Quoted 11 lines
Mediatek's Media Data Path ver.3 (MDP3) is associated with MMSYS and
acts as an independent driver that operates between VDEC and DISP. By controlling multiple components, it carries out tasks like converting color formats, resizing, and applying specific Picture Quality (PQ) effects.
The driver can be found at "driver/media/platform/mediatek/mdp3". Since the same hardware components are configured in both MDP3 and DISP, considering previous discussions, I attemped to integrate into a
single binding, named after the controlling user.
Quoted 7 lines
I'm still kinda struggling to understand this. Do you mean that the hardware can be controlled by either of the disp and mdp3 drivers, and
a compatible containing "disp" would use one driver, and one containing
"mdp3" would use another?
Hi Conor,
Sorry for any confusion caused by the software information. In the video pipeline, after decoding, the data flows sequentially through two
subsystems: MDP and DISP. Each subsystems has multiple IPs, with some serving the same functionality as COLOR mentioned here. However, these IPs cannot be controlled by different subsystems. Therefore, I included the name of the subsystem after SoC to identify the configuration's location. Is this approach feasible?
Sincerely,
Moudy
Re: [PATCH v6 12/16] dt-bindings: display: mediatek: color: add compatible for MT8195
Quoted 67 lines · Moudy Ho (何宗原)
Quoted 58 lines · Conor Dooley
Quoted 45 lines · Moudy Ho (何宗原)
Quoted 38 lines · Conor Dooley
Quoted 28 lines · Conor Dooley
Quoted 27 lines · Moudy Ho
Add a compatible string for the COLOR block in MediaTek MT8195
that
is controlled by MDP3.Signed-off-by Moudy Ho <[email protected]>---
.../devicetree/bindings/display/mediatek/mediatek,color.yaml| 1 +
1 file changed, 1 insertion(+)diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek ,col
or.yamlb/Documentation/devicetree/bindings/display/mediatek/mediatek ,color.yaml
indexf21e44092043..b886ca0d89ea100644
---
a/Documentation/devicetree/bindings/display/mediatek/mediatek ,color.yaml
+++
b/Documentation/devicetree/bindings/display/mediatek/mediatek ,colQuoted 8 lines
Documentation/devicetree/bindings/display/mediatek/mediatek,color.yaml properties: · line 29
Quoted 6 lines
or.yamlDocumentation/devicetree/bindings/display/mediatek/mediatek,color.yaml +1
-0@@ -26,6 +26,7 @@ properties: - mediatek,mt2701-disp-color - mediatek,mt8167-disp-color - mediatek,mt8173-disp-color + - mediatek,mt8195-mdp3-colorHow come this one is a "mdp3" not a "disp"?
Quoted 5 lines
I don't know what mdp3 means & googling gives me no answers. What's
the
"disp" one controlled by, since it isn't controlled by mdp3?Quoted 11 lines
Mediatek's Media Data Path ver.3 (MDP3) is associated with MMSYS and
acts as an independent driver that operates between VDEC and DISP. By controlling multiple components, it carries out tasks like converting color formats, resizing, and applying specific Picture Quality (PQ) effects.
The driver can be found at "driver/media/platform/mediatek/mdp3". Since the same hardware components are configured in both MDP3 and DISP, considering previous discussions, I attemped to integrate into a
single binding, named after the controlling user.Quoted 7 lines
I'm still kinda struggling to understand this. Do you mean that the hardware can be controlled by either of the disp and mdp3 drivers, and
a compatible containing "disp" would use one driver, and one containing
"mdp3" would use another?
Quoted 7 lines
Sorry for any confusion caused by the software information. In the video pipeline, after decoding, the data flows sequentially through two
subsystems: MDP and DISP. Each subsystems has multiple IPs, with some serving the same functionality as COLOR mentioned here. However, these IPs cannot be controlled by different subsystems. Therefore, I included the name of the subsystem after SoC to identify the configuration's location. Is this approach feasible?
I'll have to leave things to the likes of Laurent to comment here I think. I don't understand this hardware well enough to have a useful opinion. It would seem like a different part of the datapath is a different device that should be documented separately, but I don't know enough to say for sure, sorry.
AngeloGioacchino Del Regno
maintainerRe: [PATCH v6 12/16] dt-bindings: display: mediatek: color: add compatible for MT8195
Il 28/09/23 18:49, Conor Dooley ha scritto:
Quoted 76 lines · Moudy Ho (何宗原)
Quoted 67 lines · Conor Dooley
Quoted 58 lines · Moudy Ho (何宗原)
Quoted 45 lines · Conor Dooley
Quoted 38 lines · Conor Dooley
Quoted 28 lines · Moudy Ho
Quoted 27 lines
Add a compatible string for the COLOR block in MediaTek MT8195
that
is controlled by MDP3.Signed-off-by Moudy Ho <[email protected]>---
.../devicetree/bindings/display/mediatek/mediatek,color.yaml| 1 +
1 file changed, 1 insertion(+)diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek ,col
or.yamlb/Documentation/devicetree/bindings/display/mediatek/mediatek ,color.yaml
indexf21e44092043..b886ca0d89ea100644
---
a/Documentation/devicetree/bindings/display/mediatek/mediatek ,color.yaml
+++
b/Documentation/devicetree/bindings/display/mediatek/mediatek ,colQuoted 8 lines
Review properties: · line 29
Quoted 6 lines
or.yaml(quoted diff) +1
-0@@ -26,6 +26,7 @@ properties: - mediatek,mt2701-disp-color - mediatek,mt8167-disp-color - mediatek,mt8173-disp-color + - mediatek,mt8195-mdp3-colorHow come this one is a "mdp3" not a "disp"?
Quoted 5 lines
I don't know what mdp3 means & googling gives me no answers. What's
the
"disp" one controlled by, since it isn't controlled by mdp3?Quoted 11 lines
Mediatek's Media Data Path ver.3 (MDP3) is associated with MMSYS and
acts as an independent driver that operates between VDEC and DISP. By controlling multiple components, it carries out tasks like converting color formats, resizing, and applying specific Picture Quality (PQ) effects.
The driver can be found at "driver/media/platform/mediatek/mdp3". Since the same hardware components are configured in both MDP3 and DISP, considering previous discussions, I attemped to integrate into a
single binding, named after the controlling user.Quoted 7 lines
I'm still kinda struggling to understand this. Do you mean that the hardware can be controlled by either of the disp and mdp3 drivers, and
a compatible containing "disp" would use one driver, and one containing
"mdp3" would use another?Quoted 7 lines
Sorry for any confusion caused by the software information. In the video pipeline, after decoding, the data flows sequentially through two
subsystems: MDP and DISP. Each subsystems has multiple IPs, with some serving the same functionality as COLOR mentioned here. However, these IPs cannot be controlled by different subsystems. Therefore, I included the name of the subsystem after SoC to identify the configuration's location. Is this approach feasible?
Quoted 5 lines
I'll have to leave things to the likes of Laurent to comment here I think. I don't understand this hardware well enough to have a useful opinion. It would seem like a different part of the datapath is a different device that should be documented separately, but I don't know enough to say for sure, sorry.
Hardware speaking, it's not a different device: those all reside in the same block, except they are configured to route their I/O *either* to the display pipeline, *or* to the MDP3 pipeline.
I would agree though in that this could be more flexible, as in, not having a requirement to say "mdp3" or "disp", and managing the COLOR blocks generically and letting the drivers to choose the actual path transparently from what the devicetree compatible is, but there's no practical point in doing this in the end, because there is an enough number of (for example, COLOR) blocks such that one can be completely reserved to MDP3 and one completely reserved to DISP.
So, we don't *need* this flexibility, but would be nice to have for different (unexistant, basically) usecases...
The thing is, if we go for the maximum flexibility, the drawback is that we'd see a number of nodes like
shared_block: something@somewhere {
compatible = "mediatek,something";
}mdp3: dma-controller@14001000 {
......
mediatek,color = <&color0>;
mediatek,stitch = <&stitch0>;
mediatek,hdr = <&hdr0>;
mediatek,aal = <&aal0>;
....
long list of another 10 components
}display: something@somewhere {
......
an even longer list than the MDP3 one
}...or perhaps even a graph, which is even longer in the end.
I'm not against this kind of structure, but I wonder if it's worth it.
Cheers,
Angelo
Re: [PATCH v6 12/16] dt-bindings: display: mediatek: color: add compatible for MT8195
Quoted 82 lines · AngeloGioacchino Del Regno
Il 28/09/23 18:49, Conor Dooley ha scritto:
Quoted 75 lines · Moudy Ho (何宗原)
Quoted 66 lines · Conor Dooley
Quoted 57 lines · Moudy Ho (何宗原)
Quoted 44 lines · Conor Dooley
Quoted 37 lines · Conor Dooley
Quoted 27 lines · Moudy Ho
Quoted 26 lines
Add a compatible string for the COLOR block in MediaTek MT8195
that
is controlled by MDP3.Signed-off-by Moudy Ho <[email protected]>---
.../devicetree/bindings/display/mediatek/mediatek,color.yaml| 1 +1 file changed, 1 insertion(+)diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek ,col
or.yamlb/Documentation/devicetree/bindings/display/mediatek/mediatek ,color.yaml
indexf21e44092043..b886ca0d89ea100644
---
a/Documentation/devicetree/bindings/display/mediatek/mediatek ,color.yaml
+++
b/Documentation/devicetree/bindings/display/mediatek/mediatek ,colQuoted 8 lines
Review properties: · line 29
Quoted 6 lines
or.yaml(quoted diff) +1
-0@@ -26,6 +26,7 @@ properties: - mediatek,mt2701-disp-color - mediatek,mt8167-disp-color - mediatek,mt8173-disp-color + - mediatek,mt8195-mdp3-colorHow come this one is a "mdp3" not a "disp"?
Quoted 5 lines
I don't know what mdp3 means & googling gives me no answers. What's
the
"disp" one controlled by, since it isn't controlled by mdp3?Quoted 11 lines
Mediatek's Media Data Path ver.3 (MDP3) is associated with MMSYS and
acts as an independent driver that operates between VDEC and DISP. By controlling multiple components, it carries out tasks like converting color formats, resizing, and applying specific Picture Quality (PQ) effects.
The driver can be found at "driver/media/platform/mediatek/mdp3". Since the same hardware components are configured in both MDP3 and DISP, considering previous discussions, I attemped to integrate into a
single binding, named after the controlling user.Quoted 7 lines
I'm still kinda struggling to understand this. Do you mean that the hardware can be controlled by either of the disp and mdp3 drivers, and
a compatible containing "disp" would use one driver, and one containing
"mdp3" would use another?Quoted 7 lines
Sorry for any confusion caused by the software information. In the video pipeline, after decoding, the data flows sequentially through two
subsystems: MDP and DISP. Each subsystems has multiple IPs, with some serving the same functionality as COLOR mentioned here. However, these IPs cannot be controlled by different subsystems. Therefore, I included the name of the subsystem after SoC to identify the configuration's location. Is this approach feasible?Quoted 5 lines
I'll have to leave things to the likes of Laurent to comment here I think. I don't understand this hardware well enough to have a useful opinion. It would seem like a different part of the datapath is a different device that should be documented separately, but I don't know enough to say for sure, sorry.
Quoted 3 lines
Hardware speaking, it's not a different device: those all reside in the same block, except they are configured to route their I/O *either* to the display pipeline, *or* to the MDP3 pipeline.
Is it runtime configurable?
Quoted 28 lines
I would agree though in that this could be more flexible, as in, not having a requirement to say "mdp3" or "disp", and managing the COLOR blocks generically and letting the drivers to choose the actual path transparently from what the devicetree compatible is, but there's no practical point in doing this in the end, because there is an enough number of (for example, COLOR) blocks such that one can be completely reserved to MDP3 and one completely reserved to DISP.
So, we don't *need* this flexibility, but would be nice to have for different (unexistant, basically) usecases...
The thing is, if we go for the maximum flexibility, the drawback is that we'd see a number of nodes like
shared_block: something@somewhere { compatible = "mediatek,something"; }mdp3: dma-controller@14001000 { ...... mediatek,color = <&color0>; mediatek,stitch = <&stitch0>; mediatek,hdr = <&hdr0>; mediatek,aal = <&aal0>; .... long list of another 10 components }
Quoted 8 lines
display: something@somewhere { ...... an even longer list than the MDP3 one }...or perhaps even a graph, which is even longer in the end.
I'm not against this kind of structure, but I wonder if it's worth it.
I have no idea, but it sounds like it isn't. Really what happened here, is not me having a particular thing I want to see, is getting a response that implied that there were two different compatibles for the same hardware, controlled by different drivers.
It does seem to be that way at present, and this is not something I am willing to ack etc. That's not to say that I am _nacking_ it, just that I don't understand this enough to ack something that we usually tell people not to do.
PATCH v6 13/16 dt-bindings: display: mediatek: merge: add compatible for MT8195
In reply to Moudy HoAdd a compatible string for the MERGE block in MediaTek MT8195 that is controlled by MDP3.
--- .../devicetree/bindings/display/mediatek/mediatek,merge.yaml | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/display/mediatek/mediatek,merge.yaml +1 -0
@@ -24,6 +24,7 @@ properties: - enum: - mediatek,mt8173-disp-merge - mediatek,mt8195-disp-merge + - mediatek,mt8195-mdp3-merge - items: - const: mediatek,mt6795-disp-merge - const: mediatek,mt8173-disp-merge
Signature · 1 line
2.18.0
PATCH v6 14/16 dt-bindings: display: mediatek: ovl: add compatible for MT8195
In reply to Moudy HoAdd a compatible string for the OVL block in MediaTek MT8195 that is controlled by MDP3.
--- .../devicetree/bindings/display/mediatek/mediatek,ovl.yaml | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/display/mediatek/mediatek,ovl.yaml +1 -0
@@ -26,6 +26,7 @@ properties: - mediatek,mt8173-disp-ovl - mediatek,mt8183-disp-ovl - mediatek,mt8192-disp-ovl + - mediatek,mt8195-mdp3-ovl - items: - enum: - mediatek,mt7623-disp-ovl
Signature · 1 line
2.18.0
PATCH v6 15/16 dt-bindings: display: mediatek: split: add compatible for MT8195
In reply to Moudy HoAdd a compatible string for the SPLIT block in MediaTek MT8195 that is controlled by MDP3.
--- .../devicetree/bindings/display/mediatek/mediatek,split.yaml | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/display/mediatek/mediatek,split.yaml +1 -0
@@ -23,6 +23,7 @@ properties: oneOf: - enum: - mediatek,mt8173-disp-split + - mediatek,mt8195-mdp3-split - items: - const: mediatek,mt6795-disp-split - const: mediatek,mt8173-disp-split
Signature · 1 line
2.18.0
PATCH v6 16/16 dt-bindings: display: mediatek: padding: add compatible for MT8195
In reply to Moudy HoAdd a compatible string for the PAD block in MediaTek MT8195 that is controlled by MDP3.
--- .../bindings/display/mediatek/mediatek,padding.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/display/mediatek/mediatek,padding.yaml +3 -1
@@ -20,7 +20,9 @@ description: properties: compatible: - const: mediatek,mt8188-padding + enum: + - mediatek,mt8188-padding + - mediatek,mt8195-mdp3-pad reg: maxItems: 1
Signature · 1 line
2.18.0
Quoted 8 lines · Moudy Ho
Changes since v5:
- Rebase on v6.6-rc2.
- Dependent dtsi files:
https://patchwork.kernel.org/project/linux-mediatek/list/?series=786511
- Depends on:
Message ID = [email protected]
- Split out common propertis for RDMA.
- Split each component into independent patches.
And ignored previously given feedback. That's not the way you should work with upstream community. It feels like a waste of my time and it is not fair that Mediatek is doing it :(
Best regards,
Krzysztof
Quoted 14 lines · Krzysztof Kozlowski
External email : Please do not click links or open attachments until you have verified the sender or the content.
Quoted 4 lines · Moudy Ho
Changes since v5:
- Rebase on v6.6-rc2.
- Dependent dtsi files:https://patchwork.kernel.org/project/linux-mediatek/list/?series=786511
Quoted 4 lines
- Depends on:
Message ID = [email protected]
- Split out common propertis for RDMA.
- Split each component into independent patches.
Quoted 8 lines
And ignored previously given feedback. That's not the way you should work with upstream community. It feels like a waste of my time and it is
not fair that Mediatek is doing it :(Best regards,
Krzysztof
Hi Krzysztof,
While splitting the bindings, I was so focused that I accidentally missed correcting the properties that needed to be fixed. I sincerely apologize for this oversight.
Moving forward, I will handle such matters with greater care.
Sincerely,
Moudy