]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/3.10.67/arm-dts-imx25-fix-pwm-per-clocks.patch
Linux 4.14.95
[thirdparty/kernel/stable-queue.git] / releases / 3.10.67 / arm-dts-imx25-fix-pwm-per-clocks.patch
1 From 7ecd0bde5bfea524a843ad8fa8cb66ccbce68779 Mon Sep 17 00:00:00 2001
2 From: Fabio Estevam <fabio.estevam@freescale.com>
3 Date: Wed, 14 Jan 2015 11:11:03 -0200
4 Subject: ARM: dts: imx25: Fix PWM "per" clocks
5
6 From: Fabio Estevam <fabio.estevam@freescale.com>
7
8 commit 7ecd0bde5bfea524a843ad8fa8cb66ccbce68779 upstream.
9
10 Currently PWM functionality is broken on mx25 due to the wrong assignment of the
11 PWM "per" clock.
12
13 According to Documentation/devicetree/bindings/clock/imx25-clock.txt:
14 pwm_ipg_per 52
15
16 ,so update the pwm "per" to use 'pwm_ipg_per' instead of 'per10' clock.
17
18 With this change PWM can work fine on mx25.
19
20 Reported-by: Carlos Soto <csotoalonso@gmail.com>
21 Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
22 Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
23 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
24
25 ---
26 arch/arm/boot/dts/imx25.dtsi | 8 ++++----
27 1 file changed, 4 insertions(+), 4 deletions(-)
28
29 --- a/arch/arm/boot/dts/imx25.dtsi
30 +++ b/arch/arm/boot/dts/imx25.dtsi
31 @@ -335,7 +335,7 @@
32 compatible = "fsl,imx25-pwm", "fsl,imx27-pwm";
33 #pwm-cells = <2>;
34 reg = <0x53fa0000 0x4000>;
35 - clocks = <&clks 106>, <&clks 36>;
36 + clocks = <&clks 106>, <&clks 52>;
37 clock-names = "ipg", "per";
38 interrupts = <36>;
39 };
40 @@ -354,7 +354,7 @@
41 compatible = "fsl,imx25-pwm", "fsl,imx27-pwm";
42 #pwm-cells = <2>;
43 reg = <0x53fa8000 0x4000>;
44 - clocks = <&clks 107>, <&clks 36>;
45 + clocks = <&clks 107>, <&clks 52>;
46 clock-names = "ipg", "per";
47 interrupts = <41>;
48 };
49 @@ -394,7 +394,7 @@
50 pwm4: pwm@53fc8000 {
51 compatible = "fsl,imx25-pwm", "fsl,imx27-pwm";
52 reg = <0x53fc8000 0x4000>;
53 - clocks = <&clks 108>, <&clks 36>;
54 + clocks = <&clks 108>, <&clks 52>;
55 clock-names = "ipg", "per";
56 interrupts = <42>;
57 };
58 @@ -439,7 +439,7 @@
59 compatible = "fsl,imx25-pwm", "fsl,imx27-pwm";
60 #pwm-cells = <2>;
61 reg = <0x53fe0000 0x4000>;
62 - clocks = <&clks 105>, <&clks 36>;
63 + clocks = <&clks 105>, <&clks 52>;
64 clock-names = "ipg", "per";
65 interrupts = <26>;
66 };