Hello @dennis3
See below,please!
------------------------------
1. Configuring PWM In linux kernel
drivers/pwm/Kconfig:
config PWM_IMX27
tristate "i.MX27 PWM support"
depends on ARCH_MXC
help
Generic PWM framework driver for i.MX27 and later i.MX SoCs.
To compile this driver as a module, choose M here: the module
will be called pwm-imx27.
In Makefile:
obj-$(CONFIG_PWM_IMX27) += pwm-imx27.o
2. In i.MX8MP device tree
--imx8mp.dtsi(for example , pwm2 )
pwm2: pwm@30670000 {
compatible = "fsl,imx8mp-pwm", "fsl,imx27-pwm";
reg = <0x30670000 0x10000>;
interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clk IMX8MP_CLK_PWM2_ROOT>,
<&clk IMX8MP_CLK_PWM2_ROOT>;
clock-names = "ipg", "per";
#pwm-cells = <2>;
status = "disabled";
};
---In imx8mp-evk.dts:
&pwm2 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_pwm2>;
status = "okay";
};
So i.MX8MP-EVK has supported PWM .
Have a great day!
Regards,
weidong