MFD: palmas PMIC device support

Palmas is a PMIC from Texas Instruments and this is the MFD part of the
driver for this chip. The PMIC has SMPS and LDO regulators, a general
purpose ADC, GPIO, USB OTG mode detection, watchdog and RTC features.

Signed-off-by: Graeme Gregory <gg@slimlogic.co.uk>
MFD: Palmas GPADC Support

The Palmas has a 15 channel ADC which has two asynchronous reading modes
and one software controlled mode. One of the asynchronous modes can
automatically compare voltages with a threshold and raise an interrupt
when the voltage crosses the threshold. The resolution of the ADC is
12 bits.

Signed-off-by: Graeme Gregory <gg@slimlogic.co.uk>
GPIO: Add Palmas GPIO support

Palmas has a maximum of 8 GPIO available but depending on the package and
OTP programming of the chip they may not all be exposed to pins on the
chip

Signed-off-by: Graeme Gregory <gg@slimlogic.co.uk>
REGULATOR: regulator driver for Palmas series chips

Palmas has both Switched Mode (SMPS) and Linear (LDO) regulators in it.
This regulator driver allows software control of these regulators.

Signed-off-by: Graeme Gregory <gg@slimlogic.co.uk>
MFD: Palmas RESOURCE IP block driver

The Resource IP block controls the NSLEEP, ENABLE1, ENABLE2, pin actions.
As well as controlling the clk32kg* clocks and regen* pins.

Signed-off-by: Graeme Gregory <gg@slimlogic.co.uk>
LED: Add support for Palmas LEDs

The Palmas familly of chips has LED support. This is not always muxed
to output pins so depending on the setting of the mux this driver
will create the appropriate LED class devices.

Signed-off-by: Graeme Gregory <gg@slimlogic.co.uk>
WDT: add Palmas Watchdog support

Add support for the Palmas watchdog timer which has a timeout configurable
from 1s to 128s.

Signed-off-by: Graeme Gregory <gg@slimlogic.co.uk>
RTC: rtc-palmas a new driver for palmas PMIC

This the is RTC driver for the palmas series of PMIC chips from TI.

Signed-of-by: Graeme Gregory <gg@slimlogic.co.uk>
MFD: Add support for Palmas PWM generator

Palmas has ability to produce PWM on two pins that can be selected
by the mux regsters. It is limited to two frequencies 125Hz and 62.5hz.

Signed-off-by: Graeme Gregory <gg@slimlogic.co.uk>
CLK: add a clock driver for palmas

Palmas has two clock generators in it, clk32kg and clk32kg audio. They
are fixed frequency clocks that only have enable/disable functionality.

Signed-off-by: Graeme Gregory <gg@slimlogic.co.uk>
INPUT: KEY: Add Power button input key event driver

This patch adds palmas power button as a input event driver. This
will be mapped as power button key in the userland.

Signed-off-by: Girish S G <girishsg@ti.com>
Signed-off-by: Keerthy <j-keerthy@ti.com>
Signed-off-by: Graeme Gregory <gg@slimlogic.co.uk>
USB: Palmas OTG Transceiver Driver

This is the driver for the OTG transceiver built into the Palmas chip. It
handles the various USB OTG events that can be generated by cable
insertion/removal.

Signed-off-by: Graeme Gregory <gg@slimlogic.co.uk>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
palmas: example board file

This is an example board file to connect palmas to an omap chip

Signed-of-by: Graeme Gregory <gg@slimlogic.co.uk>
HACK DO NOT USE

Allowing backdoor writing to regulator volts/state