Skip to contentSkip to conversation

introduce more MDP3 components in mt8195

PATCH Superseded Moudy Ho 2 participants 10 messages Sep 12, 2023 – Sep 13, 2023

Subsystems (6)

v5 of 10 Superseded Latest is v10 →

lore
Share & tools
lore

Moudy Ho

author
#0 lore raw

v5 cover introduce more MDP3 components in mt8195

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 (3):
dt-binding: mediatek: correct MDP3 node with generic names
dt-binding: mediatek: integrate MDP RDMA to one binding
dt-binding: mediatek: add MediaTek mt8195 MDP3 components

 .../display/mediatek/mediatek,aal.yaml        |  2 +-
 .../display/mediatek/mediatek,color.yaml      |  2 +-
 .../display/mediatek/mediatek,mdp-rdma.yaml   | 88 -------------------
 .../display/mediatek/mediatek,merge.yaml      |  1 +
 .../display/mediatek/mediatek,ovl.yaml        |  2 +-
 .../display/mediatek/mediatek,split.yaml      |  1 +
 .../bindings/media/mediatek,mdp3-fg.yaml      | 61 +++++++++++++
 .../bindings/media/mediatek,mdp3-hdr.yaml     | 60 +++++++++++++
 .../bindings/media/mediatek,mdp3-pad.yaml     | 61 +++++++++++++
 .../bindings/media/mediatek,mdp3-rdma.yaml    | 50 ++++++-----
 .../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 +++--
 14 files changed, 412 insertions(+), 121 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/display/mediatek/mediatek,mdp-rdma.yaml
 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-pad.yaml
 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.yaml
Signature · 1 line
2.18.0
author
#1 lore raw

PATCH v5 1/3 dt-binding: mediatek: correct MDP3 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.

Fixes 4ad7b39623ab ("media: dt-binding: mediatek: add bindings for MediaTek MDP3 components")
---
 .../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
index 7032c7e15039..3e128733ef53 100644
@@ -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
index 0baa77198fa2..64ea98aa0592 100644
@@ -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
author
#2 lore raw

PATCH v5 2/3 dt-binding: mediatek: integrate MDP RDMA to one binding

In reply to Moudy Ho

Due to the same hardware design, MDP RDMA needs to be integrated into the same binding.

---
 .../display/mediatek/mediatek,mdp-rdma.yaml   | 88 -------------------
 .../bindings/media/mediatek,mdp3-rdma.yaml    |  5 +-
 2 files changed, 3 insertions(+), 90 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/display/mediatek/mediatek,mdp-rdma.yaml
Documentation/devicetree/bindings/display/mediatek/mediatek,mdp-rdma.yaml deleted +0 -88
deleted file mode 100644
index dd12e2ff685c..000000000000
@@ -1,88 +0,0 @@
-# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
-%YAML 1.2
----
-$id: http://devicetree.org/schemas/display/mediatek/mediatek,mdp-rdma.yaml#
-$schema: http://devicetree.org/meta-schemas/core.yaml#
-
-title: MediaTek MDP RDMA
-
-maintainers:
-  - Chun-Kuang Hu <[email protected]>
-  - Philipp Zabel <[email protected]>
-
-description:
-  The MediaTek MDP RDMA stands for Read Direct Memory Access.
-  It provides real time data to the back-end panel driver, such as DSI,
-  DPI and DP_INTF.
-  It contains one line buffer to store the sufficient pixel data.
-  RDMA device node 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:
-  compatible:
-    const: mediatek,mt8195-vdo1-rdma
-
-  reg:
-    maxItems: 1
-
-  interrupts:
-    maxItems: 1
-
-  power-domains:
-    maxItems: 1
-
-  clocks:
-    items:
-      - description: RDMA Clock
-
-  iommus:
-    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
-
-required:
-  - compatible
-  - reg
-  - power-domains
-  - clocks
-  - iommus
-  - mediatek,gce-client-reg
-
-additionalProperties: false
-
-examples:
-  - |
-    #include <dt-bindings/interrupt-controller/arm-gic.h>
-    #include <dt-bindings/clock/mt8195-clk.h>
-    #include <dt-bindings/power/mt8195-power.h>
-    #include <dt-bindings/gce/mt8195-gce.h>
-    #include <dt-bindings/memory/mt8195-memory-port.h>
-
-    soc {
-        #address-cells = <2>;
-        #size-cells = <2>;
-
-        rdma@1c104000 {
-            compatible = "mediatek,mt8195-vdo1-rdma";
-            reg = <0 0x1c104000 0 0x1000>;
-            interrupts = <GIC_SPI 495 IRQ_TYPE_LEVEL_HIGH 0>;
-            clocks = <&vdosys1 CLK_VDO1_MDP_RDMA0>;
-            power-domains = <&spm MT8195_POWER_DOMAIN_VDOSYS1>;
-            iommus = <&iommu_vdo M4U_PORT_L2_MDP_RDMA0>;
-            mediatek,gce-client-reg = <&gce0 SUBSYS_1c10XXXX 0x4000 0x1000>;
-        };
-    };
Documentation/devicetree/bindings/media/mediatek,mdp3-rdma.yaml +3 -2
index 3e128733ef53..0c22571d8c22 100644
@@ -20,8 +20,9 @@ description: |
 
 properties:
   compatible:
-    items:
-      - const: mediatek,mt8183-mdp3-rdma
+    enum:
+      - mediatek,mt8183-mdp3-rdma
+      - mediatek,mt8195-vdo1-rdma
 
   reg:
     maxItems: 1
Signature · 1 line
2.18.0
#3 lore raw

Re: [PATCH v5 2/3] dt-binding: mediatek: integrate MDP RDMA to one binding

Quoted 3 lines · Moudy Ho

Due to the same hardware design, MDP RDMA needs to be integrated into the same binding.

Please use subject prefixes matching the subsystem. You can get them for example with git log --oneline -- DIRECTORY_OR_FILE on the directory your patch is touching.

