Skip to contentSkip to conversation

ARM: EXYNOS4: Add PWM backlight support on Samsung SMDKC210

PATCH In review Jingoo Han 1 participant 2 messages Mar 31, 2011 – Apr 5, 2011

Subsystems (3)
lore
Share & tools
lore

Jingoo Han

author
#0 lore raw

PATCH v3 1/1 ARM: EXYNOS4: Add PWM backlight support on Samsung SMDKC210

This patch adds support for LCD backlight control using PWM timer for Samsung's SMDKC210 board.

---
Chages since v2:
- fixed pwm switching period.

arch/arm/mach-exynos4/Kconfig | 1 +

 arch/arm/mach-exynos4/mach-smdkc210.c |   43 +++++++++++++++++++++++++++++++++
 2 files changed, 44 insertions(+), 0 deletions(-)
arch/arm/mach-exynos4/Kconfig +1 -0
index e849f67..21993c7 100644
@@ -105,6 +105,7 @@ config MACH_SMDKC210
 	select S3C_DEV_HSMMC1
 	select S3C_DEV_HSMMC2
 	select S3C_DEV_HSMMC3
+	select SAMSUNG_DEV_PWM
 	select EXYNOS4_DEV_PD
 	select EXYNOS4_DEV_SYSMMU
 	select EXYNOS4_SETUP_I2C1
arch/arm/mach-exynos4/mach-smdkc210.c +43 -0

67 lines not on this page · raw message

Signature · 1 line
1.7.1
author
#1 lore raw

arch/arm/mach-exynos4/mach-smdkc210.c static struct i2c_board_info i2c_devs1[] __initdata = { · line 177

Quoted 1 line · Jingoo Han
arch/arm/mach-exynos4/mach-smdkc210.c +1 -0
+	.pwm_period_ns	= 1000,

I will explain how I get the value of PWM period.

The SMDK boards use LT3591 as backlight LED driver of LTE480WV LCD According to the LT3591 datasheet, the switching frequency should be 1MHz. So, PWM period is calculated by following formula:

	PWM period = 1/switching frequency
                       = 1/1MHz
                       = 1000 ns

You can find LT3591 datasheet easily on the Internet. Please refer to it for more information.