xref: /freebsd/sys/contrib/device-tree/src/arm64/freescale/imx8-ss-img.dtsi (revision 84943d6f38e936ac3b7a3947ca26eeb27a39f938)
1354d7675SEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0+
2354d7675SEmmanuel Vadot/*
3354d7675SEmmanuel Vadot * Copyright 2019-2021 NXP
4354d7675SEmmanuel Vadot * Zhou Guoniu <guoniu.zhou@nxp.com>
5354d7675SEmmanuel Vadot */
6354d7675SEmmanuel Vadotimg_ipg_clk: clock-img-ipg {
7354d7675SEmmanuel Vadot	compatible = "fixed-clock";
8354d7675SEmmanuel Vadot	#clock-cells = <0>;
9354d7675SEmmanuel Vadot	clock-frequency = <200000000>;
10354d7675SEmmanuel Vadot	clock-output-names = "img_ipg_clk";
11354d7675SEmmanuel Vadot};
12354d7675SEmmanuel Vadot
13*84943d6fSEmmanuel Vadotimg_subsys: bus@58000000 {
14*84943d6fSEmmanuel Vadot	compatible = "simple-bus";
15*84943d6fSEmmanuel Vadot	#address-cells = <1>;
16*84943d6fSEmmanuel Vadot	#size-cells = <1>;
17*84943d6fSEmmanuel Vadot	ranges = <0x58000000 0x0 0x58000000 0x1000000>;
18*84943d6fSEmmanuel Vadot
19354d7675SEmmanuel Vadot	jpegdec: jpegdec@58400000 {
20354d7675SEmmanuel Vadot		reg = <0x58400000 0x00050000>;
21*84943d6fSEmmanuel Vadot		interrupts = <GIC_SPI 309 IRQ_TYPE_LEVEL_HIGH>;
22354d7675SEmmanuel Vadot		clocks = <&img_jpeg_dec_lpcg IMX_LPCG_CLK_0>,
23354d7675SEmmanuel Vadot			 <&img_jpeg_dec_lpcg IMX_LPCG_CLK_4>;
24354d7675SEmmanuel Vadot		clock-names = "per", "ipg";
25354d7675SEmmanuel Vadot		assigned-clocks = <&img_jpeg_dec_lpcg IMX_LPCG_CLK_0>,
26354d7675SEmmanuel Vadot				  <&img_jpeg_dec_lpcg IMX_LPCG_CLK_4>;
27354d7675SEmmanuel Vadot		assigned-clock-rates = <200000000>, <200000000>;
28354d7675SEmmanuel Vadot		power-domains = <&pd IMX_SC_R_MJPEG_DEC_MP>,
29*84943d6fSEmmanuel Vadot				<&pd IMX_SC_R_MJPEG_DEC_S0>;
30*84943d6fSEmmanuel Vadot		slot = <0>;
31354d7675SEmmanuel Vadot	};
32354d7675SEmmanuel Vadot
33354d7675SEmmanuel Vadot	jpegenc: jpegenc@58450000 {
34354d7675SEmmanuel Vadot		reg = <0x58450000 0x00050000>;
35*84943d6fSEmmanuel Vadot		interrupts = <GIC_SPI 305 IRQ_TYPE_LEVEL_HIGH>;
36354d7675SEmmanuel Vadot		clocks = <&img_jpeg_enc_lpcg IMX_LPCG_CLK_0>,
37354d7675SEmmanuel Vadot			 <&img_jpeg_enc_lpcg IMX_LPCG_CLK_4>;
38354d7675SEmmanuel Vadot		clock-names = "per", "ipg";
39354d7675SEmmanuel Vadot		assigned-clocks = <&img_jpeg_enc_lpcg IMX_LPCG_CLK_0>,
40354d7675SEmmanuel Vadot				  <&img_jpeg_enc_lpcg IMX_LPCG_CLK_4>;
41354d7675SEmmanuel Vadot		assigned-clock-rates = <200000000>, <200000000>;
42354d7675SEmmanuel Vadot		power-domains = <&pd IMX_SC_R_MJPEG_ENC_MP>,
43*84943d6fSEmmanuel Vadot				<&pd IMX_SC_R_MJPEG_ENC_S0>;
44*84943d6fSEmmanuel Vadot		slot = <0>;
45354d7675SEmmanuel Vadot	};
46354d7675SEmmanuel Vadot
47354d7675SEmmanuel Vadot	img_jpeg_dec_lpcg: clock-controller@585d0000 {
48354d7675SEmmanuel Vadot		compatible = "fsl,imx8qxp-lpcg";
49354d7675SEmmanuel Vadot		reg = <0x585d0000 0x10000>;
50354d7675SEmmanuel Vadot		#clock-cells = <1>;
51354d7675SEmmanuel Vadot		clocks = <&img_ipg_clk>, <&img_ipg_clk>;
52354d7675SEmmanuel Vadot		clock-indices = <IMX_LPCG_CLK_0>,
53354d7675SEmmanuel Vadot				<IMX_LPCG_CLK_4>;
54354d7675SEmmanuel Vadot		clock-output-names = "img_jpeg_dec_lpcg_clk",
55354d7675SEmmanuel Vadot				     "img_jpeg_dec_lpcg_ipg_clk";
56354d7675SEmmanuel Vadot		power-domains = <&pd IMX_SC_R_MJPEG_DEC_MP>;
57354d7675SEmmanuel Vadot	};
58354d7675SEmmanuel Vadot
59354d7675SEmmanuel Vadot	img_jpeg_enc_lpcg: clock-controller@585f0000 {
60354d7675SEmmanuel Vadot		compatible = "fsl,imx8qxp-lpcg";
61354d7675SEmmanuel Vadot		reg = <0x585f0000 0x10000>;
62354d7675SEmmanuel Vadot		#clock-cells = <1>;
63354d7675SEmmanuel Vadot		clocks = <&img_ipg_clk>, <&img_ipg_clk>;
64354d7675SEmmanuel Vadot		clock-indices = <IMX_LPCG_CLK_0>,
65354d7675SEmmanuel Vadot				<IMX_LPCG_CLK_4>;
66354d7675SEmmanuel Vadot		clock-output-names = "img_jpeg_enc_lpcg_clk",
67354d7675SEmmanuel Vadot				     "img_jpeg_enc_lpcg_ipg_clk";
68354d7675SEmmanuel Vadot		power-domains = <&pd IMX_SC_R_MJPEG_ENC_MP>;
69354d7675SEmmanuel Vadot	};
70354d7675SEmmanuel Vadot};
71