This applies to entire patchset. It is not dt-binding, but dt-bindings.

Quoted 40 lines
---
 .../display/mediatek/mediatek,mdp-rdma.yaml   | 88 -------------------
 .../bindings/media/mediatek,mdp3-rdma.yaml    |  5 +-
 2 files changed, 3 insertions(+), 90 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/display/mediatek/mediatek,mdp-rdma.yaml
Documentation/devicetree/bindings/display/mediatek/mediatek,mdp-rdma.yaml deleted +0 -27
deleted file mode 100644
index dd12e2ff685c..000000000000
@@ -1,88 +0,0 @@
-# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
-%YAML 1.2
----
-$id: http://devicetree.org/schemas/display/mediatek/mediatek,mdp-rdma.yaml#
-$schema: http://devicetree.org/meta-schemas/core.yaml#
-
-title: MediaTek MDP RDMA
-
-maintainers:
-  - Chun-Kuang Hu <[email protected]>
-  - Philipp Zabel <[email protected]>
-
-description:
-  The MediaTek MDP RDMA stands for Read Direct Memory Access.
-  It provides real time data to the back-end panel driver, such as DSI,
-  DPI and DP_INTF.
-  It contains one line buffer to store the sufficient pixel data.
-  RDMA device node 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:
-  compatible:
-    const: mediatek,mt8195-vdo1-rdma
-
-  reg:
-    maxItems: 1

Documentation/devicetree/bindings/display/mediatek/mediatek,mdp-rdma.yaml line 37

Quoted 10 lines
Documentation/devicetree/bindings/display/mediatek/mediatek,mdp-rdma.yaml deleted +0 -10
-
-  interrupts:
-    maxItems: 1
-
-  power-domains:
-    maxItems: 1
-
-  clocks:
-    items:
-      - description: RDMA Clock

This is different and you did not explain it in commit msg.

Another difference - mboxes. Looks like you did not test your DTS...

Best regards,
Krzysztof

#4 lore raw

Re: [PATCH v5 2/3] dt-binding: mediatek: integrate MDP RDMA to one binding

Quoted 84 lines · Krzysztof Kozlowski

External email : Please do not click links or open attachments until you have verified the sender or the content.

Quoted 3 lines · Moudy Ho

Due to the same hardware design, MDP RDMA needs to be integrated into the same binding.

Please use subject prefixes matching the subsystem. You can get them for
example with git log --oneline -- DIRECTORY_OR_FILE on the directory
your patch is touching.

This applies to entire patchset. It is not dt-binding, but dt- bindings.

Quoted 3 lines
---
 .../display/mediatek/mediatek,mdp-rdma.yaml   | 88 -------------

------

Quoted 3 lines
 .../bindings/media/mediatek,mdp3-rdma.yaml    |  5 +-
 2 files changed, 3 insertions(+), 90 deletions(-)
 delete mode 100644

Documentation/devicetree/bindings/display/mediatek/mediatek,mdp- rdma.yaml

Quoted 2 lines

diff --git

a/Documentation/devicetree/bindings/display/mediatek/mediatek,mdp- rdma.yaml b/Documentation/devicetree/bindings/display/mediatek/mediatek,mdp- rdma.yaml

Quoted 3 lines

deleted file mode 100644
index dd12e2ff685c..000000000000
---

a/Documentation/devicetree/bindings/display/mediatek/mediatek,mdp- rdma.yaml

Documentation/devicetree/bindings/display/mediatek/mediatek,mdp-rdma.yaml line 4

Quoted 6 lines

+++ /dev/null

Documentation/devicetree/bindings/display/mediatek/mediatek,mdp-rdma.yaml deleted +0 -4
@@ -1,88 +0,0 @@
-# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
-%YAML 1.2
----
-$id: 

http://devicetree.org/schemas/display/mediatek/mediatek,mdp-rdma.yaml#

Documentation/devicetree/bindings/display/mediatek/mediatek,mdp-rdma.yaml

Quoted 11 lines
Documentation/devicetree/bindings/display/mediatek/mediatek,mdp-rdma.yaml deleted +0 -11
-$schema: http://devicetree.org/meta-schemas/core.yaml#
-
-title: MediaTek MDP RDMA
-
-maintainers:
-  - Chun-Kuang Hu <[email protected]>
-  - Philipp Zabel <[email protected]>
-
-description:
-  The MediaTek MDP RDMA stands for Read Direct Memory Access.
-  It provides real time data to the back-end panel driver, such as

DSI,

Documentation/devicetree/bindings/display/mediatek/mediatek,mdp-rdma.yaml

Quoted 3 lines
Documentation/devicetree/bindings/display/mediatek/mediatek,mdp-rdma.yaml deleted +0 -3
-  DPI and DP_INTF.
-  It contains one line buffer to store the sufficient pixel data.
-  RDMA device node must be siblings to the central MMSYS_CONFIG

node.

Documentation/devicetree/bindings/display/mediatek/mediatek,mdp-rdma.yaml line 19

Quoted 2 lines
Documentation/devicetree/bindings/display/mediatek/mediatek,mdp-rdma.yaml deleted +0 -1
-  For a description of the MMSYS_CONFIG binding, see

- Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.yaml for details.

Quoted 7 lines
Documentation/devicetree/bindings/display/mediatek/mediatek,mdp-rdma.yaml deleted +0 -7
-
-properties:
-  compatible:
-    const: mediatek,mt8195-vdo1-rdma
-
-  reg:
-    maxItems: 1

Documentation/devicetree/bindings/display/mediatek/mediatek,mdp-rdma.yaml line 37

Quoted 10 lines
Documentation/devicetree/bindings/display/mediatek/mediatek,mdp-rdma.yaml deleted +0 -10
-
-  interrupts:
-    maxItems: 1
-
-  power-domains:
-    maxItems: 1
-
-  clocks:
-    items:
-      - description: RDMA Clock

This is different and you did not explain it in commit msg.

Quoted 5 lines

Another difference - mboxes. Looks like you did not test your DTS...

Best regards,
Krzysztof

