Commit 7b915d382aa74aa03c1a48296dd74e94e0d1345f

Authored by Fabio Estevam
Committed by Greg Kroah-Hartman
1 parent e8e3b6ddd0

ARM: dts: imx25: Fix PWM "per" clocks

commit 7ecd0bde5bfea524a843ad8fa8cb66ccbce68779 upstream.

Currently PWM functionality is broken on mx25 due to the wrong assignment of the
PWM "per" clock.

According to Documentation/devicetree/bindings/clock/imx25-clock.txt:
	pwm_ipg_per		52

,so update the pwm "per" to use 'pwm_ipg_per' instead of 'per10' clock.

With this change PWM can work fine on mx25.

Reported-by: Carlos Soto <csotoalonso@gmail.com>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Showing 1 changed file with 4 additions and 4 deletions Side-by-side Diff

arch/arm/boot/dts/imx25.dtsi
... ... @@ -369,7 +369,7 @@
369 369 compatible = "fsl,imx25-pwm", "fsl,imx27-pwm";
370 370 #pwm-cells = <2>;
371 371 reg = <0x53fa0000 0x4000>;
372   - clocks = <&clks 106>, <&clks 36>;
  372 + clocks = <&clks 106>, <&clks 52>;
373 373 clock-names = "ipg", "per";
374 374 interrupts = <36>;
375 375 };
... ... @@ -388,7 +388,7 @@
388 388 compatible = "fsl,imx25-pwm", "fsl,imx27-pwm";
389 389 #pwm-cells = <2>;
390 390 reg = <0x53fa8000 0x4000>;
391   - clocks = <&clks 107>, <&clks 36>;
  391 + clocks = <&clks 107>, <&clks 52>;
392 392 clock-names = "ipg", "per";
393 393 interrupts = <41>;
394 394 };
... ... @@ -429,7 +429,7 @@
429 429 pwm4: pwm@53fc8000 {
430 430 compatible = "fsl,imx25-pwm", "fsl,imx27-pwm";
431 431 reg = <0x53fc8000 0x4000>;
432   - clocks = <&clks 108>, <&clks 36>;
  432 + clocks = <&clks 108>, <&clks 52>;
433 433 clock-names = "ipg", "per";
434 434 interrupts = <42>;
435 435 };
... ... @@ -476,7 +476,7 @@
476 476 compatible = "fsl,imx25-pwm", "fsl,imx27-pwm";
477 477 #pwm-cells = <2>;
478 478 reg = <0x53fe0000 0x4000>;
479   - clocks = <&clks 105>, <&clks 36>;
  479 + clocks = <&clks 105>, <&clks 52>;
480 480 clock-names = "ipg", "per";
481 481 interrupts = <26>;
482 482 };