18c2ecf20Sopenharmony_ci* MediaTek JPEG Encoder
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ciMediaTek JPEG Encoder is the JPEG encode hardware present in MediaTek SoCs
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ciRequired properties:
68c2ecf20Sopenharmony_ci- compatible : "mediatek,mt2701-jpgenc"
78c2ecf20Sopenharmony_ci  followed by "mediatek,mtk-jpgenc"
88c2ecf20Sopenharmony_ci- reg : physical base address of the JPEG encoder registers and length of
98c2ecf20Sopenharmony_ci  memory mapped region.
108c2ecf20Sopenharmony_ci- interrupts : interrupt number to the interrupt controller.
118c2ecf20Sopenharmony_ci- clocks: device clocks, see
128c2ecf20Sopenharmony_ci  Documentation/devicetree/bindings/clock/clock-bindings.txt for details.
138c2ecf20Sopenharmony_ci- clock-names: must contain "jpgenc". It is the clock of JPEG encoder.
148c2ecf20Sopenharmony_ci- power-domains: a phandle to the power domain, see
158c2ecf20Sopenharmony_ci  Documentation/devicetree/bindings/power/power_domain.txt for details.
168c2ecf20Sopenharmony_ci- mediatek,larb: must contain the local arbiters in the current SoCs, see
178c2ecf20Sopenharmony_ci  Documentation/devicetree/bindings/memory-controllers/mediatek,smi-larb.txt
188c2ecf20Sopenharmony_ci  for details.
198c2ecf20Sopenharmony_ci- iommus: should point to the respective IOMMU block with master port as
208c2ecf20Sopenharmony_ci  argument, see Documentation/devicetree/bindings/iommu/mediatek,iommu.txt
218c2ecf20Sopenharmony_ci  for details.
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ciExample:
248c2ecf20Sopenharmony_ci	jpegenc: jpegenc@1500a000 {
258c2ecf20Sopenharmony_ci		compatible = "mediatek,mt2701-jpgenc",
268c2ecf20Sopenharmony_ci			     "mediatek,mtk-jpgenc";
278c2ecf20Sopenharmony_ci		reg = <0 0x1500a000 0 0x1000>;
288c2ecf20Sopenharmony_ci		interrupts = <GIC_SPI 141 IRQ_TYPE_LEVEL_LOW>;
298c2ecf20Sopenharmony_ci		clocks =  <&imgsys CLK_IMG_VENC>;
308c2ecf20Sopenharmony_ci		clock-names = "jpgenc";
318c2ecf20Sopenharmony_ci		power-domains = <&scpsys MT2701_POWER_DOMAIN_ISP>;
328c2ecf20Sopenharmony_ci		mediatek,larb = <&larb2>;
338c2ecf20Sopenharmony_ci		iommus = <&iommu MT2701_M4U_PORT_JPGENC_RDMA>,
348c2ecf20Sopenharmony_ci			 <&iommu MT2701_M4U_PORT_JPGENC_BSDMA>;
358c2ecf20Sopenharmony_ci	};
36