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 - enum: 19 - mediatek,mt2701-jpgdec 20 - mediatek,mt8173-jpgdec 21 - mediatek,mt8189-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 minItems: 1 36 maxItems: 2 37 38 clock-names: 39 oneOf: 40 - items: 41 - const: jpgdec 42 - items: 43 - const: jpgdec-smi 44 - const: jpgdec 45 46 power-domains: 47 maxItems: 1 48 49 iommus: 50 minItems: 2 51 maxItems: 32 52 description: | 53 Points to the respective IOMMU block with master port as argument, see 54 Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml for details. 55 Ports are according to the HW. 56 57 mediatek,larb: 58 $ref: /schemas/types.yaml#/definitions/phandle 59 description: | 60 A phandle to the local arbiter (SMI LARB) node. This explicitly 61 describes the hardware topology where the JPEG block is connected 62 to a dedicated SMI LARB for memory bandwidth arbitration. It is 63 required to accurately represent the hardware connection independently 64 of the IOMMU. 65 66required: 67 - compatible 68 - reg 69 - interrupts 70 - clocks 71 - clock-names 72 - power-domains 73 - iommus 74 75allOf: 76 - if: 77 properties: 78 compatible: 79 contains: 80 const: mediatek,mt8189-jpgdec 81 then: 82 properties: 83 clocks: 84 maxItems: 1 85 clock-names: 86 maxItems: 1 87 required: 88 - mediatek,larb 89 else: 90 properties: 91 clocks: 92 minItems: 2 93 clock-names: 94 minItems: 2 95 mediatek,larb: false 96 97additionalProperties: false 98 99examples: 100 - | 101 #include <dt-bindings/clock/mt2701-clk.h> 102 #include <dt-bindings/interrupt-controller/arm-gic.h> 103 #include <dt-bindings/memory/mt2701-larb-port.h> 104 #include <dt-bindings/power/mt2701-power.h> 105 jpegdec: jpegdec@15004000 { 106 compatible = "mediatek,mt2701-jpgdec"; 107 reg = <0x15004000 0x1000>; 108 interrupts = <GIC_SPI 143 IRQ_TYPE_LEVEL_LOW>; 109 clocks = <&imgsys CLK_IMG_JPGDEC_SMI>, 110 <&imgsys CLK_IMG_JPGDEC>; 111 clock-names = "jpgdec-smi", 112 "jpgdec"; 113 power-domains = <&scpsys MT2701_POWER_DOMAIN_ISP>; 114 iommus = <&iommu MT2701_M4U_PORT_JPGDEC_WDMA>, 115 <&iommu MT2701_M4U_PORT_JPGDEC_BSDMA>; 116 }; 117