platform: qpnp-power-on: Set boot reason in procfs

Assigns a value to the boot_reason procfs property in
qpnp-power-on. This property can be read via
/proc/sys/kernel/boot_reason. The value for this property
will reflect lowest bit set in the PON_REASON1 PMIC register.
For example, if bit 0 is set in the register, then
boot_reason will have a value of 1. If no bits are set
in the register, then boot_reason will have a value of 0.

For existing PMIC chips, the following mapping applies
for the value of boot_reason:

0 -> unknown
1 -> hard reset
2 -> sudden momentary power loss (SMPL)
3 -> real time clock (RTC)
4 -> DC charger inserted
5 -> USB charger inserted
6 -> PON1 pin toggled (for secondary PMICs)
7 -> CBLPWR_N pin toggled (for external power supply)
8 -> KPDPWR_N pin toggled (power key pressed)

Change-Id: Icf2be66165fd01d3063282fcbfb2b115480e7b5c
Signed-off-by: Maria Yu <aiquny@codeaurora.org>
Merge "platform: qpnp-power-on: Set boot reason in procfs"
ARM: dts: msm: Add a new device tree for msm8926 SKUG PVT

Split a common file of msm8926 QRD SKUG device tree file
to easily add new device tree for msm8926 SKUG PVT.

Change-Id: I3a67da4a6a94ed40bd73a952fb2debf858dd98bf
Signed-off-by: Maria Yu <aiquny@codeaurora.org>
hwmon: qpnp-adc: add battery thermistor mapping table for skug

Since the new values of parameters including Rs1=30.3K,
Rs2=12.8K, Tcold=-15DegC and Thot=55DegC are used for
skug device, we add a new table accordingly.

CRs-fixed: 590617
Change-Id: If9e6b1103abd0fb40e98dabb0c75c5c9deb5cacc
Signed-off-by: Wu Fenglin <fenglinw@codeaurora.org>
Merge "ARM: dts: msm: Add a new device tree for msm8926 SKUG PVT"
Merge "hwmon: qpnp-adc: add battery thermistor mapping table for skug"