1*8d13bc63SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*8d13bc63SEmmanuel Vadot%YAML 1.2
3*8d13bc63SEmmanuel Vadot---
4*8d13bc63SEmmanuel Vadot$id: http://devicetree.org/schemas/media/mediatek,mdp3-hdr.yaml#
5*8d13bc63SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*8d13bc63SEmmanuel Vadot
7*8d13bc63SEmmanuel Vadottitle: MediaTek Media Data Path 3 HDR
8*8d13bc63SEmmanuel Vadot
9*8d13bc63SEmmanuel Vadotmaintainers:
10*8d13bc63SEmmanuel Vadot  - Matthias Brugger <matthias.bgg@gmail.com>
11*8d13bc63SEmmanuel Vadot  - Moudy Ho <moudy.ho@mediatek.com>
12*8d13bc63SEmmanuel Vadot
13*8d13bc63SEmmanuel Vadotdescription:
14*8d13bc63SEmmanuel Vadot  A Media Data Path 3 (MDP3) component used to perform conversion from
15*8d13bc63SEmmanuel Vadot  High Dynamic Range (HDR) to Standard Dynamic Range (SDR).
16*8d13bc63SEmmanuel Vadot
17*8d13bc63SEmmanuel Vadotproperties:
18*8d13bc63SEmmanuel Vadot  compatible:
19*8d13bc63SEmmanuel Vadot    enum:
20*8d13bc63SEmmanuel Vadot      - mediatek,mt8195-mdp3-hdr
21*8d13bc63SEmmanuel Vadot
22*8d13bc63SEmmanuel Vadot  reg:
23*8d13bc63SEmmanuel Vadot    maxItems: 1
24*8d13bc63SEmmanuel Vadot
25*8d13bc63SEmmanuel Vadot  mediatek,gce-client-reg:
26*8d13bc63SEmmanuel Vadot    description:
27*8d13bc63SEmmanuel Vadot      The register of display function block to be set by gce. There are 4 arguments,
28*8d13bc63SEmmanuel Vadot      such as gce node, subsys id, offset and register size. The subsys id that is
29*8d13bc63SEmmanuel Vadot      mapping to the register of display function blocks is defined in the gce header
30*8d13bc63SEmmanuel Vadot      include/dt-bindings/gce/<chip>-gce.h of each chips.
31*8d13bc63SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/phandle-array
32*8d13bc63SEmmanuel Vadot    items:
33*8d13bc63SEmmanuel Vadot      items:
34*8d13bc63SEmmanuel Vadot        - description: phandle of GCE
35*8d13bc63SEmmanuel Vadot        - description: GCE subsys id
36*8d13bc63SEmmanuel Vadot        - description: register offset
37*8d13bc63SEmmanuel Vadot        - description: register size
38*8d13bc63SEmmanuel Vadot    maxItems: 1
39*8d13bc63SEmmanuel Vadot
40*8d13bc63SEmmanuel Vadot  clocks:
41*8d13bc63SEmmanuel Vadot    maxItems: 1
42*8d13bc63SEmmanuel Vadot
43*8d13bc63SEmmanuel Vadotrequired:
44*8d13bc63SEmmanuel Vadot  - compatible
45*8d13bc63SEmmanuel Vadot  - reg
46*8d13bc63SEmmanuel Vadot  - mediatek,gce-client-reg
47*8d13bc63SEmmanuel Vadot  - clocks
48*8d13bc63SEmmanuel Vadot
49*8d13bc63SEmmanuel VadotadditionalProperties: false
50*8d13bc63SEmmanuel Vadot
51*8d13bc63SEmmanuel Vadotexamples:
52*8d13bc63SEmmanuel Vadot  - |
53*8d13bc63SEmmanuel Vadot    #include <dt-bindings/clock/mt8195-clk.h>
54*8d13bc63SEmmanuel Vadot    #include <dt-bindings/gce/mt8195-gce.h>
55*8d13bc63SEmmanuel Vadot
56*8d13bc63SEmmanuel Vadot    display@14004000 {
57*8d13bc63SEmmanuel Vadot        compatible = "mediatek,mt8195-mdp3-hdr";
58*8d13bc63SEmmanuel Vadot        reg = <0x14004000 0x1000>;
59*8d13bc63SEmmanuel Vadot        mediatek,gce-client-reg = <&gce1 SUBSYS_1400XXXX 0x4000 0x1000>;
60*8d13bc63SEmmanuel Vadot        clocks = <&vppsys0 CLK_VPP0_MDP_HDR>;
61*8d13bc63SEmmanuel Vadot    };
62