xref: /linux/Documentation/devicetree/bindings/media/mediatek-jpeg-decoder.yaml (revision fa79e55d467366a2c52c68a261a0d6ea5f8a6534)
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/media/mediatek-jpeg-decoder.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: MediaTek JPEG Decoder
8
9maintainers:
10  - Xia Jiang <xia.jiang@mediatek.com>
11
12description: |-
13  Mediatek JPEG Decoder is the JPEG decode hardware present in Mediatek SoCs
14
15properties:
16  compatible:
17    oneOf:
18      - items:
19          - enum:
20              - mediatek,mt8173-jpgdec
21              - mediatek,mt2701-jpgdec
22      - items:
23          - enum:
24              - mediatek,mt7623-jpgdec
25              - mediatek,mt8188-jpgdec
26          - const: mediatek,mt2701-jpgdec
27
28  reg:
29    maxItems: 1
30
31  interrupts:
32    maxItems: 1
33
34  clocks:
35    maxItems: 2
36    minItems: 2
37
38  clock-names:
39    items:
40      - const: jpgdec-smi
41      - const: jpgdec
42
43  power-domains:
44    maxItems: 1
45
46  iommus:
47    minItems: 2
48    maxItems: 32
49    description: |
50      Points to the respective IOMMU block with master port as argument, see
51      Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml for details.
52      Ports are according to the HW.
53
54required:
55  - compatible
56  - reg
57  - interrupts
58  - clocks
59  - clock-names
60  - power-domains
61  - iommus
62
63additionalProperties: false
64
65examples:
66  - |
67    #include <dt-bindings/clock/mt2701-clk.h>
68    #include <dt-bindings/interrupt-controller/arm-gic.h>
69    #include <dt-bindings/memory/mt2701-larb-port.h>
70    #include <dt-bindings/power/mt2701-power.h>
71    jpegdec: jpegdec@15004000 {
72      compatible = "mediatek,mt2701-jpgdec";
73      reg = <0x15004000 0x1000>;
74      interrupts = <GIC_SPI 143 IRQ_TYPE_LEVEL_LOW>;
75      clocks =  <&imgsys CLK_IMG_JPGDEC_SMI>,
76                <&imgsys CLK_IMG_JPGDEC>;
77      clock-names = "jpgdec-smi",
78                    "jpgdec";
79      power-domains = <&scpsys MT2701_POWER_DOMAIN_ISP>;
80      iommus = <&iommu MT2701_M4U_PORT_JPGDEC_WDMA>,
81               <&iommu MT2701_M4U_PORT_JPGDEC_BSDMA>;
82    };
83