xref: /freebsd/sys/contrib/device-tree/Bindings/media/mediatek,mdp3-hdr.yaml (revision ae5de77ed78ae54d86cead5604869212e8008e6b)
18d13bc63SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
28d13bc63SEmmanuel Vadot%YAML 1.2
38d13bc63SEmmanuel Vadot---
48d13bc63SEmmanuel Vadot$id: http://devicetree.org/schemas/media/mediatek,mdp3-hdr.yaml#
58d13bc63SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
68d13bc63SEmmanuel Vadot
78d13bc63SEmmanuel Vadottitle: MediaTek Media Data Path 3 HDR
88d13bc63SEmmanuel Vadot
98d13bc63SEmmanuel Vadotmaintainers:
108d13bc63SEmmanuel Vadot  - Matthias Brugger <matthias.bgg@gmail.com>
118d13bc63SEmmanuel Vadot  - Moudy Ho <moudy.ho@mediatek.com>
128d13bc63SEmmanuel Vadot
138d13bc63SEmmanuel Vadotdescription:
148d13bc63SEmmanuel Vadot  A Media Data Path 3 (MDP3) component used to perform conversion from
158d13bc63SEmmanuel Vadot  High Dynamic Range (HDR) to Standard Dynamic Range (SDR).
168d13bc63SEmmanuel Vadot
178d13bc63SEmmanuel Vadotproperties:
188d13bc63SEmmanuel Vadot  compatible:
19*ae5de77eSEmmanuel Vadot    oneOf:
20*ae5de77eSEmmanuel Vadot      - enum:
218d13bc63SEmmanuel Vadot          - mediatek,mt8195-mdp3-hdr
22*ae5de77eSEmmanuel Vadot      - items:
23*ae5de77eSEmmanuel Vadot          - const: mediatek,mt8188-mdp3-hdr
24*ae5de77eSEmmanuel Vadot          - const: mediatek,mt8195-mdp3-hdr
258d13bc63SEmmanuel Vadot
268d13bc63SEmmanuel Vadot  reg:
278d13bc63SEmmanuel Vadot    maxItems: 1
288d13bc63SEmmanuel Vadot
298d13bc63SEmmanuel Vadot  mediatek,gce-client-reg:
308d13bc63SEmmanuel Vadot    description:
318d13bc63SEmmanuel Vadot      The register of display function block to be set by gce. There are 4 arguments,
328d13bc63SEmmanuel Vadot      such as gce node, subsys id, offset and register size. The subsys id that is
338d13bc63SEmmanuel Vadot      mapping to the register of display function blocks is defined in the gce header
348d13bc63SEmmanuel Vadot      include/dt-bindings/gce/<chip>-gce.h of each chips.
358d13bc63SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/phandle-array
368d13bc63SEmmanuel Vadot    items:
378d13bc63SEmmanuel Vadot      items:
388d13bc63SEmmanuel Vadot        - description: phandle of GCE
398d13bc63SEmmanuel Vadot        - description: GCE subsys id
408d13bc63SEmmanuel Vadot        - description: register offset
418d13bc63SEmmanuel Vadot        - description: register size
428d13bc63SEmmanuel Vadot    maxItems: 1
438d13bc63SEmmanuel Vadot
448d13bc63SEmmanuel Vadot  clocks:
458d13bc63SEmmanuel Vadot    maxItems: 1
468d13bc63SEmmanuel Vadot
478d13bc63SEmmanuel Vadotrequired:
488d13bc63SEmmanuel Vadot  - compatible
498d13bc63SEmmanuel Vadot  - reg
508d13bc63SEmmanuel Vadot  - mediatek,gce-client-reg
518d13bc63SEmmanuel Vadot  - clocks
528d13bc63SEmmanuel Vadot
538d13bc63SEmmanuel VadotadditionalProperties: false
548d13bc63SEmmanuel Vadot
558d13bc63SEmmanuel Vadotexamples:
568d13bc63SEmmanuel Vadot  - |
578d13bc63SEmmanuel Vadot    #include <dt-bindings/clock/mt8195-clk.h>
588d13bc63SEmmanuel Vadot    #include <dt-bindings/gce/mt8195-gce.h>
598d13bc63SEmmanuel Vadot
608d13bc63SEmmanuel Vadot    display@14004000 {
618d13bc63SEmmanuel Vadot        compatible = "mediatek,mt8195-mdp3-hdr";
628d13bc63SEmmanuel Vadot        reg = <0x14004000 0x1000>;
638d13bc63SEmmanuel Vadot        mediatek,gce-client-reg = <&gce1 SUBSYS_1400XXXX 0x4000 0x1000>;
648d13bc63SEmmanuel Vadot        clocks = <&vppsys0 CLK_VPP0_MDP_HDR>;
658d13bc63SEmmanuel Vadot    };
66