Hi Krzysztof,

Sorry for the inconvenience.
The property you mentioned was removed on [3/3]. This incorrect configuration went unnoticed because I passed the test with the entire series.
It will be recified in the next version.

Sincerely,
Moudy

#5 lore raw

Re: [PATCH v5 2/3] dt-binding: mediatek: integrate MDP RDMA to one binding

Quoted 90 lines · Moudy Ho (何宗原)
Quoted 84 lines · Krzysztof Kozlowski

External email : Please do not click links or open attachments until you have verified the sender or the content.

Quoted 3 lines · Moudy Ho

Due to the same hardware design, MDP RDMA needs to be integrated into the same binding.

Please use subject prefixes matching the subsystem. You can get them for
example with git log --oneline -- DIRECTORY_OR_FILE on the directory
your patch is touching.

This applies to entire patchset. It is not dt-binding, but dt- bindings.

Quoted 3 lines
---
 .../display/mediatek/mediatek,mdp-rdma.yaml   | 88 -------------

------

Quoted 3 lines
 .../bindings/media/mediatek,mdp3-rdma.yaml    |  5 +-
 2 files changed, 3 insertions(+), 90 deletions(-)
 delete mode 100644

Documentation/devicetree/bindings/display/mediatek/mediatek,mdp- rdma.yaml

Quoted 2 lines

diff --git

a/Documentation/devicetree/bindings/display/mediatek/mediatek,mdp- rdma.yaml b/Documentation/devicetree/bindings/display/mediatek/mediatek,mdp- rdma.yaml

Quoted 3 lines

deleted file mode 100644
index dd12e2ff685c..000000000000
---

a/Documentation/devicetree/bindings/display/mediatek/mediatek,mdp- rdma.yaml

Documentation/devicetree/bindings/display/mediatek/mediatek,mdp-rdma.yaml line 4

Quoted 6 lines

+++ /dev/null

Documentation/devicetree/bindings/display/mediatek/mediatek,mdp-rdma.yaml deleted +0 -4
@@ -1,88 +0,0 @@
-# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
-%YAML 1.2
----
-$id: 

http://devicetree.org/schemas/display/mediatek/mediatek,mdp-rdma.yaml#

Documentation/devicetree/bindings/display/mediatek/mediatek,mdp-rdma.yaml

Quoted 11 lines
Documentation/devicetree/bindings/display/mediatek/mediatek,mdp-rdma.yaml deleted +0 -11
-$schema: http://devicetree.org/meta-schemas/core.yaml#
-
-title: MediaTek MDP RDMA
-
-maintainers:
-  - Chun-Kuang Hu <[email protected]>
-  - Philipp Zabel <[email protected]>
-
-description:
-  The MediaTek MDP RDMA stands for Read Direct Memory Access.
-  It provides real time data to the back-end panel driver, such as

DSI,

Documentation/devicetree/bindings/display/mediatek/mediatek,mdp-rdma.yaml

Quoted 3 lines
Documentation/devicetree/bindings/display/mediatek/mediatek,mdp-rdma.yaml deleted +0 -3
-  DPI and DP_INTF.
-  It contains one line buffer to store the sufficient pixel data.
-  RDMA device node must be siblings to the central MMSYS_CONFIG

node.

Documentation/devicetree/bindings/display/mediatek/mediatek,mdp-rdma.yaml line 19

Quoted 2 lines
Documentation/devicetree/bindings/display/mediatek/mediatek,mdp-rdma.yaml deleted +0 -1
-  For a description of the MMSYS_CONFIG binding, see

- Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.yaml for details.

Quoted 7 lines
Documentation/devicetree/bindings/display/mediatek/mediatek,mdp-rdma.yaml deleted +0 -7
-
-properties:
-  compatible:
-    const: mediatek,mt8195-vdo1-rdma
-
-  reg:
-    maxItems: 1

Documentation/devicetree/bindings/display/mediatek/mediatek,mdp-rdma.yaml line 37

Quoted 10 lines
Documentation/devicetree/bindings/display/mediatek/mediatek,mdp-rdma.yaml deleted +0 -10
-
-  interrupts:
-    maxItems: 1
-
-  power-domains:
-    maxItems: 1
-
-  clocks:
-    items:
-      - description: RDMA Clock

This is different and you did not explain it in commit msg.

Quoted 5 lines

Another difference - mboxes. Looks like you did not test your DTS...

Best regards,
Krzysztof

Quoted 7 lines

Hi Krzysztof,

Sorry for the inconvenience.
The property you mentioned was removed on [3/3]. This incorrect configuration went unnoticed because I passed the test with the entire series.
It will be recified in the next version.

Please describe any differences (lost properties etc) in commit msg with some explanation.

Best regards,
Krzysztof

author
#6 lore raw

PATCH v5 3/3 dt-binding: mediatek: add MediaTek mt8195 MDP3 components

In reply to Moudy Ho

Introduce more MDP3 components present in MT8195.

---
 .../display/mediatek/mediatek,aal.yaml        |  2 +-
 .../display/mediatek/mediatek,color.yaml      |  2 +-
 .../display/mediatek/mediatek,merge.yaml      |  1 +
 .../display/mediatek/mediatek,ovl.yaml        |  2 +-
 .../display/mediatek/mediatek,split.yaml      |  1 +
 .../bindings/media/mediatek,mdp3-fg.yaml      | 61 +++++++++++++++++++
 .../bindings/media/mediatek,mdp3-hdr.yaml     | 60 ++++++++++++++++++
 .../bindings/media/mediatek,mdp3-pad.yaml     | 61 +++++++++++++++++++
 .../bindings/media/mediatek,mdp3-rdma.yaml    | 16 ++---
 .../bindings/media/mediatek,mdp3-stitch.yaml  | 61 +++++++++++++++++++
 .../bindings/media/mediatek,mdp3-tcc.yaml     | 60 ++++++++++++++++++
 .../bindings/media/mediatek,mdp3-tdshp.yaml   | 61 +++++++++++++++++++
 12 files changed, 378 insertions(+), 10 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-pad.yaml
 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.yaml
