[PATCH v5 1/4] pwm: add CSR SiRFSoc PWM driver

2014-07-15 Thread Huayi Li
2 up to 65536*2. Signed-off-by: Huayi Li --- drivers/pwm/Kconfig| 10 ++ drivers/pwm/Makefile | 1 + drivers/pwm/pwm-sirf.c | 450 + 3 files changed, 461 insertions(+) create mode 100644 drivers/pwm/pwm-sirf.c diff --git a/drivers/pwm/Kco

[PATCH v5 0/4] PWM: add and enable CSR SiRFSoC PWM driver

2014-07-15 Thread Huayi Li
rding to Arnd's feedback; - move the pwm clock source to dts according to Arnd's feedback; - add lost dt-binding document Changes in v2: - clean the source clock of PWM wave, use OSC(26MHz) Huayi Li (4): pwm: add CSR SiRFSoc PWM driver pwm: sirf: add dt-binding document ARM: dts: si

[PATCH v5 3/4] ARM: dts: sirf: fix the pwm-cells and clocks

2014-07-15 Thread Huayi Li
This patch adds missed pwm-cells, clock-names and signal source clock for PWM module. Signed-off-by: Huayi Li --- arch/arm/boot/dts/atlas6.dtsi | 8 ++-- arch/arm/boot/dts/prima2.dtsi | 8 ++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/atlas6.dtsi

[PATCH v5 4/4] ARM: prima2_defconfig: enable PWM and sirf PWM driver

2014-07-15 Thread Huayi Li
Signed-off-by: Huayi Li --- arch/arm/configs/prima2_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/configs/prima2_defconfig b/arch/arm/configs/prima2_defconfig index 23591db..303204a 100644 --- a/arch/arm/configs/prima2_defconfig +++ b/arch/arm/configs/prima2_defconfig

[PATCH v5 2/4] pwm: sirf: add dt-binding document

2014-07-15 Thread Huayi Li
This patch adds dt-binding document for pwm-sirf. here the controller clock can't generate PWM signals, so we need seperate clock as signal source. Signed-off-by: Huayi Li --- Documentation/devicetree/bindings/pwm/pwm-sirf.txt | 29 ++ 1 file changed, 29 inser