pm8916_gpio.txt 925 B

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