Mateusz Kulikowski | 120800d | 2016-03-31 23:12:31 +0200 | [diff] [blame] | 1 | Driver for part of pm8916 PMIC - gpio and power/reset keys |
| 2 | |
| 3 | This device should be child of SPMI pmic. |
| 4 | |
| 5 | 1) GPIO driver |
| 6 | |
| 7 | Required properties: |
| 8 | - compatible: "qcom,pm8916-gpio" |
| 9 | - reg: peripheral ID, size of register block |
| 10 | - gpio-controller |
| 11 | - gpio-count: number of GPIOs |
| 12 | - #gpio-cells: 2 |
| 13 | |
| 14 | Optional properties: |
| 15 | - gpio-bank-name: name of bank (as default "pm8916" is used) |
| 16 | |
| 17 | Example: |
| 18 | |
| 19 | pmic_gpios: gpios@c000 { |
| 20 | compatible = "qcom,pm8916-gpio"; |
| 21 | reg = <0xc000 0x400>; |
| 22 | gpio-controller; |
| 23 | gpio-count = <4>; |
| 24 | #gpio-cells = <2>; |
| 25 | gpio-bank-name="pmic"; |
| 26 | }; |
| 27 | |
| 28 | |
| 29 | 2) Power/Reset key driver |
| 30 | |
| 31 | Required properties: |
| 32 | - compatible: "qcom,pm8916-pwrkey" |
| 33 | - reg: peripheral ID, size of register block |
| 34 | - gpio-controller |
| 35 | - #gpio-cells: 2 |
| 36 | |
| 37 | Optional properties: |
| 38 | - gpio-bank-name: name of bank (as default "pm8916_key" is used) |
| 39 | |
| 40 | |
| 41 | Example: |
| 42 | |
| 43 | pmic_pon: pon@800 { |
| 44 | compatible = "qcom,pm8916-pwrkey"; |
| 45 | reg = <0x800 0x96>; |
| 46 | #gpio-cells = <2>; |
| 47 | gpio-controller; |
| 48 | }; |