]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
arm: dts: lpc32xx: add device node for the second pwm controller
authorVladimir Zapolskiy <vz@mleia.com>
Sat, 17 Oct 2015 21:35:53 +0000 (00:35 +0300)
committerVladimir Zapolskiy <vz@mleia.com>
Wed, 18 Nov 2015 16:01:08 +0000 (18:01 +0200)
LPC32xx SoCs have two independent PWM controllers, they have different
clock parents, clock gates and even slightly different controls,
each of these two PWM controllers has one output channel. Due to
almost similar controls arranged in a row it is incorrectly assumed
that there is one PWM controller with two channels, fix this problem
in lpc32xx.dtsi, which at the moment prevents separate configuration
of different clock parents and gates for both PWM controllers.

Signed-off-by: Vladimir Zapolskiy <vz@mleia.com>
arch/arm/boot/dts/lpc32xx.dtsi

index fb0e9ae8238fe8391e2a2b0e4af5f08bde7affbb..be829926f860aa0f5afd351abc59d9411e9f24d9 100644 (file)
                                status = "disabled";
                        };
 
-                       pwm: pwm@4005C000 {
+                       pwm1: pwm@4005C000 {
                                compatible = "nxp,lpc3220-pwm";
-                               reg = <0x4005C000 0x8>;
+                               reg = <0x4005C000 0x4>;
+                               status = "disabled";
+                       };
+
+                       pwm2: pwm@4005C004 {
+                               compatible = "nxp,lpc3220-pwm";
+                               reg = <0x4005C004 0x4>;
                                status = "disabled";
                        };
                };