1a16ce2f3SHsin-Yi Wang# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2a16ce2f3SHsin-Yi Wang%YAML 1.2 3a16ce2f3SHsin-Yi Wang--- 4a16ce2f3SHsin-Yi Wang$id: http://devicetree.org/schemas/media/mediatek-jpeg-encoder.yaml# 5a16ce2f3SHsin-Yi Wang$schema: http://devicetree.org/meta-schemas/core.yaml# 6a16ce2f3SHsin-Yi Wang 7a16ce2f3SHsin-Yi Wangtitle: MediaTek JPEG Encoder Device Tree Bindings 8a16ce2f3SHsin-Yi Wang 9a16ce2f3SHsin-Yi Wangmaintainers: 10a16ce2f3SHsin-Yi Wang - Xia Jiang <xia.jiang@mediatek.com> 11a16ce2f3SHsin-Yi Wang 12a16ce2f3SHsin-Yi Wangdescription: |- 13a16ce2f3SHsin-Yi Wang MediaTek JPEG Encoder is the JPEG encode hardware present in MediaTek SoCs 14a16ce2f3SHsin-Yi Wang 15a16ce2f3SHsin-Yi Wangproperties: 16a16ce2f3SHsin-Yi Wang compatible: 17a16ce2f3SHsin-Yi Wang items: 18a16ce2f3SHsin-Yi Wang - enum: 19a16ce2f3SHsin-Yi Wang - mediatek,mt2701-jpgenc 20*bd73292dSHsin-Yi Wang - mediatek,mt8183-jpgenc 21a16ce2f3SHsin-Yi Wang - const: mediatek,mtk-jpgenc 22a16ce2f3SHsin-Yi Wang reg: 23a16ce2f3SHsin-Yi Wang maxItems: 1 24a16ce2f3SHsin-Yi Wang 25a16ce2f3SHsin-Yi Wang interrupts: 26a16ce2f3SHsin-Yi Wang maxItems: 1 27a16ce2f3SHsin-Yi Wang 28a16ce2f3SHsin-Yi Wang clocks: 29a16ce2f3SHsin-Yi Wang maxItems: 1 30a16ce2f3SHsin-Yi Wang 31a16ce2f3SHsin-Yi Wang clock-names: 32a16ce2f3SHsin-Yi Wang items: 33a16ce2f3SHsin-Yi Wang - const: jpgenc 34a16ce2f3SHsin-Yi Wang 35a16ce2f3SHsin-Yi Wang power-domains: 36a16ce2f3SHsin-Yi Wang maxItems: 1 37a16ce2f3SHsin-Yi Wang 38a16ce2f3SHsin-Yi Wang mediatek,larb: 39a16ce2f3SHsin-Yi Wang $ref: '/schemas/types.yaml#/definitions/phandle' 40a16ce2f3SHsin-Yi Wang description: | 41a16ce2f3SHsin-Yi Wang Must contain the local arbiters in the current Socs, see 42a16ce2f3SHsin-Yi Wang Documentation/devicetree/bindings/memory-controllers/mediatek,smi-larb.yaml 43a16ce2f3SHsin-Yi Wang for details. 44a16ce2f3SHsin-Yi Wang 45a16ce2f3SHsin-Yi Wang iommus: 46a16ce2f3SHsin-Yi Wang maxItems: 2 47a16ce2f3SHsin-Yi Wang description: | 48a16ce2f3SHsin-Yi Wang Points to the respective IOMMU block with master port as argument, see 49a16ce2f3SHsin-Yi Wang Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml for details. 50a16ce2f3SHsin-Yi Wang Ports are according to the HW. 51a16ce2f3SHsin-Yi Wang 52a16ce2f3SHsin-Yi Wangrequired: 53a16ce2f3SHsin-Yi Wang - compatible 54a16ce2f3SHsin-Yi Wang - reg 55a16ce2f3SHsin-Yi Wang - interrupts 56a16ce2f3SHsin-Yi Wang - clocks 57a16ce2f3SHsin-Yi Wang - clock-names 58a16ce2f3SHsin-Yi Wang - power-domains 59a16ce2f3SHsin-Yi Wang - mediatek,larb 60a16ce2f3SHsin-Yi Wang - iommus 61a16ce2f3SHsin-Yi Wang 62a16ce2f3SHsin-Yi WangadditionalProperties: false 63a16ce2f3SHsin-Yi Wang 64a16ce2f3SHsin-Yi Wangexamples: 65a16ce2f3SHsin-Yi Wang - | 66a16ce2f3SHsin-Yi Wang #include <dt-bindings/clock/mt2701-clk.h> 67a16ce2f3SHsin-Yi Wang #include <dt-bindings/interrupt-controller/arm-gic.h> 68a16ce2f3SHsin-Yi Wang #include <dt-bindings/memory/mt2701-larb-port.h> 69a16ce2f3SHsin-Yi Wang #include <dt-bindings/power/mt2701-power.h> 70a16ce2f3SHsin-Yi Wang jpegenc: jpegenc@1500a000 { 71a16ce2f3SHsin-Yi Wang compatible = "mediatek,mt2701-jpgenc", 72a16ce2f3SHsin-Yi Wang "mediatek,mtk-jpgenc"; 73a16ce2f3SHsin-Yi Wang reg = <0x1500a000 0x1000>; 74a16ce2f3SHsin-Yi Wang interrupts = <GIC_SPI 141 IRQ_TYPE_LEVEL_LOW>; 75a16ce2f3SHsin-Yi Wang clocks = <&imgsys CLK_IMG_VENC>; 76a16ce2f3SHsin-Yi Wang clock-names = "jpgenc"; 77a16ce2f3SHsin-Yi Wang power-domains = <&scpsys MT2701_POWER_DOMAIN_ISP>; 78a16ce2f3SHsin-Yi Wang mediatek,larb = <&larb2>; 79a16ce2f3SHsin-Yi Wang iommus = <&iommu MT2701_M4U_PORT_JPGENC_RDMA>, 80a16ce2f3SHsin-Yi Wang <&iommu MT2701_M4U_PORT_JPGENC_BSDMA>; 81a16ce2f3SHsin-Yi Wang }; 82