Skip to contentSkip to conversation

ARM: dts: sirf: fix the pwm-cells and clocks for pwm

PATCH New Barry Song 1 participant 2 messages Mar 5, 2014

Subsystems (3)
lore
Share & tools
lore

Barry Song

author
#0 lore raw

PATCH v4 3/4 ARM: dts: sirf: fix the pwm-cells and clocks for pwm

From: Barry Song <[email protected]>

this patch adds missed pwm-cells, clock-names and signal source clock for PWM module.

---
 arch/arm/boot/dts/atlas6.dtsi |    5 +++--
 arch/arm/boot/dts/prima2.dtsi |    6 ++++--
 2 files changed, 7 insertions(+), 4 deletions(-)
arch/arm/boot/dts/atlas6.dtsi +3 -2
index f8674bc..18090bc 100644
@@ -612,10 +612,11 @@
                                 };
 			};
 
-			pwm at b0130000 {
+			pwm: pwm at b0130000 {
 				compatible = "sirf,prima2-pwm";
 				reg = <0xb0130000 0x10000>;
-				clocks = <&clks 21>;
+				clocks = <&clks 21>, <&clks 1>;
+				clock-names = "pwmc", "sigsrc0";
 			};
 
 			efusesys at b0140000 {
arch/arm/boot/dts/prima2.dtsi +4 -2
index 0e21993..ed49c00 100644
@@ -640,10 +640,12 @@
                                 };
 			};
 
-			pwm at b0130000 {
+			pwm: pwm at b0130000 {
 				compatible = "sirf,prima2-pwm";
+				#pwm-cells = <2>;
 				reg = <0xb0130000 0x10000>;
-				clocks = <&clks 21>;
+				clocks = <&clks 21>, <&clks 1>;
+				clock-names = "pwmc", "sigsrc0";
 			};
 
 			efusesys at b0140000 {
Signature · 1 line
1.7.5.4
author
#1 lore raw

PATCH v4 4/4 ARM: prima2_defconfig: enable PWM and sirf PWM driver

From: Barry Song <[email protected]>

---
 arch/arm/configs/prima2_defconfig |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
arch/arm/configs/prima2_defconfig +2 -0
index 23591db..303204a 100644
@@ -50,6 +50,8 @@ CONFIG_DMADEVICES_DEBUG=y
 CONFIG_DMADEVICES_VDEBUG=y
 CONFIG_SIRF_DMA=y
 # CONFIG_IOMMU_SUPPORT is not set
+CONFIG_PWM=y
+CONFIG_PWM_SIRF=y
 CONFIG_EXT2_FS=y
 CONFIG_MSDOS_FS=y
 CONFIG_VFAT_FS=y
Signature · 1 line
1.7.5.4