1*c66ec88fSEmmanuel VadotQualcomm PM8xxx PMIC Power Key 2*c66ec88fSEmmanuel Vadot 3*c66ec88fSEmmanuel VadotPROPERTIES 4*c66ec88fSEmmanuel Vadot 5*c66ec88fSEmmanuel Vadot- compatible: 6*c66ec88fSEmmanuel Vadot Usage: required 7*c66ec88fSEmmanuel Vadot Value type: <string> 8*c66ec88fSEmmanuel Vadot Definition: must be one of: 9*c66ec88fSEmmanuel Vadot "qcom,pm8058-pwrkey" 10*c66ec88fSEmmanuel Vadot "qcom,pm8921-pwrkey" 11*c66ec88fSEmmanuel Vadot 12*c66ec88fSEmmanuel Vadot- reg: 13*c66ec88fSEmmanuel Vadot Usage: required 14*c66ec88fSEmmanuel Vadot Value type: <prop-encoded-array> 15*c66ec88fSEmmanuel Vadot Definition: address of power key control register 16*c66ec88fSEmmanuel Vadot 17*c66ec88fSEmmanuel Vadot- interrupts: 18*c66ec88fSEmmanuel Vadot Usage: required 19*c66ec88fSEmmanuel Vadot Value type: <prop-encoded-array> 20*c66ec88fSEmmanuel Vadot Definition: the first interrupt specifies the key release interrupt 21*c66ec88fSEmmanuel Vadot and the second interrupt specifies the key press interrupt. 22*c66ec88fSEmmanuel Vadot The format of the specifier is defined by the binding 23*c66ec88fSEmmanuel Vadot document describing the node's interrupt parent. 24*c66ec88fSEmmanuel Vadot 25*c66ec88fSEmmanuel Vadot- debounce: 26*c66ec88fSEmmanuel Vadot Usage: optional 27*c66ec88fSEmmanuel Vadot Value type: <u32> 28*c66ec88fSEmmanuel Vadot Definition: time in microseconds that key must be pressed or release 29*c66ec88fSEmmanuel Vadot for state change interrupt to trigger. 30*c66ec88fSEmmanuel Vadot 31*c66ec88fSEmmanuel Vadot- pull-up: 32*c66ec88fSEmmanuel Vadot Usage: optional 33*c66ec88fSEmmanuel Vadot Value type: <empty> 34*c66ec88fSEmmanuel Vadot Definition: presence of this property indicates that the KPDPWR_N pin 35*c66ec88fSEmmanuel Vadot should be configured for pull up. 36*c66ec88fSEmmanuel Vadot 37*c66ec88fSEmmanuel VadotEXAMPLE 38*c66ec88fSEmmanuel Vadot 39*c66ec88fSEmmanuel Vadot pwrkey@1c { 40*c66ec88fSEmmanuel Vadot compatible = "qcom,pm8921-pwrkey"; 41*c66ec88fSEmmanuel Vadot reg = <0x1c>; 42*c66ec88fSEmmanuel Vadot interrupt-parent = <&pmicintc>; 43*c66ec88fSEmmanuel Vadot interrupts = <50 1>, <51 1>; 44*c66ec88fSEmmanuel Vadot debounce = <15625>; 45*c66ec88fSEmmanuel Vadot pull-up; 46*c66ec88fSEmmanuel Vadot }; 47