blob: 58185b833524a76d258835fe6480c29e00387f37 [file] [log] [blame]
Mateusz Kulikowski120800d2016-03-31 23:12:31 +02001Driver for part of pm8916 PMIC - gpio and power/reset keys
2
3This device should be child of SPMI pmic.
4
51) GPIO driver
6
7Required 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
14Optional properties:
15- gpio-bank-name: name of bank (as default "pm8916" is used)
16
17Example:
18
19pmic_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
292) Power/Reset key driver
30
31Required properties:
32- compatible: "qcom,pm8916-pwrkey"
33- reg: peripheral ID, size of register block
34- gpio-controller
35- #gpio-cells: 2
36
37Optional properties:
38- gpio-bank-name: name of bank (as default "pm8916_key" is used)
39
40
41Example:
42
43pmic_pon: pon@800 {
44 compatible = "qcom,pm8916-pwrkey";
45 reg = <0x800 0x96>;
46 #gpio-cells = <2>;
47 gpio-controller;
48};