Hi Aldo
Thank you, however I'm still not clear.
The driver pwm-imx27.c expects "ipg", "per" and optionally "32k".
https://github.com/nxp-imx/linux-imx/blob/lf-5.15.y/drivers/pwm/pwm-imx27.c#L385
However, pwm3_lpcg has five clocks
https://github.com/nxp-imx/linux-imx/blob/lf-5.15.y/arch/arm64/boot/dts/freescale/imx8-ss-lsio.dtsi#...
that it calls
"pwm3_lpcg_ipg_clk", "pwm3_lpcg_ipg_hf_clk", "pwm3_lpcg_ipg_s_clk", "pwm3_lpcg_ipg_slv_clk", "pwm3_lpcg_ipg_mstr_clk";
If I use those same long names in my node
lsio_pwm3: pwm@5d030000 {
compatible = "fsl,imx8qxp-pwm", "fsl,imx27-pwm";
...
then I get:
[ 2.718368] pwm-imx27 5d030000.pwm: error -ENOENT: getting ipg clock failed
And if I change mine to use short versions of those names e.g.
clock-names = "ipg", "hf", "s", "slv", "mstr";
then I get:
[ 2.711906] pwm-imx27 5d030000.pwm: error -ENOENT: failed to get peripheral clock
So if I'm using compatible "fsl,imx27-pwm", then I can only use the names "ipg", "per" and optionally "32k".
I guess "ipg" relates to clocks = <&pwm3_lpcg 0> but not sure which of the five "per" and "32k" would relate to?
Is compatible = "fsl,imx8qxp-pwm", "fsl,imx27-pwm"; correct or should I be using a different pwm driver that is expecting five clocks rather than three?
Thank you
-- Peter