clk: imx8qxp: Add JPEG encode/decode clocks
authorAbel Vesa <abel.vesa@nxp.com>
Mon, 30 Sep 2019 09:50:59 +0000 (12:50 +0300)
committerDong Aisheng <aisheng.dong@nxp.com>
Mon, 14 Dec 2020 03:20:12 +0000 (11:20 +0800)
Clocks needed by JPEG Encoder/Decoder Linux V4L2 driver.
These additions are based on linux-imx/imx_4.19.y.

Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
Tested-by: Mirela Rabulea <mirela.rabulea@nxp.com>
Acked-by: Leonard Crestez <leonard.crestez@nxp.com>
(cherry picked from commit 7ac4b9c761b133cfb364d269d7e64db57c4863d8)

arch/arm64/boot/dts/freescale/imx8-ss-img.dtsi

index 25a4f8a..4e0b6ec 100644 (file)
@@ -200,6 +200,28 @@ img_subsys: bus@58000000 {
                power-domains = <&pd IMX_SC_R_CSI_1>;
        };
 
+       img_jpeg_dec_clk: clock-controller@585d0000 {
+               compatible = "fsl,imx8qxp-lpcg";
+               reg = <0x585d0000 0x10000>;
+               #clock-cells = <1>;
+               clocks = <&img_ipg_clk>, <&img_ipg_clk>;
+               bit-offset = <0 16>;
+               clock-output-names = "img_jpeg_dec_clk",
+                                    "img_jpeg_dec_ipg_clk";
+               power-domains = <&pd IMX_SC_R_MJPEG_DEC_MP>;
+       };
+
+       img_jpeg_enc_clk: clock-controller@585f0000 {
+               compatible = "fsl,imx8qxp-lpcg";
+               reg = <0x585f0000 0x10000>;
+               #clock-cells = <1>;
+               clocks = <&img_ipg_clk>, <&img_ipg_clk>;
+               bit-offset = <0 16>;
+               clock-output-names = "img_jpeg_enc_clk",
+                                    "img_jpeg_enc_ipg_clk";
+               power-domains = <&pd IMX_SC_R_MJPEG_ENC_MP>;
+       };
+
        irqsteer_csi0: irqsteer@58220000 {
                compatible = "fsl,imx-irqsteer";
                reg = <0x58220000 0x1000>;