drivers: pwm: re-design pwm API interfaces
drivers: pwm: re-design pwm API interfaces

Re-design the pwm API interfaces. A RFC was sent and discussed
recently on the re-design of PWM APIs.

APIs like pwm_pin_set_values, pwm_pin_set_period, pwm_pin
_set_duty_cycle will be deprecated and replaced by the new
APIs pwm_pin_set_cycles and pwm_pin_set_usec.

A new API pwm_get_cycles_per_sec will be added to get the
clock rate for pwm pins.

The API pwm_pin_set_phase will be deprecated(it always sets
the phase to zero).

The API pwm_pin_configure will be deprecated since it is not
doing anything for most of the platforms or it can be moved
to device init function for the other platforms.

All the pwm_all_xxx APIs will be deprecated. If necessary,
user or an app can set the pins individually.

Jira: ZEP-745

Change-Id: Ie7095df2a67cff08873b59794812ac64ee00c1c2
Signed-off-by: Baohong Liu <04f4a475e25708ef58f834bd7b5f2fc86c2e7841@intel.com>

mbolivar/zephyr,pklazy/zephyr,Vudentz/zephyr,bboozzoo/zephyr,holtmann/zephyr,GiulianoFranchetto/zephyr,zephyrproject-rtos/zephyr,ldts/zephyr,galak/zephyr,fbsder/zephyr,runchip/zephyr-cc3200,mbolivar/zephyr,nashif/zephyr,fbsder/zephyr,tidyjiang8/zephyr-doc,mbolivar/zephyr,galak/zephyr,rsalveti/zephyr,ldts/zephyr,pklazy/zephyr,pklazy/zephyr,nashif/zephyr,zephyriot/zephyr,rsalveti/zephyr,tidyjiang8/zephyr-doc,zephyrproject-rtos/zephyr,zephyrproject-rtos/zephyr,galak/zephyr,Vudentz/zephyr,punitvara/zephyr,fractalclone/zephyr-riscv,nashif/zephyr,finikorg/zephyr,erwango/zephyr,aceofall/zephyr-iotos,tidyjiang8/zephyr-doc,erwango/zephyr,sharronliu/zephyr,pklazy/zephyr,finikorg/zephyr,GiulianoFranchetto/zephyr,explora26/zephyr,runchip/zephyr-cc3220,holtmann/zephyr,runchip/zephyr-cc3200,rsalveti/zephyr,punitvara/zephyr,zephyriot/zephyr,zephyriot/zephyr,bboozzoo/zephyr,explora26/zephyr,galak/zephyr,zephyriot/zephyr,GiulianoFranchetto/zephyr,GiulianoFranchetto/zephyr,runchip/zephyr-cc3200,kraj/zephyr,Vudentz/zephyr,holtmann/zephyr,runchip/zephyr-cc3220,galak/zephyr,explora26/zephyr,tidyjiang8/zephyr-doc,ldts/zephyr,runchip/zephyr-cc3200,zephyrproject-rtos/zephyr,mbolivar/zephyr,erwango/zephyr,kraj/zephyr,bigdinotech/zephyr,sharronliu/zephyr,pklazy/zephyr,ldts/zephyr,explora26/zephyr,runchip/zephyr-cc3220,rsalveti/zephyr,fractalclone/zephyr-riscv,zephyrproject-rtos/zephyr,sharronliu/zephyr,finikorg/zephyr,kraj/zephyr,fbsder/zephyr,aceofall/zephyr-iotos,bboozzoo/zephyr,sharronliu/zephyr,tidyjiang8/zephyr-doc,sharronliu/zephyr,ldts/zephyr,bigdinotech/zephyr,fractalclone/zephyr-riscv,fbsder/zephyr,nashif/zephyr,zephyriot/zephyr,aceofall/zephyr-iotos,fbsder/zephyr,runchip/zephyr-cc3200,bboozzoo/zephyr,aceofall/zephyr-iotos,fractalclone/zephyr-riscv,runchip/zephyr-cc3220,Vudentz/zephyr,mbolivar/zephyr,rsalveti/zephyr,erwango/zephyr,aceofall/zephyr-iotos,punitvara/zephyr,punitvara/zephyr,bboozzoo/zephyr,finikorg/zephyr,kraj/zephyr,finikorg/zephyr,GiulianoFranchetto/zephyr,bigdinotech/zephyr,nashif/zephyr,runchip/zephyr-cc3220,holtmann/zephyr,erwango/zephyr,explora26/zephyr,punitvara/zephyr,Vudentz/zephyr,bigdinotech/zephyr,fractalclone/zephyr-riscv,Vudentz/zephyr,kraj/zephyr,bigdinotech/zephyr,holtmann/zephyr