pwm_backlight: remove unnecessary ifdefs

When the macro such as SIMPLE_DEV_PM_OPS is used, there is
no need to use '#ifdef CONFIG_PM' to prevent build error. Thus,
this patch removes unnecessary ifdefs.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Cc: Thierry Reding <thierry.reding@avionic-design.de>
Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
pwm: davinci: Add Kconfig support for ECAP & EHRPWM devices

Add EHRPWM and ECAP support build support for DAVINCI_DA850 platforms.

Also, since DAVINCI platforms doesn't support TI-PWM-Subsystem module,
remove the select option for CONFIG_PWM_TIPWMSS.

Also, update CONFIG_PWM_TIPWMSS compiler directive appropriately in
pwm-tipwmss.h to fix the below compiler error upon removal of
CONFIG_PWM_TIPWMSS for Davinci platforms.

	drivers/pwm/pwm-tiecap.c: In function 'ecap_pwm_probe':
	drivers/pwm/pwm-tiecap.c:263:4: error: 'PWMSS_ECAPCLK_EN' undeclared
	(first use in this function)
	drivers/pwm/pwm-tiecap.c:263:4: note: each undeclared identifier
	is reported only once for each function it appears in
	drivers/pwm/pwm-tiecap.c:264:17: error: 'PWMSS_ECAPCLK_EN_ACK'
	undeclared (first use in this function)
	drivers/pwm/pwm-tiecap.c: In function 'ecap_pwm_remove':
	drivers/pwm/pwm-tiecap.c:291:49: error: 'PWMSS_ECAPCLK_STOP_REQ'
	undeclared (first use in this function)
	make[2]: *** [drivers/pwm/pwm-tiecap.o] Error 1
	make[1]: *** [drivers/pwm] Error 2
	make: *** [drivers] Error 2

Signed-off-by: Philip Avinash <avinashphilip@ti.com>
pwm: pwm-tiecap: Add device-tree binding support for da850 SOC

ECAP IP is used in da850 SOC's also. Hence adds ECAP device tree binding
support for da850.

Signed-off-by: Philip Avinash <avinashphilip@ti.com>
pwm: pwm-tiehrpwm: Add device tree binding support for da850 SOC

EHRPWM IP is used in da850 SOC's also. Hence adds EHRPWM device tree
binding support for da850.

Signed-off-by: Philip Avinash <avinashphilip@ti.com>
arm: davinci: clock node support for ECAP & EHRPWM

Add clock node support for ECAP and EHRPWM modules.
Also adds dummy clock for EHRWPM TBCLK to comply with pwm-tiehrpwm
driver.

Signed-off-by: Philip Avinash <avinashphilip@ti.com>
ARM: davinci: da850: Enable EHRPWM TBCLK from CFG_CHIP1

da850 platforms require TBCLK synchronization in CFG_CHIP1 register for
TBCLK enable in EHRPWM modules. Enabling of TBCLK is done only if EHRPWM
DT node status is set to "okay" DT blob.

Signed-off-by: Philip Avinash <avinashphilip@ti.com>
ARM: davinci: da850: add EHRPWM & ECAP DT node

Add da850 EHRPWM & ECAP DT node.
Also adds OF_DEV_AUXDATA for EHRPWM & ECAP driver to use EHRPWM & ECAP
clock.

Signed-off-by: Philip Avinash <avinashphilip@ti.com>
ARM: davinci: da850 evm: Backlight support for EHRPWM (Testing)

NOTE: Patch is only for testing as it might conflict pins with SPI.
TODO: Handling of conflicting pin issues with SPI & EHRPWM

Signed-off-by: Philip Avinash <avinashphilip@ti.com>
pwm: pwm-test: Driver support for PWM module testing

As with new PWM framework, PWM functionality is completely controlled by
client drivers. But sometimes it causes issues for testing the PWM
features. So here proposing a pwm-test client driver for testing PWM
functionality. pwm-test driver exposes sysfs entries such as
request, period, duty, config, run, polarity for configuring PWM device.
As the pwm-test driver obligated to PWM framework, this can be used for
testing any PWM hardware.

Signed-off-by: Philip Avinash <avinashphilip@ti.com>
ARM: Davinci: da850: PWM test support for PWM devices (ECAP & EHRPWM)

Davinci EVM exposes EHRPWM 1.b and ECAP 1 pin outputs. Hence adding
support for pwm_test interface for these peripherals.

Signed-off-by: Philip Avinash <avinashphilip@ti.com>
Revert "ARM: Davinci: da850: PWM test support for PWM devices (ECAP & EHRPWM)"

This reverts commit 3415928872e43743faacafad460b1ac77ba00377.