Courtney Cavin | 68c581d | 2015-03-20 21:45:59 -0700 | [diff] [blame] | 1 | Qualcomm PM8941 PMIC Power Key |
| 2 | |
| 3 | PROPERTIES |
| 4 | |
| 5 | - compatible: |
| 6 | Usage: required |
| 7 | Value type: <string> |
| 8 | Definition: must be one of: |
| 9 | "qcom,pm8941-pwrkey" |
| 10 | |
| 11 | - reg: |
| 12 | Usage: required |
| 13 | Value type: <prop-encoded-array> |
| 14 | Definition: base address of registers for block |
| 15 | |
| 16 | - interrupts: |
| 17 | Usage: required |
| 18 | Value type: <prop-encoded-array> |
| 19 | Definition: key change interrupt; The format of the specifier is |
| 20 | defined by the binding document describing the node's |
| 21 | interrupt parent. |
| 22 | |
| 23 | - debounce: |
| 24 | Usage: optional |
| 25 | Value type: <u32> |
| 26 | Definition: time in microseconds that key must be pressed or released |
| 27 | for state change interrupt to trigger. |
| 28 | |
| 29 | - bias-pull-up: |
| 30 | Usage: optional |
| 31 | Value type: <empty> |
| 32 | Definition: presence of this property indicates that the KPDPWR_N pin |
| 33 | should be configured for pull up. |
| 34 | |
| 35 | EXAMPLE |
| 36 | |
| 37 | pwrkey@800 { |
| 38 | compatible = "qcom,pm8941-pwrkey"; |
| 39 | reg = <0x800>; |
| 40 | interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>; |
| 41 | debounce = <15625>; |
| 42 | bias-pull-up; |
| 43 | }; |