ARM: EXYNOS4: Add PWM backlight support on Samsung SMDKC210
Subsystems (3)
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.
Signed-off-by Jingoo Han <[email protected]>
---
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
@@ -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
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 nsYou can find LT3591 datasheet easily on the Internet. Please refer to it for more information.