power: qpnp-bms: Add qrd 4v2 1300mah battery data

currently there is no battery data for qrd 4v2 1300mah

add qrd 4v2 1300mah battery data

Change-Id: Ie5bf0cafb2f50e85d45976178bb13d8b79017bb5
Signed-off-by: tingting <tingting@codeaurora.org>
of: batterydata: Introduce DT support for battery data

Add the of_batterydata driver to parse device tree battery data.

Battery data contains battery profile information and is used by the
charger and the BMS drivers.

Change-Id: Ibe03800be0d51e82194c9385c6348c5a6c92711d
Signed-off-by: Xiaozhe Shi <xiaozhes@codeaurora.org>
i2c-qup: Verify that mem resource exists prior to redirection

Redirection may cause a system crush in the case of a missing
memory resource specification. Now when reading a memory
resource from platform data, the return value is checked
before doing redirection on the resource.

Change-Id: Id4ef9c293f65935d6e3bd311720a1e66a2da8f35
Signed-off-by: Gilad Avidov <gavidov@codeaurora.org>
i2c: Add a new driver with support for tags-v2 and BAM

New I2C driver with support for BLSP/QUP BAM, version
two tags, high-speed (upto 3.4MHz) transfers, clock path
voting, and runtime power management.
Additionally, this driver features built-in profiling and
built-in debugging with user friendly message format.

Change-Id: I9ea1087d9417c8834c285f3963b48a0dad2ecc10
Signed-off-by: Gilad Avidov <gavidov@codeaurora.org>