Change to using upstream spmi bus architecture. All the spmi devices, marked by spmi-dev-container, become platform devices. spmi-slave-container devices become spmi_devices each representing a slave. The read/write functions use regmap api's instead of calls to spmi_ext_register_read/write() implemented by the spmi bus. This regmap is instantiated per slave. The spmi bus helper functions like spmi_get_irq get changed to their platform bus equivalents. Change Kconfig files include * Remove dependence on OF_SPMI, MSM_QPNP_INT * There were few places where an earlier commit dcc2aedc80746acee589e4b47d3e6adf5d3ec253 missed adding dependence on SPMI along with MSM_SPMI. Fix them. * Add depends on ARCH_MSM. ARCH_MSM is used for internal builds. Change the nodes in DTSI files to confirm to the modified drivers. Update their binding docs to drop spmi-dev-container and spmi-slave-container; Finally update defconfig to use upstream SPMI. Change-Id: Ic85bff27c09c84b152cb38acbc3cadd05c0ec57a Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
60 lines
1.7 KiB
Text
60 lines
1.7 KiB
Text
* msm-qpnp-rtc
|
|
|
|
msm-qpnp-rtc is a RTC driver that supports 32 bit RTC housed inside PMIC.
|
|
Driver utilizes MSM SPMI interface to communicate with the RTC module.
|
|
RTC device is divided into two sub-peripherals one which controls basic RTC
|
|
and other for controlling alarm.
|
|
|
|
[PMIC RTC Device Declarations]
|
|
|
|
-Root Node-
|
|
|
|
Required properties :
|
|
- compatible: Must be "qcom,qpnp-rtc"
|
|
- #address-cells: The number of cells dedicated to represent an address
|
|
This must be set to '1'.
|
|
- #size-cells: The number of cells dedicated to represent address
|
|
space range of a peripheral. This must be set to '1'.
|
|
|
|
Optional properties:
|
|
- qcom,qpnp-rtc-write: This property enables/disables rtc write
|
|
operation. If not mentioned rtc driver keeps
|
|
rtc writes disabled.
|
|
0 = Disable rtc writes.
|
|
1 = Enable rtc writes.
|
|
- qcom,qpnp-rtc-alarm-pwrup: This property enables/disables feature of
|
|
powering up phone (from power down state)
|
|
through alarm interrupt.
|
|
If not mentioned rtc driver will disable
|
|
feature of powring-up phone through alarm.
|
|
0 = Disable powering up of phone through
|
|
alarm interrupt.
|
|
1 = Enable powering up of phone through
|
|
alarm interrupt.
|
|
|
|
-Child Nodes-
|
|
|
|
Required properties :
|
|
- reg : Specify the spmi offset and size for device.
|
|
- interrupts: Specifies alarm interrupt, only for rtc_alarm
|
|
sub-peripheral.
|
|
|
|
Example:
|
|
qcom,pm8941_rtc {
|
|
compatible = "qcom,qpnp-rtc";
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
qcom,qpnp-rtc-write = <0>;
|
|
qcom,qpnp-rtc-alarm-pwrup = <0>;
|
|
|
|
qcom,pm8941_rtc_rw@6000 {
|
|
reg = <0x6000 0x100>;
|
|
};
|
|
|
|
qcom,pm8941_rtc_alarm@6100 {
|
|
reg = <0x6100 0x100>;
|
|
interrupts = <0x0 0x61 0x1>;
|
|
};
|
|
};
|
|
|
|
|