]> www.infradead.org Git - linux.git/commitdiff
arm64: dts: imx8qm: add mipi subsystem
authorFrank Li <Frank.Li@nxp.com>
Mon, 1 Jul 2024 15:03:30 +0000 (11:03 -0400)
committerShawn Guo <shawnguo@kernel.org>
Wed, 4 Sep 2024 09:36:22 +0000 (17:36 +0800)
Include common imx8-ss-mipi0.dtsi and imx8-ss-mipi1.dtsi.

Signed-off-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx8qm-ss-mipi.dtsi [new file with mode: 0644]
arch/arm64/boot/dts/freescale/imx8qm.dtsi

diff --git a/arch/arm64/boot/dts/freescale/imx8qm-ss-mipi.dtsi b/arch/arm64/boot/dts/freescale/imx8qm-ss-mipi.dtsi
new file mode 100644 (file)
index 0000000..f4c393f
--- /dev/null
@@ -0,0 +1,19 @@
+// SPDX-License-Identifier: GPL-2.0+
+
+/*
+ * Copyright 2024 NXP
+ */
+
+&mipi0_lis_lpcg {
+       clocks = <&dsi_ipg_clk>;
+       clock-indices = <IMX_LPCG_CLK_0>;
+       clock-output-names = "mipi0_lis_lpcg_ipg_clk";
+};
+
+&mipi0_pwm_lpcg {
+       clocks = <&clk IMX_SC_R_MIPI_0_PWM_0 IMX_SC_PM_CLK_PER>,
+                <&dsi_ipg_clk>;
+       clock-indices = <IMX_LPCG_CLK_0>, <IMX_LPCG_CLK_4>;
+       clock-output-names = "mipi0_pwm_lpcg_clk",
+                            "mipi0_pwm_lpcg_ipg_clk";
+};
\ No newline at end of file
index 1e8511e8d85772fae13c9f911d5266cf6409c4c4..3ee6e2869e3cf55de0a9eebd227d594e29078efc 100644 (file)
                clock-output-names = "lvds0_ipg_clk";
        };
 
+       dsi_ipg_clk: clock-controller-dsi-ipg {
+               compatible = "fixed-clock";
+               #clock-cells = <0>;
+               clock-frequency = <120000000>;
+               clock-output-names = "dsi_ipg_clk";
+       };
+
+       mipi_pll_div2_clk: clock-controller-mipi-div2-pll {
+               compatible = "fixed-clock";
+               #clock-cells = <0>;
+               clock-frequency = <432000000>;
+               clock-output-names = "mipi_pll_div2_clk";
+       };
+
        /* sorted in register address */
        #include "imx8-ss-cm41.dtsi"
        #include "imx8-ss-audio.dtsi"
        #include "imx8-ss-vpu.dtsi"
        #include "imx8-ss-gpu0.dtsi"
+       #include "imx8-ss-mipi0.dtsi"
        #include "imx8-ss-lvds0.dtsi"
+       #include "imx8-ss-mipi1.dtsi"
        #include "imx8-ss-lvds1.dtsi"
        #include "imx8-ss-img.dtsi"
        #include "imx8-ss-dma.dtsi"
 #include "imx8qm-ss-lsio.dtsi"
 #include "imx8qm-ss-audio.dtsi"
 #include "imx8qm-ss-lvds.dtsi"
+#include "imx8qm-ss-mipi.dtsi"