android_kernel_oneplus_msm8998/Documentation/devicetree/bindings/power_supply/msm-poweroff.txt
Stepan Moskovchenko e731442230 power: reset: msm: Define reg-names for the qcom,pshold device
Since the qcom,pshold device now supports up to two
distinct register definitions, add the 'reg-names' property
to assign names to the memory resources, rather than
relying on resource numbering.

Change-Id: Ie0bc5eae0119901239efae05357ae107a112b87a
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
2016-03-22 11:02:19 -07:00

30 lines
1.1 KiB
Text

MSM Restart Driver
A power supply hold (ps-hold) bit is set to power the msm chipsets.
Clearing that bit allows us to restart/poweroff. The difference
between poweroff and restart is determined by unique power manager IC
settings.
Required Properties:
-compatible: "qcom,pshold"
-reg: Specifies the physical address of the ps-hold register
This value must correspond to "pshold-base" as defined in reg-names
-reg-names: must contain "pshold-base"
may also contain "tcsr-boot-misc-detect"
Optional Properties:
-reg: A secondary reg address/size pair may be provided, to specify the address
of the TCSR_BOOT_MISC_DETECT register. This address is typically used to
configure the type of reset desired. Omitting this address implies that
the reset type shall be configured by means of a call to the secure
environment. This value must correspond to "tcsr-boot-misc-detect" as
defined in reg-names
-reg-names: must contain "tcsr-boot-misc-detect" if the secondary address/size
pair described above is defined.
Example:
restart@fc4ab000 {
compatible = "qcom,pshold";
reg = <0xfc4ab000 0x4>;
};