xref: /linux/Documentation/devicetree/bindings/display/mediatek/mediatek,wdma.yaml (revision bff4e302a6679b0df8ac950979faabbc8f3ae961)
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,wdma.yaml#
54ed545e7Sjason-jh.lin$schema: http://devicetree.org/meta-schemas/core.yaml#
64ed545e7Sjason-jh.lin
74ed545e7Sjason-jh.lintitle: Mediatek Write Direct Memory Access
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 Write Direct Memory Access(WDMA) component used to write
154ed545e7Sjason-jh.lin  the data into DMA.
164ed545e7Sjason-jh.lin  WDMA 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:
244ed545e7Sjason-jh.lin      - items:
254ed545e7Sjason-jh.lin          - const: mediatek,mt8173-disp-wdma
264ed545e7Sjason-jh.lin
274ed545e7Sjason-jh.lin  reg:
284ed545e7Sjason-jh.lin    maxItems: 1
294ed545e7Sjason-jh.lin
304ed545e7Sjason-jh.lin  interrupts:
314ed545e7Sjason-jh.lin    maxItems: 1
324ed545e7Sjason-jh.lin
334ed545e7Sjason-jh.lin  power-domains:
344ed545e7Sjason-jh.lin    description: A phandle and PM domain specifier as defined by bindings of
354ed545e7Sjason-jh.lin      the power controller specified by phandle. See
364ed545e7Sjason-jh.lin      Documentation/devicetree/bindings/power/power-domain.yaml for details.
374ed545e7Sjason-jh.lin
384ed545e7Sjason-jh.lin  clocks:
394ed545e7Sjason-jh.lin    items:
404ed545e7Sjason-jh.lin      - description: WDMA Clock
414ed545e7Sjason-jh.lin
424ed545e7Sjason-jh.lin  iommus:
434ed545e7Sjason-jh.lin    description:
444ed545e7Sjason-jh.lin      This property should point to the respective IOMMU block with master port as argument,
454ed545e7Sjason-jh.lin      see Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml for details.
464ed545e7Sjason-jh.lin
474ed545e7Sjason-jh.lin  mediatek,gce-client-reg:
484ed545e7Sjason-jh.lin    description: The register of client driver can be configured by gce with
494ed545e7Sjason-jh.lin      4 arguments defined in this property, such as phandle of gce, subsys id,
504ed545e7Sjason-jh.lin      register offset and size. Each GCE subsys id is mapping to a client
514ed545e7Sjason-jh.lin      defined in the header include/dt-bindings/gce/<chip>-gce.h.
524ed545e7Sjason-jh.lin    $ref: /schemas/types.yaml#/definitions/phandle-array
534ed545e7Sjason-jh.lin    maxItems: 1
544ed545e7Sjason-jh.lin
554ed545e7Sjason-jh.linrequired:
564ed545e7Sjason-jh.lin  - compatible
574ed545e7Sjason-jh.lin  - reg
584ed545e7Sjason-jh.lin  - interrupts
594ed545e7Sjason-jh.lin  - power-domains
604ed545e7Sjason-jh.lin  - clocks
614ed545e7Sjason-jh.lin  - iommus
624ed545e7Sjason-jh.lin
634ed545e7Sjason-jh.linadditionalProperties: false
644ed545e7Sjason-jh.lin
654ed545e7Sjason-jh.linexamples:
664ed545e7Sjason-jh.lin  - |
67*bff4e302SAngeloGioacchino Del Regno    #include <dt-bindings/interrupt-controller/arm-gic.h>
68*bff4e302SAngeloGioacchino Del Regno    #include <dt-bindings/clock/mt8173-clk.h>
69*bff4e302SAngeloGioacchino Del Regno    #include <dt-bindings/power/mt8173-power.h>
70*bff4e302SAngeloGioacchino Del Regno    #include <dt-bindings/gce/mt8173-gce.h>
71*bff4e302SAngeloGioacchino Del Regno    #include <dt-bindings/memory/mt8173-larb-port.h>
72*bff4e302SAngeloGioacchino Del Regno
73*bff4e302SAngeloGioacchino Del Regno    soc {
74*bff4e302SAngeloGioacchino Del Regno        #address-cells = <2>;
75*bff4e302SAngeloGioacchino Del Regno        #size-cells = <2>;
764ed545e7Sjason-jh.lin
774ed545e7Sjason-jh.lin        wdma0: wdma@14011000 {
784ed545e7Sjason-jh.lin            compatible = "mediatek,mt8173-disp-wdma";
794ed545e7Sjason-jh.lin            reg = <0 0x14011000 0 0x1000>;
804ed545e7Sjason-jh.lin            interrupts = <GIC_SPI 185 IRQ_TYPE_LEVEL_LOW>;
814ed545e7Sjason-jh.lin            power-domains = <&scpsys MT8173_POWER_DOMAIN_MM>;
824ed545e7Sjason-jh.lin            clocks = <&mmsys CLK_MM_DISP_WDMA0>;
834ed545e7Sjason-jh.lin            iommus = <&iommu M4U_PORT_DISP_WDMA0>;
844ed545e7Sjason-jh.lin            mediatek,gce-client-reg = <&gce SUBSYS_1401XXXX 0x1000 0x1000>;
854ed545e7Sjason-jh.lin        };
86*bff4e302SAngeloGioacchino Del Regno    };
87