xref: /freebsd/sys/contrib/device-tree/Bindings/media/mediatek,mdp3-rsz.yaml (revision 7ef62cebc2f965b0f640263e179276928885e33d)
1*7ef62cebSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*7ef62cebSEmmanuel Vadot%YAML 1.2
3*7ef62cebSEmmanuel Vadot---
4*7ef62cebSEmmanuel Vadot$id: http://devicetree.org/schemas/media/mediatek,mdp3-rsz.yaml#
5*7ef62cebSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*7ef62cebSEmmanuel Vadot
7*7ef62cebSEmmanuel Vadottitle: MediaTek Resizer
8*7ef62cebSEmmanuel Vadot
9*7ef62cebSEmmanuel Vadotmaintainers:
10*7ef62cebSEmmanuel Vadot  - Matthias Brugger <matthias.bgg@gmail.com>
11*7ef62cebSEmmanuel Vadot  - Moudy Ho <moudy.ho@mediatek.com>
12*7ef62cebSEmmanuel Vadot
13*7ef62cebSEmmanuel Vadotdescription: |
14*7ef62cebSEmmanuel Vadot  One of Media Data Path 3 (MDP3) components used to do frame resizing.
15*7ef62cebSEmmanuel Vadot
16*7ef62cebSEmmanuel Vadotproperties:
17*7ef62cebSEmmanuel Vadot  compatible:
18*7ef62cebSEmmanuel Vadot    items:
19*7ef62cebSEmmanuel Vadot      - enum:
20*7ef62cebSEmmanuel Vadot          - mediatek,mt8183-mdp3-rsz
21*7ef62cebSEmmanuel Vadot
22*7ef62cebSEmmanuel Vadot  reg:
23*7ef62cebSEmmanuel Vadot    maxItems: 1
24*7ef62cebSEmmanuel Vadot
25*7ef62cebSEmmanuel Vadot  mediatek,gce-client-reg:
26*7ef62cebSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/phandle-array
27*7ef62cebSEmmanuel Vadot    items:
28*7ef62cebSEmmanuel Vadot      items:
29*7ef62cebSEmmanuel Vadot        - description: phandle of GCE
30*7ef62cebSEmmanuel Vadot        - description: GCE subsys id
31*7ef62cebSEmmanuel Vadot        - description: register offset
32*7ef62cebSEmmanuel Vadot        - description: register size
33*7ef62cebSEmmanuel Vadot    description: The register of client driver can be configured by gce with
34*7ef62cebSEmmanuel Vadot      4 arguments defined in this property. Each GCE subsys id is mapping to
35*7ef62cebSEmmanuel Vadot      a client defined in the header include/dt-bindings/gce/<chip>-gce.h.
36*7ef62cebSEmmanuel Vadot
37*7ef62cebSEmmanuel Vadot  mediatek,gce-events:
38*7ef62cebSEmmanuel Vadot    description:
39*7ef62cebSEmmanuel Vadot      The event id which is mapping to the specific hardware event signal
40*7ef62cebSEmmanuel Vadot      to gce. The event id is defined in the gce header
41*7ef62cebSEmmanuel Vadot      include/dt-bindings/gce/<chip>-gce.h of each chips.
42*7ef62cebSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32-array
43*7ef62cebSEmmanuel Vadot
44*7ef62cebSEmmanuel Vadot  clocks:
45*7ef62cebSEmmanuel Vadot    minItems: 1
46*7ef62cebSEmmanuel Vadot
47*7ef62cebSEmmanuel Vadotrequired:
48*7ef62cebSEmmanuel Vadot  - compatible
49*7ef62cebSEmmanuel Vadot  - reg
50*7ef62cebSEmmanuel Vadot  - mediatek,gce-client-reg
51*7ef62cebSEmmanuel Vadot  - mediatek,gce-events
52*7ef62cebSEmmanuel Vadot  - clocks
53*7ef62cebSEmmanuel Vadot
54*7ef62cebSEmmanuel VadotadditionalProperties: false
55*7ef62cebSEmmanuel Vadot
56*7ef62cebSEmmanuel Vadotexamples:
57*7ef62cebSEmmanuel Vadot  - |
58*7ef62cebSEmmanuel Vadot    #include <dt-bindings/clock/mt8183-clk.h>
59*7ef62cebSEmmanuel Vadot    #include <dt-bindings/gce/mt8183-gce.h>
60*7ef62cebSEmmanuel Vadot
61*7ef62cebSEmmanuel Vadot    mdp3_rsz0: mdp3-rsz0@14003000 {
62*7ef62cebSEmmanuel Vadot      compatible = "mediatek,mt8183-mdp3-rsz";
63*7ef62cebSEmmanuel Vadot      reg = <0x14003000 0x1000>;
64*7ef62cebSEmmanuel Vadot      mediatek,gce-client-reg = <&gce SUBSYS_1400XXXX 0x3000 0x1000>;
65*7ef62cebSEmmanuel Vadot      mediatek,gce-events = <CMDQ_EVENT_MDP_RSZ0_SOF>,
66*7ef62cebSEmmanuel Vadot                            <CMDQ_EVENT_MDP_RSZ0_EOF>;
67*7ef62cebSEmmanuel Vadot      clocks = <&mmsys CLK_MM_MDP_RSZ0>;
68*7ef62cebSEmmanuel Vadot    };
69*7ef62cebSEmmanuel Vadot
70*7ef62cebSEmmanuel Vadot    mdp3_rsz1: mdp3-rsz1@14004000 {
71*7ef62cebSEmmanuel Vadot      compatible = "mediatek,mt8183-mdp3-rsz";
72*7ef62cebSEmmanuel Vadot      reg = <0x14004000 0x1000>;
73*7ef62cebSEmmanuel Vadot      mediatek,gce-client-reg = <&gce SUBSYS_1400XXXX 0x4000 0x1000>;
74*7ef62cebSEmmanuel Vadot      mediatek,gce-events = <CMDQ_EVENT_MDP_RSZ1_SOF>,
75*7ef62cebSEmmanuel Vadot                            <CMDQ_EVENT_MDP_RSZ1_EOF>;
76*7ef62cebSEmmanuel Vadot      clocks = <&mmsys CLK_MM_MDP_RSZ1>;
77*7ef62cebSEmmanuel Vadot    };
78