162306a36Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0+ 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * Copyright 2019-2021 NXP 462306a36Sopenharmony_ci * Zhou Guoniu <guoniu.zhou@nxp.com> 562306a36Sopenharmony_ci */ 662306a36Sopenharmony_ciimg_subsys: bus@58000000 { 762306a36Sopenharmony_ci compatible = "simple-bus"; 862306a36Sopenharmony_ci #address-cells = <1>; 962306a36Sopenharmony_ci #size-cells = <1>; 1062306a36Sopenharmony_ci ranges = <0x58000000 0x0 0x58000000 0x1000000>; 1162306a36Sopenharmony_ci 1262306a36Sopenharmony_ci img_ipg_clk: clock-img-ipg { 1362306a36Sopenharmony_ci compatible = "fixed-clock"; 1462306a36Sopenharmony_ci #clock-cells = <0>; 1562306a36Sopenharmony_ci clock-frequency = <200000000>; 1662306a36Sopenharmony_ci clock-output-names = "img_ipg_clk"; 1762306a36Sopenharmony_ci }; 1862306a36Sopenharmony_ci 1962306a36Sopenharmony_ci jpegdec: jpegdec@58400000 { 2062306a36Sopenharmony_ci reg = <0x58400000 0x00050000>; 2162306a36Sopenharmony_ci interrupts = <GIC_SPI 309 IRQ_TYPE_LEVEL_HIGH>, 2262306a36Sopenharmony_ci <GIC_SPI 310 IRQ_TYPE_LEVEL_HIGH>, 2362306a36Sopenharmony_ci <GIC_SPI 311 IRQ_TYPE_LEVEL_HIGH>, 2462306a36Sopenharmony_ci <GIC_SPI 312 IRQ_TYPE_LEVEL_HIGH>; 2562306a36Sopenharmony_ci clocks = <&img_jpeg_dec_lpcg IMX_LPCG_CLK_0>, 2662306a36Sopenharmony_ci <&img_jpeg_dec_lpcg IMX_LPCG_CLK_4>; 2762306a36Sopenharmony_ci clock-names = "per", "ipg"; 2862306a36Sopenharmony_ci assigned-clocks = <&img_jpeg_dec_lpcg IMX_LPCG_CLK_0>, 2962306a36Sopenharmony_ci <&img_jpeg_dec_lpcg IMX_LPCG_CLK_4>; 3062306a36Sopenharmony_ci assigned-clock-rates = <200000000>, <200000000>; 3162306a36Sopenharmony_ci power-domains = <&pd IMX_SC_R_MJPEG_DEC_MP>, 3262306a36Sopenharmony_ci <&pd IMX_SC_R_MJPEG_DEC_S0>, 3362306a36Sopenharmony_ci <&pd IMX_SC_R_MJPEG_DEC_S1>, 3462306a36Sopenharmony_ci <&pd IMX_SC_R_MJPEG_DEC_S2>, 3562306a36Sopenharmony_ci <&pd IMX_SC_R_MJPEG_DEC_S3>; 3662306a36Sopenharmony_ci }; 3762306a36Sopenharmony_ci 3862306a36Sopenharmony_ci jpegenc: jpegenc@58450000 { 3962306a36Sopenharmony_ci reg = <0x58450000 0x00050000>; 4062306a36Sopenharmony_ci interrupts = <GIC_SPI 305 IRQ_TYPE_LEVEL_HIGH>, 4162306a36Sopenharmony_ci <GIC_SPI 306 IRQ_TYPE_LEVEL_HIGH>, 4262306a36Sopenharmony_ci <GIC_SPI 307 IRQ_TYPE_LEVEL_HIGH>, 4362306a36Sopenharmony_ci <GIC_SPI 308 IRQ_TYPE_LEVEL_HIGH>; 4462306a36Sopenharmony_ci clocks = <&img_jpeg_enc_lpcg IMX_LPCG_CLK_0>, 4562306a36Sopenharmony_ci <&img_jpeg_enc_lpcg IMX_LPCG_CLK_4>; 4662306a36Sopenharmony_ci clock-names = "per", "ipg"; 4762306a36Sopenharmony_ci assigned-clocks = <&img_jpeg_enc_lpcg IMX_LPCG_CLK_0>, 4862306a36Sopenharmony_ci <&img_jpeg_enc_lpcg IMX_LPCG_CLK_4>; 4962306a36Sopenharmony_ci assigned-clock-rates = <200000000>, <200000000>; 5062306a36Sopenharmony_ci power-domains = <&pd IMX_SC_R_MJPEG_ENC_MP>, 5162306a36Sopenharmony_ci <&pd IMX_SC_R_MJPEG_ENC_S0>, 5262306a36Sopenharmony_ci <&pd IMX_SC_R_MJPEG_ENC_S1>, 5362306a36Sopenharmony_ci <&pd IMX_SC_R_MJPEG_ENC_S2>, 5462306a36Sopenharmony_ci <&pd IMX_SC_R_MJPEG_ENC_S3>; 5562306a36Sopenharmony_ci }; 5662306a36Sopenharmony_ci 5762306a36Sopenharmony_ci img_jpeg_dec_lpcg: clock-controller@585d0000 { 5862306a36Sopenharmony_ci compatible = "fsl,imx8qxp-lpcg"; 5962306a36Sopenharmony_ci reg = <0x585d0000 0x10000>; 6062306a36Sopenharmony_ci #clock-cells = <1>; 6162306a36Sopenharmony_ci clocks = <&img_ipg_clk>, <&img_ipg_clk>; 6262306a36Sopenharmony_ci clock-indices = <IMX_LPCG_CLK_0>, 6362306a36Sopenharmony_ci <IMX_LPCG_CLK_4>; 6462306a36Sopenharmony_ci clock-output-names = "img_jpeg_dec_lpcg_clk", 6562306a36Sopenharmony_ci "img_jpeg_dec_lpcg_ipg_clk"; 6662306a36Sopenharmony_ci power-domains = <&pd IMX_SC_R_MJPEG_DEC_MP>; 6762306a36Sopenharmony_ci }; 6862306a36Sopenharmony_ci 6962306a36Sopenharmony_ci img_jpeg_enc_lpcg: clock-controller@585f0000 { 7062306a36Sopenharmony_ci compatible = "fsl,imx8qxp-lpcg"; 7162306a36Sopenharmony_ci reg = <0x585f0000 0x10000>; 7262306a36Sopenharmony_ci #clock-cells = <1>; 7362306a36Sopenharmony_ci clocks = <&img_ipg_clk>, <&img_ipg_clk>; 7462306a36Sopenharmony_ci clock-indices = <IMX_LPCG_CLK_0>, 7562306a36Sopenharmony_ci <IMX_LPCG_CLK_4>; 7662306a36Sopenharmony_ci clock-output-names = "img_jpeg_enc_lpcg_clk", 7762306a36Sopenharmony_ci "img_jpeg_enc_lpcg_ipg_clk"; 7862306a36Sopenharmony_ci power-domains = <&pd IMX_SC_R_MJPEG_ENC_MP>; 7962306a36Sopenharmony_ci }; 8062306a36Sopenharmony_ci}; 81