18c2ecf20Sopenharmony_ci* Mediatek JPEG Decoder
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ciMediatek JPEG Decoder is the JPEG decode hardware present in Mediatek SoCs
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ciRequired properties:
68c2ecf20Sopenharmony_ci- compatible : must be one of the following string:
78c2ecf20Sopenharmony_ci	"mediatek,mt8173-jpgdec"
88c2ecf20Sopenharmony_ci	"mediatek,mt7623-jpgdec", "mediatek,mt2701-jpgdec"
98c2ecf20Sopenharmony_ci	"mediatek,mt2701-jpgdec"
108c2ecf20Sopenharmony_ci- reg : physical base address of the jpeg decoder registers and length of
118c2ecf20Sopenharmony_ci  memory mapped region.
128c2ecf20Sopenharmony_ci- interrupts : interrupt number to the interrupt controller.
138c2ecf20Sopenharmony_ci- clocks: device clocks, see
148c2ecf20Sopenharmony_ci  Documentation/devicetree/bindings/clock/clock-bindings.txt for details.
158c2ecf20Sopenharmony_ci- clock-names: must contain "jpgdec-smi" and "jpgdec".
168c2ecf20Sopenharmony_ci- power-domains: a phandle to the power domain, see
178c2ecf20Sopenharmony_ci  Documentation/devicetree/bindings/power/power_domain.txt for details.
188c2ecf20Sopenharmony_ci- mediatek,larb: must contain the local arbiters in the current Socs, see
198c2ecf20Sopenharmony_ci  Documentation/devicetree/bindings/memory-controllers/mediatek,smi-larb.txt
208c2ecf20Sopenharmony_ci  for details.
218c2ecf20Sopenharmony_ci- iommus: should point to the respective IOMMU block with master port as
228c2ecf20Sopenharmony_ci  argument, see Documentation/devicetree/bindings/iommu/mediatek,iommu.txt
238c2ecf20Sopenharmony_ci  for details.
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_ciExample:
268c2ecf20Sopenharmony_ci	jpegdec: jpegdec@15004000 {
278c2ecf20Sopenharmony_ci		compatible = "mediatek,mt2701-jpgdec";
288c2ecf20Sopenharmony_ci		reg = <0 0x15004000 0 0x1000>;
298c2ecf20Sopenharmony_ci		interrupts = <GIC_SPI 143 IRQ_TYPE_LEVEL_LOW>;
308c2ecf20Sopenharmony_ci		clocks =  <&imgsys CLK_IMG_JPGDEC_SMI>,
318c2ecf20Sopenharmony_ci			  <&imgsys CLK_IMG_JPGDEC>;
328c2ecf20Sopenharmony_ci		clock-names = "jpgdec-smi",
338c2ecf20Sopenharmony_ci			      "jpgdec";
348c2ecf20Sopenharmony_ci		power-domains = <&scpsys MT2701_POWER_DOMAIN_ISP>;
358c2ecf20Sopenharmony_ci		mediatek,larb = <&larb2>;
368c2ecf20Sopenharmony_ci		iommus = <&iommu MT2701_M4U_PORT_JPGDEC_WDMA>,
378c2ecf20Sopenharmony_ci			 <&iommu MT2701_M4U_PORT_JPGDEC_BSDMA>;
388c2ecf20Sopenharmony_ci	};
39