LF-1189-10 arm64: imx8qxp-ss-adma.dtsi: Add pwm support
authorLiu Ying <victor.liu@nxp.com>
Mon, 30 Mar 2020 04:19:49 +0000 (12:19 +0800)
committerDong Aisheng <aisheng.dong@nxp.com>
Mon, 14 Dec 2020 03:22:19 +0000 (11:22 +0800)
This patch adds pwm device tree support for i.MX8qxp ADMA support.

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 a61a53a..a766a1c 100644 (file)
                reg = <0x5a170000 0x4>;
        };
 
+       adma_pwm: pwm@5a190000 {
+               compatible = "fsl,imx8qxp-pwm", "fsl,imx27-pwm";
+               reg = <0x5a190000 0x1000>;
+               clocks = <&adma_pwm_lpcg 0>, <&adma_pwm_lpcg 1>;
+               clock-names = "per", "ipg";
+               assigned-clocks = <&clk IMX_SC_R_LCD_0_PWM_0 IMX_SC_PM_CLK_PER>;
+               assigned-clock-rates = <24000000>;
+               #pwm-cells = <2>;
+               power-domains = <&pd IMX_SC_R_LCD_0_PWM_0>;
+               status = "disabled";
+       };
+
        adma_pwm_lpcg: clock-controller@5a590000 {
                compatible = "fsl,imx8qxp-lpcg";
                reg = <0x5a590000 0x10000>;