xref: /freebsd/sys/contrib/device-tree/src/arm64/freescale/imx8-ss-img.dtsi (revision 354d7675fe12ace9cde344cb79c7ded792802f88)
1*354d7675SEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0+
2*354d7675SEmmanuel Vadot/*
3*354d7675SEmmanuel Vadot * Copyright 2019-2021 NXP
4*354d7675SEmmanuel Vadot * Zhou Guoniu <guoniu.zhou@nxp.com>
5*354d7675SEmmanuel Vadot */
6*354d7675SEmmanuel Vadotimg_subsys: bus@58000000 {
7*354d7675SEmmanuel Vadot	compatible = "simple-bus";
8*354d7675SEmmanuel Vadot	#address-cells = <1>;
9*354d7675SEmmanuel Vadot	#size-cells = <1>;
10*354d7675SEmmanuel Vadot	ranges = <0x58000000 0x0 0x58000000 0x1000000>;
11*354d7675SEmmanuel Vadot
12*354d7675SEmmanuel Vadot	img_ipg_clk: clock-img-ipg {
13*354d7675SEmmanuel Vadot		compatible = "fixed-clock";
14*354d7675SEmmanuel Vadot		#clock-cells = <0>;
15*354d7675SEmmanuel Vadot		clock-frequency = <200000000>;
16*354d7675SEmmanuel Vadot		clock-output-names = "img_ipg_clk";
17*354d7675SEmmanuel Vadot	};
18*354d7675SEmmanuel Vadot
19*354d7675SEmmanuel Vadot	jpegdec: jpegdec@58400000 {
20*354d7675SEmmanuel Vadot		reg = <0x58400000 0x00050000>;
21*354d7675SEmmanuel Vadot		interrupts = <GIC_SPI 309 IRQ_TYPE_LEVEL_HIGH>,
22*354d7675SEmmanuel Vadot			     <GIC_SPI 310 IRQ_TYPE_LEVEL_HIGH>,
23*354d7675SEmmanuel Vadot			     <GIC_SPI 311 IRQ_TYPE_LEVEL_HIGH>,
24*354d7675SEmmanuel Vadot			     <GIC_SPI 312 IRQ_TYPE_LEVEL_HIGH>;
25*354d7675SEmmanuel Vadot		clocks = <&img_jpeg_dec_lpcg IMX_LPCG_CLK_0>,
26*354d7675SEmmanuel Vadot			 <&img_jpeg_dec_lpcg IMX_LPCG_CLK_4>;
27*354d7675SEmmanuel Vadot		clock-names = "per", "ipg";
28*354d7675SEmmanuel Vadot		assigned-clocks = <&img_jpeg_dec_lpcg IMX_LPCG_CLK_0>,
29*354d7675SEmmanuel Vadot				  <&img_jpeg_dec_lpcg IMX_LPCG_CLK_4>;
30*354d7675SEmmanuel Vadot		assigned-clock-rates = <200000000>, <200000000>;
31*354d7675SEmmanuel Vadot		power-domains = <&pd IMX_SC_R_MJPEG_DEC_MP>,
32*354d7675SEmmanuel Vadot				<&pd IMX_SC_R_MJPEG_DEC_S0>,
33*354d7675SEmmanuel Vadot				<&pd IMX_SC_R_MJPEG_DEC_S1>,
34*354d7675SEmmanuel Vadot				<&pd IMX_SC_R_MJPEG_DEC_S2>,
35*354d7675SEmmanuel Vadot				<&pd IMX_SC_R_MJPEG_DEC_S3>;
36*354d7675SEmmanuel Vadot	};
37*354d7675SEmmanuel Vadot
38*354d7675SEmmanuel Vadot	jpegenc: jpegenc@58450000 {
39*354d7675SEmmanuel Vadot		reg = <0x58450000 0x00050000>;
40*354d7675SEmmanuel Vadot		interrupts = <GIC_SPI 305 IRQ_TYPE_LEVEL_HIGH>,
41*354d7675SEmmanuel Vadot			     <GIC_SPI 306 IRQ_TYPE_LEVEL_HIGH>,
42*354d7675SEmmanuel Vadot			     <GIC_SPI 307 IRQ_TYPE_LEVEL_HIGH>,
43*354d7675SEmmanuel Vadot			     <GIC_SPI 308 IRQ_TYPE_LEVEL_HIGH>;
44*354d7675SEmmanuel Vadot		clocks = <&img_jpeg_enc_lpcg IMX_LPCG_CLK_0>,
45*354d7675SEmmanuel Vadot			 <&img_jpeg_enc_lpcg IMX_LPCG_CLK_4>;
46*354d7675SEmmanuel Vadot		clock-names = "per", "ipg";
47*354d7675SEmmanuel Vadot		assigned-clocks = <&img_jpeg_enc_lpcg IMX_LPCG_CLK_0>,
48*354d7675SEmmanuel Vadot				  <&img_jpeg_enc_lpcg IMX_LPCG_CLK_4>;
49*354d7675SEmmanuel Vadot		assigned-clock-rates = <200000000>, <200000000>;
50*354d7675SEmmanuel Vadot		power-domains = <&pd IMX_SC_R_MJPEG_ENC_MP>,
51*354d7675SEmmanuel Vadot				<&pd IMX_SC_R_MJPEG_ENC_S0>,
52*354d7675SEmmanuel Vadot				<&pd IMX_SC_R_MJPEG_ENC_S1>,
53*354d7675SEmmanuel Vadot				<&pd IMX_SC_R_MJPEG_ENC_S2>,
54*354d7675SEmmanuel Vadot				<&pd IMX_SC_R_MJPEG_ENC_S3>;
55*354d7675SEmmanuel Vadot	};
56*354d7675SEmmanuel Vadot
57*354d7675SEmmanuel Vadot	img_jpeg_dec_lpcg: clock-controller@585d0000 {
58*354d7675SEmmanuel Vadot		compatible = "fsl,imx8qxp-lpcg";
59*354d7675SEmmanuel Vadot		reg = <0x585d0000 0x10000>;
60*354d7675SEmmanuel Vadot		#clock-cells = <1>;
61*354d7675SEmmanuel Vadot		clocks = <&img_ipg_clk>, <&img_ipg_clk>;
62*354d7675SEmmanuel Vadot		clock-indices = <IMX_LPCG_CLK_0>,
63*354d7675SEmmanuel Vadot				<IMX_LPCG_CLK_4>;
64*354d7675SEmmanuel Vadot		clock-output-names = "img_jpeg_dec_lpcg_clk",
65*354d7675SEmmanuel Vadot				     "img_jpeg_dec_lpcg_ipg_clk";
66*354d7675SEmmanuel Vadot		power-domains = <&pd IMX_SC_R_MJPEG_DEC_MP>;
67*354d7675SEmmanuel Vadot	};
68*354d7675SEmmanuel Vadot
69*354d7675SEmmanuel Vadot	img_jpeg_enc_lpcg: clock-controller@585f0000 {
70*354d7675SEmmanuel Vadot		compatible = "fsl,imx8qxp-lpcg";
71*354d7675SEmmanuel Vadot		reg = <0x585f0000 0x10000>;
72*354d7675SEmmanuel Vadot		#clock-cells = <1>;
73*354d7675SEmmanuel Vadot		clocks = <&img_ipg_clk>, <&img_ipg_clk>;
74*354d7675SEmmanuel Vadot		clock-indices = <IMX_LPCG_CLK_0>,
75*354d7675SEmmanuel Vadot				<IMX_LPCG_CLK_4>;
76*354d7675SEmmanuel Vadot		clock-output-names = "img_jpeg_enc_lpcg_clk",
77*354d7675SEmmanuel Vadot				     "img_jpeg_enc_lpcg_ipg_clk";
78*354d7675SEmmanuel Vadot		power-domains = <&pd IMX_SC_R_MJPEG_ENC_MP>;
79*354d7675SEmmanuel Vadot	};
80*354d7675SEmmanuel Vadot};
81