Documentation/devicetree/bindings/display/mediatek/mediatek,aal.yaml +1 -1
index 7fd42c8fdc32..04b1314d00f2 100644
@@ -24,6 +24,7 @@ properties:
       - enum:
           - mediatek,mt8173-disp-aal
           - mediatek,mt8183-disp-aal
+          - mediatek,mt8195-mdp3-aal
       - items:
           - enum:
               - mediatek,mt2712-disp-aal
@@ -63,7 +64,6 @@ properties:
 required:
   - compatible
   - reg
-  - interrupts
   - power-domains
   - clocks
 
Documentation/devicetree/bindings/display/mediatek/mediatek,color.yaml +1 -1
index f21e44092043..8e97b0a6a7b3 100644
@@ -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
@@ -66,7 +67,6 @@ properties:
 required:
   - compatible
   - reg
-  - interrupts
   - power-domains
   - clocks
 
Documentation/devicetree/bindings/display/mediatek/mediatek,merge.yaml +1 -0
index eead5cb8636e..401498523404 100644
@@ -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
Documentation/devicetree/bindings/display/mediatek/mediatek,ovl.yaml +1 -1
index 3e1069b00b56..10d4d4f64e09 100644
@@ -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
@@ -76,7 +77,6 @@ properties:
 required:
   - compatible
   - reg
-  - interrupts
   - power-domains
   - clocks
   - iommus
Documentation/devicetree/bindings/display/mediatek/mediatek,split.yaml +1 -0
index a8a5c9608598..a96b271e3240 100644
@@ -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
Documentation/devicetree/bindings/media/mediatek,mdp3-fg.yaml new file +61 -0

61 lines not on this page · raw message

Documentation/devicetree/bindings/media/mediatek,mdp3-hdr.yaml new file +60 -0

60 lines not on this page · raw message

Documentation/devicetree/bindings/media/mediatek,mdp3-pad.yaml new file +61 -0

61 lines not on this page · raw message

Documentation/devicetree/bindings/media/mediatek,mdp3-rdma.yaml +9 -7
index 0c22571d8c22..17cd5b587e23 100644
@@ -23,6 +23,7 @@ properties:
     enum:
       - mediatek,mt8183-mdp3-rdma
       - mediatek,mt8195-vdo1-rdma
+      - mediatek,mt8195-mdp3-rdma
 
   reg:
     maxItems: 1
@@ -50,17 +51,19 @@ properties:
     maxItems: 1
 
   clocks:
-    items:
-      - description: RDMA clock
-      - description: RSZ clock
+    oneOf:
+      - items:
+          - description: RDMA clock
+          - description: SRAM shared component clock
+      - items:
+          - description: RDMA clock
 
   iommus:
     maxItems: 1
 
   mboxes:
-    items:
-      - description: used for 1st data pipe from RDMA
-      - description: used for 2nd data pipe from RDMA
+    minItems: 1
+    maxItems: 5
 
   '#dma-cells':
     const: 1
@@ -73,7 +76,6 @@ required:
   - power-domains
   - clocks
   - iommus
-  - mboxes
   - '#dma-cells'
 
 additionalProperties: false
Documentation/devicetree/bindings/media/mediatek,mdp3-stitch.yaml new file +61 -0

61 lines not on this page · raw message

Documentation/devicetree/bindings/media/mediatek,mdp3-tcc.yaml new file +60 -0

60 lines not on this page · raw message

Documentation/devicetree/bindings/media/mediatek,mdp3-tdshp.yaml new file +61 -0

61 lines not on this page · raw message

Signature · 1 line
2.18.0
#7 lore raw

Re: [PATCH v5 3/3] dt-binding: mediatek: add MediaTek mt8195 MDP3 components

Quoted 1 line · Moudy Ho

Introduce more MDP3 components present in MT8195.

Please use subject prefixes matching the subsystem. You can get them for example with git log --oneline -- DIRECTORY_OR_FILE on the directory your patch is touching.

Quoted 36 lines
---
 .../display/mediatek/mediatek,aal.yaml        |  2 +-
 .../display/mediatek/mediatek,color.yaml      |  2 +-
 .../display/mediatek/mediatek,merge.yaml      |  1 +
 .../display/mediatek/mediatek,ovl.yaml        |  2 +-
 .../display/mediatek/mediatek,split.yaml      |  1 +
 .../bindings/media/mediatek,mdp3-fg.yaml      | 61 +++++++++++++++++++
 .../bindings/media/mediatek,mdp3-hdr.yaml     | 60 ++++++++++++++++++
 .../bindings/media/mediatek,mdp3-pad.yaml     | 61 +++++++++++++++++++
 .../bindings/media/mediatek,mdp3-rdma.yaml    | 16 ++---
 .../bindings/media/mediatek,mdp3-stitch.yaml  | 61 +++++++++++++++++++
 .../bindings/media/mediatek,mdp3-tcc.yaml     | 60 ++++++++++++++++++
 .../bindings/media/mediatek,mdp3-tdshp.yaml   | 61 +++++++++++++++++++
 12 files changed, 378 insertions(+), 10 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-pad.yaml
 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.yaml
Documentation/devicetree/bindings/display/mediatek/mediatek,aal.yaml +1 -0
index 7fd42c8fdc32..04b1314d00f2 100644
@@ -24,6 +24,7 @@ properties:
       - enum:
           - mediatek,mt8173-disp-aal
           - mediatek,mt8183-disp-aal
+          - mediatek,mt8195-mdp3-aal
       - items:
           - enum:
               - mediatek,mt2712-disp-aal

Documentation/devicetree/bindings/display/mediatek/mediatek,aal.yaml properties: · line 66

Quoted 4 lines
Documentation/devicetree/bindings/display/mediatek/mediatek,aal.yaml +0 -1
@@ -63,7 +64,6 @@ properties:
 required:
   - compatible
   - reg
-  - interrupts

