xref: /openbmc/linux/Documentation/devicetree/bindings/display/mediatek/mediatek,merge.yaml (revision 1ac731c529cd4d6adbce134754b51ff7d822b145)
14ed545e7Sjason-jh.lin# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
24ed545e7Sjason-jh.lin%YAML 1.2
34ed545e7Sjason-jh.lin---
44ed545e7Sjason-jh.lin$id: http://devicetree.org/schemas/display/mediatek/mediatek,merge.yaml#
54ed545e7Sjason-jh.lin$schema: http://devicetree.org/meta-schemas/core.yaml#
64ed545e7Sjason-jh.lin
74ed545e7Sjason-jh.lintitle: Mediatek display merge
84ed545e7Sjason-jh.lin
94ed545e7Sjason-jh.linmaintainers:
104ed545e7Sjason-jh.lin  - Chun-Kuang Hu <chunkuang.hu@kernel.org>
114ed545e7Sjason-jh.lin  - Philipp Zabel <p.zabel@pengutronix.de>
124ed545e7Sjason-jh.lin
134ed545e7Sjason-jh.lindescription: |
144ed545e7Sjason-jh.lin  Mediatek display merge, namely MERGE, is used to merge two slice-per-line
154ed545e7Sjason-jh.lin  inputs into one side-by-side output.
164ed545e7Sjason-jh.lin  MERGE device node must be siblings to the central MMSYS_CONFIG node.
174ed545e7Sjason-jh.lin  For a description of the MMSYS_CONFIG binding, see
184ed545e7Sjason-jh.lin  Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.yaml
194ed545e7Sjason-jh.lin  for details.
204ed545e7Sjason-jh.lin
214ed545e7Sjason-jh.linproperties:
224ed545e7Sjason-jh.lin  compatible:
234ed545e7Sjason-jh.lin    oneOf:
24*112d5560SKrzysztof Kozlowski      - enum:
25*112d5560SKrzysztof Kozlowski          - mediatek,mt8173-disp-merge
26*112d5560SKrzysztof Kozlowski          - mediatek,mt8195-disp-merge
274ed545e7Sjason-jh.lin      - items:
284ed545e7Sjason-jh.lin          - const: mediatek,mt6795-disp-merge
294ed545e7Sjason-jh.lin          - const: mediatek,mt8173-disp-merge
304ed545e7Sjason-jh.lin
314ed545e7Sjason-jh.lin  reg:
324ed545e7Sjason-jh.lin    maxItems: 1
334ed545e7Sjason-jh.lin
344ed545e7Sjason-jh.lin  interrupts:
354ed545e7Sjason-jh.lin    maxItems: 1
364ed545e7Sjason-jh.lin
374ed545e7Sjason-jh.lin  power-domains:
384ed545e7Sjason-jh.lin    description: A phandle and PM domain specifier as defined by bindings of
394ed545e7Sjason-jh.lin      the power controller specified by phandle. See
40bff4e302SAngeloGioacchino Del Regno      Documentation/devicetree/bindings/power/power-domain.yaml for details.
411cffdf60Sjason-jh.lin
421cffdf60Sjason-jh.lin  clocks:
431cffdf60Sjason-jh.lin    minItems: 1
44bff4e302SAngeloGioacchino Del Regno    maxItems: 2
45bff4e302SAngeloGioacchino Del Regno
46bff4e302SAngeloGioacchino Del Regno  clock-names:
47bff4e302SAngeloGioacchino Del Regno    oneOf:
481cffdf60Sjason-jh.lin      - items:
491cffdf60Sjason-jh.lin          - const: merge
501cffdf60Sjason-jh.lin      - items:
511cffdf60Sjason-jh.lin          - const: merge
521cffdf60Sjason-jh.lin          - const: merge_async
531cffdf60Sjason-jh.lin
541cffdf60Sjason-jh.lin  mediatek,merge-fifo-en:
551cffdf60Sjason-jh.lin    description:
561cffdf60Sjason-jh.lin      The setting of merge fifo is mainly provided for the display latency
571cffdf60Sjason-jh.lin      buffer to ensure that the back-end panel display data will not be
581cffdf60Sjason-jh.lin      underrun, a little more data is needed in the fifo.
591cffdf60Sjason-jh.lin      According to the merge fifo settings, when the water level is detected
604ed545e7Sjason-jh.lin      to be insufficient, it will trigger RDMA sending ultra and preulra
6187e70353SNancy.Lin      command to SMI to speed up the data rate.
6287e70353SNancy.Lin    type: boolean
6387e70353SNancy.Lin
6487e70353SNancy.Lin  mediatek,merge-mute:
654ed545e7Sjason-jh.lin    description: Support mute function. Mute the content of merge output.
664ed545e7Sjason-jh.lin    type: boolean
674ed545e7Sjason-jh.lin
684ed545e7Sjason-jh.lin  mediatek,gce-client-reg:
694ed545e7Sjason-jh.lin    description: The register of client driver can be configured by gce with
704ed545e7Sjason-jh.lin      4 arguments defined in this property, such as phandle of gce, subsys id,
714ed545e7Sjason-jh.lin      register offset and size. Each GCE subsys id is mapping to a client
724ed545e7Sjason-jh.lin      defined in the header include/dt-bindings/gce/<chip>-gce.h.
731cffdf60Sjason-jh.lin    $ref: /schemas/types.yaml#/definitions/phandle-array
741cffdf60Sjason-jh.lin    maxItems: 1
751cffdf60Sjason-jh.lin
761cffdf60Sjason-jh.lin  resets:
771cffdf60Sjason-jh.lin    description: reset controller
784ed545e7Sjason-jh.lin      See Documentation/devicetree/bindings/reset/reset.txt for details.
794ed545e7Sjason-jh.lin    maxItems: 1
804ed545e7Sjason-jh.lin
814ed545e7Sjason-jh.linrequired:
824ed545e7Sjason-jh.lin  - compatible
834ed545e7Sjason-jh.lin  - reg
844ed545e7Sjason-jh.lin  - power-domains
854ed545e7Sjason-jh.lin  - clocks
864ed545e7Sjason-jh.lin
874ed545e7Sjason-jh.linadditionalProperties: false
88bff4e302SAngeloGioacchino Del Regno
89bff4e302SAngeloGioacchino Del Regnoexamples:
90bff4e302SAngeloGioacchino Del Regno  - |
91bff4e302SAngeloGioacchino Del Regno    #include <dt-bindings/interrupt-controller/arm-gic.h>
92bff4e302SAngeloGioacchino Del Regno    #include <dt-bindings/clock/mt8173-clk.h>
93bff4e302SAngeloGioacchino Del Regno    #include <dt-bindings/power/mt8173-power.h>
94bff4e302SAngeloGioacchino Del Regno
954ed545e7Sjason-jh.lin    soc {
964ed545e7Sjason-jh.lin        #address-cells = <2>;
974ed545e7Sjason-jh.lin        #size-cells = <2>;
984ed545e7Sjason-jh.lin
994ed545e7Sjason-jh.lin        merge@14017000 {
1004ed545e7Sjason-jh.lin            compatible = "mediatek,mt8173-disp-merge";
101bff4e302SAngeloGioacchino Del Regno            reg = <0 0x14017000 0 0x1000>;
102bff4e302SAngeloGioacchino Del Regno            power-domains = <&spm MT8173_POWER_DOMAIN_MM>;
1034ed545e7Sjason-jh.lin            clocks = <&mmsys CLK_MM_DISP_MERGE>;
104            clock-names = "merge";
105        };
106    };
107