18c2ecf20Sopenharmony_ciQualcomm PM8xxx PMIC multi-function devices 28c2ecf20Sopenharmony_ci 38c2ecf20Sopenharmony_ciThe PM8xxx family of Power Management ICs are used to provide regulated 48c2ecf20Sopenharmony_civoltages and other various functionality to Qualcomm SoCs. 58c2ecf20Sopenharmony_ci 68c2ecf20Sopenharmony_ci= PROPERTIES 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ci- compatible: 98c2ecf20Sopenharmony_ci Usage: required 108c2ecf20Sopenharmony_ci Value type: <string> 118c2ecf20Sopenharmony_ci Definition: must be one of: 128c2ecf20Sopenharmony_ci "qcom,pm8058" 138c2ecf20Sopenharmony_ci "qcom,pm8821" 148c2ecf20Sopenharmony_ci "qcom,pm8921" 158c2ecf20Sopenharmony_ci 168c2ecf20Sopenharmony_ci- #address-cells: 178c2ecf20Sopenharmony_ci Usage: required 188c2ecf20Sopenharmony_ci Value type: <u32> 198c2ecf20Sopenharmony_ci Definition: must be 1 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_ci- #size-cells: 228c2ecf20Sopenharmony_ci Usage: required 238c2ecf20Sopenharmony_ci Value type: <u32> 248c2ecf20Sopenharmony_ci Definition: must be 0 258c2ecf20Sopenharmony_ci 268c2ecf20Sopenharmony_ci- interrupts: 278c2ecf20Sopenharmony_ci Usage: required 288c2ecf20Sopenharmony_ci Value type: <prop-encoded-array> 298c2ecf20Sopenharmony_ci Definition: specifies the interrupt that indicates a subdevice 308c2ecf20Sopenharmony_ci has generated an interrupt (summary interrupt). The 318c2ecf20Sopenharmony_ci format of the specifier is defined by the binding document 328c2ecf20Sopenharmony_ci describing the node's interrupt parent. 338c2ecf20Sopenharmony_ci 348c2ecf20Sopenharmony_ci- #interrupt-cells: 358c2ecf20Sopenharmony_ci Usage: required 368c2ecf20Sopenharmony_ci Value type : <u32> 378c2ecf20Sopenharmony_ci Definition: must be 2. Specifies the number of cells needed to encode 388c2ecf20Sopenharmony_ci an interrupt source. The 1st cell contains the interrupt 398c2ecf20Sopenharmony_ci number. The 2nd cell is the trigger type and level flags 408c2ecf20Sopenharmony_ci encoded as follows: 418c2ecf20Sopenharmony_ci 428c2ecf20Sopenharmony_ci 1 = low-to-high edge triggered 438c2ecf20Sopenharmony_ci 2 = high-to-low edge triggered 448c2ecf20Sopenharmony_ci 4 = active high level-sensitive 458c2ecf20Sopenharmony_ci 8 = active low level-sensitive 468c2ecf20Sopenharmony_ci 478c2ecf20Sopenharmony_ci- interrupt-controller: 488c2ecf20Sopenharmony_ci Usage: required 498c2ecf20Sopenharmony_ci Value type: <empty> 508c2ecf20Sopenharmony_ci Definition: identifies this node as an interrupt controller 518c2ecf20Sopenharmony_ci 528c2ecf20Sopenharmony_ci= SUBCOMPONENTS 538c2ecf20Sopenharmony_ci 548c2ecf20Sopenharmony_ciThe PMIC contains multiple independent functions, each described in a subnode. 558c2ecf20Sopenharmony_ciThe below bindings specify the set of valid subnodes. 568c2ecf20Sopenharmony_ci 578c2ecf20Sopenharmony_ci== Real-Time Clock 588c2ecf20Sopenharmony_ci 598c2ecf20Sopenharmony_ci- compatible: 608c2ecf20Sopenharmony_ci Usage: required 618c2ecf20Sopenharmony_ci Value type: <string> 628c2ecf20Sopenharmony_ci Definition: must be one of: 638c2ecf20Sopenharmony_ci "qcom,pm8058-rtc" 648c2ecf20Sopenharmony_ci "qcom,pm8921-rtc" 658c2ecf20Sopenharmony_ci "qcom,pm8941-rtc" 668c2ecf20Sopenharmony_ci "qcom,pm8018-rtc" 678c2ecf20Sopenharmony_ci 688c2ecf20Sopenharmony_ci- reg: 698c2ecf20Sopenharmony_ci Usage: required 708c2ecf20Sopenharmony_ci Value type: <prop-encoded-array> 718c2ecf20Sopenharmony_ci Definition: single entry specifying the base address of the RTC registers 728c2ecf20Sopenharmony_ci 738c2ecf20Sopenharmony_ci- interrupts: 748c2ecf20Sopenharmony_ci Usage: required 758c2ecf20Sopenharmony_ci Value type: <prop-encoded-array> 768c2ecf20Sopenharmony_ci Definition: single entry specifying the RTC's alarm interrupt 778c2ecf20Sopenharmony_ci 788c2ecf20Sopenharmony_ci- allow-set-time: 798c2ecf20Sopenharmony_ci Usage: optional 808c2ecf20Sopenharmony_ci Value type: <empty> 818c2ecf20Sopenharmony_ci Definition: indicates that the setting of RTC time is allowed by 828c2ecf20Sopenharmony_ci the host CPU 838c2ecf20Sopenharmony_ci 848c2ecf20Sopenharmony_ci= EXAMPLE 858c2ecf20Sopenharmony_ci 868c2ecf20Sopenharmony_ci pmicintc: pmic@0 { 878c2ecf20Sopenharmony_ci compatible = "qcom,pm8921"; 888c2ecf20Sopenharmony_ci interrupts = <104 8>; 898c2ecf20Sopenharmony_ci #interrupt-cells = <2>; 908c2ecf20Sopenharmony_ci interrupt-controller; 918c2ecf20Sopenharmony_ci #address-cells = <1>; 928c2ecf20Sopenharmony_ci #size-cells = <0>; 938c2ecf20Sopenharmony_ci 948c2ecf20Sopenharmony_ci rtc@11d { 958c2ecf20Sopenharmony_ci compatible = "qcom,pm8921-rtc"; 968c2ecf20Sopenharmony_ci reg = <0x11d>; 978c2ecf20Sopenharmony_ci interrupts = <0x27 0>; 988c2ecf20Sopenharmony_ci }; 998c2ecf20Sopenharmony_ci }; 100