Why? commit msg tells nothing about it. Why interrupt is not erquired in mt8173? How dropping such requirement is anyhow related to mt8195?

Quoted 16 lines
Documentation/devicetree/bindings/display/mediatek/mediatek,aal.yaml +0 -0
   - power-domains
   - clocks
 
Documentation/devicetree/bindings/display/mediatek/mediatek,color.yaml +1 -0
index f21e44092043..8e97b0a6a7b3 100644
@@ -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

Documentation/devicetree/bindings/display/mediatek/mediatek,color.yaml properties: · line 69

Quoted 4 lines
Documentation/devicetree/bindings/display/mediatek/mediatek,color.yaml +0 -1
@@ -66,7 +67,6 @@ properties:
 required:
   - compatible
   - reg
-  - interrupts

Why?

Quoted 28 lines
Documentation/devicetree/bindings/display/mediatek/mediatek,color.yaml +0 -0
   - power-domains
   - clocks
 
Documentation/devicetree/bindings/display/mediatek/mediatek,merge.yaml +1 -0
index eead5cb8636e..401498523404 100644
@@ -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
Documentation/devicetree/bindings/display/mediatek/mediatek,ovl.yaml +1 -0
index 3e1069b00b56..10d4d4f64e09 100644
@@ -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

Documentation/devicetree/bindings/display/mediatek/mediatek,ovl.yaml properties: · line 79

Quoted 4 lines
Documentation/devicetree/bindings/display/mediatek/mediatek,ovl.yaml +0 -1
@@ -76,7 +77,6 @@ properties:
 required:
   - compatible
   - reg
-  - interrupts

Why?

Quoted 52 lines
Documentation/devicetree/bindings/display/mediatek/mediatek,ovl.yaml +0 -0
   - power-domains
   - clocks
   - iommus
Documentation/devicetree/bindings/display/mediatek/mediatek,split.yaml +1 -0
index a8a5c9608598..a96b271e3240 100644
@@ -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
Documentation/devicetree/bindings/media/mediatek,mdp3-fg.yaml new file +31 -0
new file mode 100644
index 000000000000..71fd449de8b4
@@ -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

Documentation/devicetree/bindings/media/mediatek,mdp3-fg.yaml line 41

Quoted 10 lines
Documentation/devicetree/bindings/media/mediatek,mdp3-fg.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

This must be maxItems. Use existing code as an example, do not re-invent it.

Quoted 56 lines
Documentation/devicetree/bindings/media/mediatek,mdp3-fg.yaml new file +20 -0
+
+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>;
+    };
Documentation/devicetree/bindings/media/mediatek,mdp3-hdr.yaml new file +30 -0
new file mode 100644
index 000000000000..fb1bb5a9e57f
@@ -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

Documentation/devicetree/bindings/media/mediatek,mdp3-hdr.yaml line 40

Quoted 10 lines
Documentation/devicetree/bindings/media/mediatek,mdp3-hdr.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

Here as well. Why is this minitems?

Quoted 36 lines
Documentation/devicetree/bindings/media/mediatek,mdp3-hdr.yaml new file +20 -0
+
+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>;
+    };
Documentation/devicetree/bindings/media/mediatek,mdp3-pad.yaml new file +10 -0
new file mode 100644
index 000000000000..13b66c5985fe
@@ -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-pad.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: MediaTek Media Data Path 3 PADDING
+
+maintainers:
+  - Matthias Brugger <[email protected]>

Documentation/devicetree/bindings/media/mediatek,mdp3-pad.yaml line 20

Quoted 10 lines
Documentation/devicetree/bindings/media/mediatek,mdp3-pad.yaml new file +10 -0
+  - Moudy Ho <[email protected]>
+
+description:
+  One of Media Data Path 3 (MDP3) components used to insert
+  pre-defined color or alpha value to arbitrary side of image.
+
+properties:
+  compatible:
+    enum:
+      - mediatek,mt8195-mdp3-pad

And you cannot add it to existing padding because?

Quoted 11 lines
Documentation/devicetree/bindings/media/mediatek,mdp3-pad.yaml new file +11 -0
+
+  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-pad.yaml line 41

Quoted 10 lines
Documentation/devicetree/bindings/media/mediatek,mdp3-pad.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

Nope

Quoted 25 lines
Documentation/devicetree/bindings/media/mediatek,mdp3-pad.yaml new file +20 -0
+
+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@1400a000 {
+        compatible = "mediatek,mt8195-mdp3-pad";
+        reg = <0x1400a000 0x1000>;
+        mediatek,gce-client-reg = <&gce1 SUBSYS_1400XXXX 0xa000 0x1000>;
+        clocks = <&vppsys0 CLK_VPP0_PADDING>;
+    };
Documentation/devicetree/bindings/media/mediatek,mdp3-rdma.yaml +0 -0
index 0c22571d8c22..17cd5b587e23 100644

Documentation/devicetree/bindings/media/mediatek,mdp3-rdma.yaml properties: · line 26

Quoted 4 lines
Documentation/devicetree/bindings/media/mediatek,mdp3-rdma.yaml +1 -0
@@ -23,6 +23,7 @@ properties:
     enum:
       - mediatek,mt8183-mdp3-rdma
       - mediatek,mt8195-vdo1-rdma
+      - mediatek,mt8195-mdp3-rdma

m is before v

Quoted 6 lines
Documentation/devicetree/bindings/media/mediatek,mdp3-rdma.yaml +0 -0
   reg:
     maxItems: 1
@@ -50,17 +51,19 @@ properties:
     maxItems: 1
 

Documentation/devicetree/bindings/media/mediatek,mdp3-rdma.yaml properties: · line 59

Quoted 10 lines
Documentation/devicetree/bindings/media/mediatek,mdp3-rdma.yaml +6 -3
   clocks:
-    items:
-      - description: RDMA clock
-      - description: RSZ clock
+    oneOf:
+      - items:
+          - description: RDMA clock
+          - description: SRAM shared component clock
+      - items:
+          - description: RDMA clock

