pwm: davinci: Add Kconfig support for ECAP & EHRPWM devices

Add EHRPWM and ECAP support build support for DAVINCI_DA8XX 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>
ARM: davinci: clk framework support for enable/disable functionality

Davinci clock framework currently not supporting clock enable/disable
functionality on clock nodes. In Davinci platform EHRPWM module requires
support for clock enable/disable for TBCLK support. Hence this patch
adds support for enabling/disabling clocks depends on the availability
of the functionality.

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 TBCLK for EHRWPM TBCLK to comply with pwm-tiehrpwm
driver.

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 a0ebb18cd9c23e1a88d4c7dd8dc79b7c89fdef09.
ARM : davinci: da850: Set uart frequency to 132MHZ

Signed-off-by: Philip Avinash <avinashphilip@ti.com>