LF-1189-9 arm64: imx8qxp-ss-adma.dtsi: Add pwm lpcg clocks support
authorLiu Ying <victor.liu@nxp.com>
Mon, 30 Mar 2020 01:32:11 +0000 (09:32 +0800)
committerDong Aisheng <aisheng.dong@nxp.com>
Mon, 14 Dec 2020 03:22:19 +0000 (11:22 +0800)
This patch adds pwm lpcg clocks support for i.MX8qxp ADMA subsystem.

Reviewed-by: Robert Chiras <robert.chiras@nxp.com>
Tested-by: Robert Chiras <robert.chiras@nxp.com>
Signed-off-by: Liu Ying <victor.liu@nxp.com>
arch/arm64/boot/dts/freescale/imx8qxp-ss-adma.dtsi

index 5c82154..a61a53a 100644 (file)
                compatible = "fsl,imx8qxp-lcdif-mux-regs", "syscon";
                reg = <0x5a170000 0x4>;
        };
+
+       adma_pwm_lpcg: clock-controller@5a590000 {
+               compatible = "fsl,imx8qxp-lpcg";
+               reg = <0x5a590000 0x10000>;
+               #clock-cells = <1>;
+               clocks = <&clk IMX_SC_R_LCD_0_PWM_0 IMX_SC_PM_CLK_PER>,
+                        <&dma_ipg_clk>;
+               bit-offset = <0 16>;
+               clock-output-names = "adma_pwm_lpcg_clk",
+                                    "adma_pwm_lpcg_ipg_clk";
+               power-domains = <&pd IMX_SC_R_LCD_0_PWM_0>;
+       };
 };