Why now mt8183 can have SRAM clock optional? How changing mt8183 is related to this patch?

I'll finish the review, sorry fix basics here.

Best regards,
Krzysztof

#8 lore raw

Re: [PATCH v5 3/3] dt-binding: mediatek: add MediaTek mt8195 MDP3 components

Hi Krzysztof,

Quoted 68 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

Introduce more MDP3 components present in MT8195.

Please use subject prefixes matching the subsystem. You can get them for
example with git log --oneline -- DIRECTORY_OR_FILE on the directory
your patch is touching.

Quoted 9 lines
---
 .../display/mediatek/mediatek,aal.yaml        |  2 +-
 .../display/mediatek/mediatek,color.yaml      |  2 +-
 .../display/mediatek/mediatek,merge.yaml      |  1 +
 .../display/mediatek/mediatek,ovl.yaml        |  2 +-
 .../display/mediatek/mediatek,split.yaml      |  1 +
 .../bindings/media/mediatek,mdp3-fg.yaml      | 61

+++++++++++++++++++

Quoted 1 line
 .../bindings/media/mediatek,mdp3-hdr.yaml     | 60

++++++++++++++++++

Quoted 1 line
 .../bindings/media/mediatek,mdp3-pad.yaml     | 61

+++++++++++++++++++

Quoted 2 lines
 .../bindings/media/mediatek,mdp3-rdma.yaml    | 16 ++---
 .../bindings/media/mediatek,mdp3-stitch.yaml  | 61

+++++++++++++++++++

Quoted 1 line
 .../bindings/media/mediatek,mdp3-tcc.yaml     | 60

++++++++++++++++++

Quoted 1 line
 .../bindings/media/mediatek,mdp3-tdshp.yaml   | 61

+++++++++++++++++++

Quoted 2 lines
 12 files changed, 378 insertions(+), 10 deletions(-)
 create mode 100644

Documentation/devicetree/bindings/media/mediatek,mdp3-fg.yaml

Quoted 1 line
 create mode 100644

Documentation/devicetree/bindings/media/mediatek,mdp3-hdr.yaml

Quoted 1 line
 create mode 100644

Documentation/devicetree/bindings/media/mediatek,mdp3-pad.yaml

Quoted 1 line
 create mode 100644

Documentation/devicetree/bindings/media/mediatek,mdp3-stitch.yaml

Quoted 1 line
 create mode 100644

Documentation/devicetree/bindings/media/mediatek,mdp3-tcc.yaml

Quoted 1 line
 create mode 100644

Documentation/devicetree/bindings/media/mediatek,mdp3-tdshp.yaml

Quoted 2 lines

diff --git

a/Documentation/devicetree/bindings/display/mediatek/mediatek,aal.yam l b/Documentation/devicetree/bindings/display/mediatek/mediatek,aal.yam l

Quoted 2 lines

index 7fd42c8fdc32..04b1314d00f2 100644
---

a/Documentation/devicetree/bindings/display/mediatek/mediatek,aal.yam l

Quoted 1 line

+++

b/Documentation/devicetree/bindings/display/mediatek/mediatek,aal.yam l

Quoted 9 lines
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
@@ -63,7 +64,6 @@ properties:
Quoted 10 lines

Documentation/devicetree/bindings/display/mediatek/mediatek,aal.yaml properties: · line 66

Quoted 4 lines
Documentation/devicetree/bindings/display/mediatek/mediatek,aal.yaml +0 -1
 required:
   - compatible
   - reg
-  - interrupts

Why? commit msg tells nothing about it. Why interrupt is not erquired in
mt8173? How dropping such requirement is anyhow related to mt8195?

The signals of the MDP engines are completely controlled by MTK's MUTEX for starting and stopping frame processing, eliminating the need for additional interrupts.
Considering the discussion in the previous version, it is advisable to merge it into the existing display binding files.
Therefore, I tried removing the required conditions to facilitate file merging.

However, for file integrity purposes, I should revert these changes and set the corresponding settings in DTS(even if they are not used). The other YAML files - color, merge and ovl - mentioned below will also be rectified in the next version.

Quoted 159 lines
Quoted 4 lines
Documentation/devicetree/bindings/display/mediatek/mediatek,aal.yaml +0 -0
   - power-domains
   - clocks
 

diff --git

a/Documentation/devicetree/bindings/display/mediatek/mediatek,color.y aml b/Documentation/devicetree/bindings/display/mediatek/mediatek,color.y aml

Quoted 2 lines

index f21e44092043..8e97b0a6a7b3 100644
---

a/Documentation/devicetree/bindings/display/mediatek/mediatek,color.y aml

Quoted 1 line

+++

b/Documentation/devicetree/bindings/display/mediatek/mediatek,color.y aml

Documentation/devicetree/bindings/display/mediatek/mediatek,color.yaml properties: · line 69

Quoted 13 lines
Documentation/devicetree/bindings/display/mediatek/mediatek,color.yaml +1 -1
@@ -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
@@ -66,7 +67,6 @@ properties:
 required:
   - compatible
   - reg
-  - interrupts

Why?

Quoted 4 lines
Documentation/devicetree/bindings/display/mediatek/mediatek,aal.yaml +0 -0
   - power-domains
   - clocks
 

diff --git

a/Documentation/devicetree/bindings/display/mediatek/mediatek,merge.y aml b/Documentation/devicetree/bindings/display/mediatek/mediatek,merge.y aml

Quoted 2 lines

index eead5cb8636e..401498523404 100644
---

a/Documentation/devicetree/bindings/display/mediatek/mediatek,merge.y aml

Quoted 1 line

+++

b/Documentation/devicetree/bindings/display/mediatek/mediatek,merge.y aml

Quoted 9 lines
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

diff --git

a/Documentation/devicetree/bindings/display/mediatek/mediatek,ovl.yam l b/Documentation/devicetree/bindings/display/mediatek/mediatek,ovl.yam l

Quoted 2 lines

index 3e1069b00b56..10d4d4f64e09 100644
---

