1c9ccf3a3SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2c9ccf3a3SEmmanuel Vadot%YAML 1.2 3c9ccf3a3SEmmanuel Vadot--- 4c9ccf3a3SEmmanuel Vadot$id: http://devicetree.org/schemas/media/mediatek-jpeg-encoder.yaml# 5c9ccf3a3SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6c9ccf3a3SEmmanuel Vadot 77ef62cebSEmmanuel Vadottitle: MediaTek JPEG Encoder 8c9ccf3a3SEmmanuel Vadot 9c9ccf3a3SEmmanuel Vadotmaintainers: 10c9ccf3a3SEmmanuel Vadot - Xia Jiang <xia.jiang@mediatek.com> 11c9ccf3a3SEmmanuel Vadot 12c9ccf3a3SEmmanuel Vadotdescription: |- 13c9ccf3a3SEmmanuel Vadot MediaTek JPEG Encoder is the JPEG encode hardware present in MediaTek SoCs 14c9ccf3a3SEmmanuel Vadot 15c9ccf3a3SEmmanuel Vadotproperties: 16c9ccf3a3SEmmanuel Vadot compatible: 17c9ccf3a3SEmmanuel Vadot items: 18c9ccf3a3SEmmanuel Vadot - enum: 19c9ccf3a3SEmmanuel Vadot - mediatek,mt2701-jpgenc 20c9ccf3a3SEmmanuel Vadot - mediatek,mt8183-jpgenc 21b97ee269SEmmanuel Vadot - mediatek,mt8186-jpgenc 228bab661aSEmmanuel Vadot - mediatek,mt8188-jpgenc 23c9ccf3a3SEmmanuel Vadot - const: mediatek,mtk-jpgenc 24c9ccf3a3SEmmanuel Vadot reg: 25c9ccf3a3SEmmanuel Vadot maxItems: 1 26c9ccf3a3SEmmanuel Vadot 27c9ccf3a3SEmmanuel Vadot interrupts: 28c9ccf3a3SEmmanuel Vadot maxItems: 1 29c9ccf3a3SEmmanuel Vadot 30c9ccf3a3SEmmanuel Vadot clocks: 31c9ccf3a3SEmmanuel Vadot maxItems: 1 32c9ccf3a3SEmmanuel Vadot 33c9ccf3a3SEmmanuel Vadot clock-names: 34c9ccf3a3SEmmanuel Vadot items: 35c9ccf3a3SEmmanuel Vadot - const: jpgenc 36c9ccf3a3SEmmanuel Vadot 37c9ccf3a3SEmmanuel Vadot power-domains: 38c9ccf3a3SEmmanuel Vadot maxItems: 1 39c9ccf3a3SEmmanuel Vadot 40c9ccf3a3SEmmanuel Vadot iommus: 41*01950c46SEmmanuel Vadot minItems: 2 42*01950c46SEmmanuel Vadot maxItems: 4 43c9ccf3a3SEmmanuel Vadot description: | 44c9ccf3a3SEmmanuel Vadot Points to the respective IOMMU block with master port as argument, see 45c9ccf3a3SEmmanuel Vadot Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml for details. 46c9ccf3a3SEmmanuel Vadot Ports are according to the HW. 47c9ccf3a3SEmmanuel Vadot 48c9ccf3a3SEmmanuel Vadotrequired: 49c9ccf3a3SEmmanuel Vadot - compatible 50c9ccf3a3SEmmanuel Vadot - reg 51c9ccf3a3SEmmanuel Vadot - interrupts 52c9ccf3a3SEmmanuel Vadot - clocks 53c9ccf3a3SEmmanuel Vadot - clock-names 54c9ccf3a3SEmmanuel Vadot - power-domains 55c9ccf3a3SEmmanuel Vadot - iommus 56c9ccf3a3SEmmanuel Vadot 57c9ccf3a3SEmmanuel VadotadditionalProperties: false 58c9ccf3a3SEmmanuel Vadot 59c9ccf3a3SEmmanuel Vadotexamples: 60c9ccf3a3SEmmanuel Vadot - | 61c9ccf3a3SEmmanuel Vadot #include <dt-bindings/clock/mt2701-clk.h> 62c9ccf3a3SEmmanuel Vadot #include <dt-bindings/interrupt-controller/arm-gic.h> 63c9ccf3a3SEmmanuel Vadot #include <dt-bindings/memory/mt2701-larb-port.h> 64c9ccf3a3SEmmanuel Vadot #include <dt-bindings/power/mt2701-power.h> 65c9ccf3a3SEmmanuel Vadot jpegenc: jpegenc@1500a000 { 66c9ccf3a3SEmmanuel Vadot compatible = "mediatek,mt2701-jpgenc", 67c9ccf3a3SEmmanuel Vadot "mediatek,mtk-jpgenc"; 68c9ccf3a3SEmmanuel Vadot reg = <0x1500a000 0x1000>; 69c9ccf3a3SEmmanuel Vadot interrupts = <GIC_SPI 141 IRQ_TYPE_LEVEL_LOW>; 70c9ccf3a3SEmmanuel Vadot clocks = <&imgsys CLK_IMG_VENC>; 71c9ccf3a3SEmmanuel Vadot clock-names = "jpgenc"; 72c9ccf3a3SEmmanuel Vadot power-domains = <&scpsys MT2701_POWER_DOMAIN_ISP>; 73c9ccf3a3SEmmanuel Vadot iommus = <&iommu MT2701_M4U_PORT_JPGENC_RDMA>, 74c9ccf3a3SEmmanuel Vadot <&iommu MT2701_M4U_PORT_JPGENC_BSDMA>; 75c9ccf3a3SEmmanuel Vadot }; 76