a/Documentation/devicetree/bindings/display/mediatek/mediatek,ovl.yam l

Quoted 1 line

+++

b/Documentation/devicetree/bindings/display/mediatek/mediatek,ovl.yam l

Documentation/devicetree/bindings/display/mediatek/mediatek,ovl.yaml properties: · line 79

Quoted 13 lines
Documentation/devicetree/bindings/display/mediatek/mediatek,ovl.yaml +1 -1
@@ -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
@@ -76,7 +77,6 @@ properties:
 required:
   - compatible
   - reg
-  - interrupts

Why?

Quoted 4 lines
Documentation/devicetree/bindings/display/mediatek/mediatek,ovl.yaml +0 -0
   - power-domains
   - clocks
   - iommus

diff --git

a/Documentation/devicetree/bindings/display/mediatek/mediatek,split.y aml b/Documentation/devicetree/bindings/display/mediatek/mediatek,split.y aml

Quoted 2 lines

index a8a5c9608598..a96b271e3240 100644
---

a/Documentation/devicetree/bindings/display/mediatek/mediatek,split.y aml

Quoted 1 line

+++

b/Documentation/devicetree/bindings/display/mediatek/mediatek,split.y aml

Review

Quoted 9 lines
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
(quoted diff) +0 -0

fg.yaml b/Documentation/devicetree/bindings/media/mediatek,mdp3- fg.yaml

Quoted 9 lines

new file mode 100644
index 000000000000..71fd449de8b4

Documentation/devicetree/bindings/media/mediatek,mdp3-fg.yaml new file +4 -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#

Documentation/devicetree/bindings/media/mediatek,mdp3-fg.yaml line 14

Quoted 10 lines
Documentation/devicetree/bindings/media/mediatek,mdp3-fg.yaml new file +10 -0
+$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

Documentation/devicetree/bindings/media/mediatek,mdp3-fg.yaml

Quoted 13 lines
Documentation/devicetree/bindings/media/mediatek,mdp3-fg.yaml new file +13 -0
+  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,

Documentation/devicetree/bindings/media/mediatek,mdp3-fg.yaml line 28

Quoted 1 line
Documentation/devicetree/bindings/media/mediatek,mdp3-fg.yaml new file +1 -0
+      such as gce node, subsys id, offset and register size. The

subsys id that is

Documentation/devicetree/bindings/media/mediatek,mdp3-fg.yaml line 29

Quoted 1 line
Documentation/devicetree/bindings/media/mediatek,mdp3-fg.yaml new file +1 -0
+      mapping to the register of display function blocks is

defined in the gce header

Documentation/devicetree/bindings/media/mediatek,mdp3-fg.yaml line 41

Quoted 12 lines
Documentation/devicetree/bindings/media/mediatek,mdp3-fg.yaml 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 3 lines

This must be maxItems. Use existing code as an example, do not re- invent it.

Thanks for the advice, it will be fixed in the next version.

Quoted 121 lines
Quoted 8 lines
Documentation/devicetree/bindings/media/mediatek,mdp3-fg.yaml new file +8 -0
+
+required:
+  - compatible
+  - reg
+  - mediatek,gce-client-reg
+  - clocks
+
+additionalProperties: false

Documentation/devicetree/bindings/media/mediatek,mdp3-fg.yaml

Quoted 10 lines
Documentation/devicetree/bindings/media/mediatek,mdp3-fg.yaml new file +10 -0
+
+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>;

Review

Quoted 3 lines
Documentation/devicetree/bindings/media/mediatek,mdp3-fg.yaml new file +2 -0
+        clocks = <&vppsys0 CLK_VPP0_MDP_FG>;
+    };
(quoted diff) +0 -0

hdr.yaml b/Documentation/devicetree/bindings/media/mediatek,mdp3- hdr.yaml

Documentation/devicetree/bindings/media/mediatek,mdp3-

Quoted 4 lines

new file mode 100644
index 000000000000..fb1bb5a9e57f

Documentation/devicetree/bindings/media/mediatek,mdp3- new file +0 -0

hdr.yaml

Quoted 5 lines
Documentation/devicetree/bindings/media/mediatek,mdp3- 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-hdr.yaml#

Documentation/devicetree/bindings/media/mediatek,mdp3- line 14

Quoted 10 lines
Documentation/devicetree/bindings/media/mediatek,mdp3- new file +10 -0
+$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

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-hdr
+
+  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. The

subsys 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 is

defined in the gce header

Documentation/devicetree/bindings/media/mediatek,mdp3- line 40

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

Here as well. Why is this minitems?

Quoted 8 lines
Documentation/devicetree/bindings/media/mediatek,mdp3- new file +8 -0
+
+required:
+  - compatible
+  - reg
+  - mediatek,gce-client-reg
+  - clocks
+
+additionalProperties: false

Documentation/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@14004000 {
+        compatible = "mediatek,mt8195-mdp3-hdr";
+        reg = <0x14004000 0x1000>;
+        mediatek,gce-client-reg = <&gce1 SUBSYS_1400XXXX 0x4000

0x1000>;

Review

Quoted 3 lines
Documentation/devicetree/bindings/media/mediatek,mdp3- new file +2 -0
+        clocks = <&vppsys0 CLK_VPP0_MDP_HDR>;
+    };
(quoted diff) +0 -0

pad.yaml b/Documentation/devicetree/bindings/media/mediatek,mdp3- pad.yaml

Documentation/devicetree/bindings/media/mediatek,mdp3-

Quoted 4 lines

new file mode 100644
index 000000000000..13b66c5985fe

Documentation/devicetree/bindings/media/mediatek,mdp3- new file +0 -0

pad.yaml

Quoted 15 lines
Documentation/devicetree/bindings/media/mediatek,mdp3- new file +14 -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-pad.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: MediaTek Media Data Path 3 PADDING
+
+maintainers:
+  - Matthias Brugger <[email protected]>
+  - Moudy Ho <[email protected]>
+
+description:
+  One of Media Data Path 3 (MDP3) components used to insert
Quoted 9 lines

Documentation/devicetree/bindings/media/mediatek,mdp3- line 20

Quoted 6 lines
Documentation/devicetree/bindings/media/mediatek,mdp3- new file +6 -0
+  pre-defined color or alpha value to arbitrary side of image.
+
+properties:
+  compatible:
+    enum:
+      - mediatek,mt8195-mdp3-pad

And you cannot add it to existing padding because?

Apologies for the oversight. I will integrate padding into the same files, and include a link to the series below:
Message ID = [email protected]

Quoted 56 lines

Documentation/devicetree/bindings/media/mediatek,mdp3- line 27

Quoted 7 lines
Documentation/devicetree/bindings/media/mediatek,mdp3- new file +7 -0
+
+  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. The

subsys 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 is

defined 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

Nope

Quoted 8 lines
Documentation/devicetree/bindings/media/mediatek,mdp3- new file +8 -0
+
+required:
+  - compatible
+  - reg
+  - mediatek,gce-client-reg
+  - clocks
+
+additionalProperties: false

Documentation/devicetree/bindings/media/mediatek,mdp3- line 59

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@1400a000 {
+        compatible = "mediatek,mt8195-mdp3-pad";
+        reg = <0x1400a000 0x1000>;
+        mediatek,gce-client-reg = <&gce1 SUBSYS_1400XXXX 0xa000

0x1000>;

Review

Quoted 3 lines
Documentation/devicetree/bindings/media/mediatek,mdp3- new file +2 -0
+        clocks = <&vppsys0 CLK_VPP0_PADDING>;
+    };
(quoted diff) +0 -0

rdma.yaml b/Documentation/devicetree/bindings/media/mediatek,mdp3- rdma.yaml

Quoted 2 lines

index 0c22571d8c22..17cd5b587e23 100644
--- a/Documentation/devicetree/bindings/media/mediatek,mdp3-

rdma.yaml

Quoted 1 line

+++ b/Documentation/devicetree/bindings/media/mediatek,mdp3-

rdma.yaml

Quoted 8 lines

Documentation/devicetree/bindings/media/mediatek,mdp3-rdma.yaml properties: · line 26

Quoted 5 lines
Documentation/devicetree/bindings/media/mediatek,mdp3-rdma.yaml +1 -0
@@ -23,6 +23,7 @@ properties:
     enum:
       - mediatek,mt8183-mdp3-rdma
       - mediatek,mt8195-vdo1-rdma
+      - mediatek,mt8195-mdp3-rdma

m is before v

Thanks for pointing that out. It will be addressed and fixed.

Quoted 20 lines
Quoted 6 lines
Documentation/devicetree/bindings/media/mediatek,mdp3-rdma.yaml +0 -0
   reg:
     maxItems: 1
@@ -50,17 +51,19 @@ properties:
     maxItems: 1
 

Documentation/devicetree/bindings/media/mediatek,mdp3-rdma.yaml properties: · line 59

Quoted 10 lines
Documentation/devicetree/bindings/media/mediatek,mdp3-rdma.yaml +6 -3
   clocks:
-    items:
-      - description: RDMA clock
-      - description: RSZ clock
+    oneOf:
+      - items:
+          - description: RDMA clock
+          - description: SRAM shared component clock
+      - items:
+          - description: RDMA clock

Why now mt8183 can have SRAM clock optional? How changing mt8183 is related to this patch?

Quoted 5 lines

I'll finish the review, sorry fix basics here.

Best regards,
Krzysztof

The RDMA of only the 8183 needed to share SRMA with other component due to the old desgin.
I attempted to describe both the situation of the 8183 and new designs like the 8195, but it appears that this writing style may lead to misunderstandings.
I am unsure if there are any ways to enhance it.

Sincerely,
Moudy

#9 lore raw

Re: [PATCH v5 3/3] dt-binding: mediatek: add MediaTek mt8195 MDP3 components

Quoted 11 lines · Moudy Ho (何宗原)
Quoted 11 lines

Documentation/devicetree/bindings/display/mediatek/mediatek,aal.yaml properties: · line 66

Quoted 5 lines
Documentation/devicetree/bindings/display/mediatek/mediatek,aal.yaml +0 -1
@@ -63,7 +64,6 @@ properties:
 required:
   - compatible
   - reg
-  - interrupts

Why? commit msg tells nothing about it. Why interrupt is not erquired in
mt8173? How dropping such requirement is anyhow related to mt8195?

Quoted 3 lines

The signals of the MDP engines are completely controlled by MTK's MUTEX for starting and stopping frame processing, eliminating the need for additional interrupts.

Then it does not look like related to this patch at all.

...

Quoted 25 lines
Quoted 20 lines
Quoted 6 lines
Documentation/devicetree/bindings/media/mediatek,mdp3-rdma.yaml +0 -0
   reg:
     maxItems: 1
@@ -50,17 +51,19 @@ properties:
     maxItems: 1
 

Documentation/devicetree/bindings/media/mediatek,mdp3-rdma.yaml properties: · line 59

Quoted 10 lines
Documentation/devicetree/bindings/media/mediatek,mdp3-rdma.yaml +6 -3
   clocks:
-    items:
-      - description: RDMA clock
-      - description: RSZ clock
+    oneOf:
+      - items:
+          - description: RDMA clock
+          - description: SRAM shared component clock
+      - items:
+          - description: RDMA clock

Why now mt8183 can have SRAM clock optional? How changing mt8183 is related to this patch?

Quoted 5 lines

I'll finish the review, sorry fix basics here.

Best regards,
Krzysztof

Quoted 6 lines

The RDMA of only the 8183 needed to share SRMA with other component due to the old desgin.
I attempted to describe both the situation of the 8183 and new designs like the 8195, but it appears that this writing style may lead to misunderstandings.
I am unsure if there are any ways to enhance it.

Just like many other bindings, just look at Qualcomm, use allOf to restrict entries per variants.

Best regards,
Krzysztof