qcom-pm8xxx.yaml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/mfd/qcom-pm8xxx.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Qualcomm PM8xxx PMIC multi-function devices
  7. maintainers:
  8. - Satya Priya <quic_c_skakit@quicinc.com>
  9. description: |
  10. The PM8xxx family of Power Management ICs are used to provide regulated
  11. voltages and other various functionality to Qualcomm SoCs.
  12. properties:
  13. compatible:
  14. oneOf:
  15. - enum:
  16. - qcom,pm8058
  17. - qcom,pm8821
  18. - qcom,pm8901
  19. - qcom,pm8921
  20. - items:
  21. - enum:
  22. - qcom,pm8018
  23. - const: qcom,pm8921
  24. reg:
  25. maxItems: 1
  26. '#address-cells':
  27. const: 1
  28. '#size-cells':
  29. const: 0
  30. interrupts:
  31. maxItems: 1
  32. '#interrupt-cells':
  33. const: 2
  34. interrupt-controller: true
  35. patternProperties:
  36. "gpio@[0-9a-f]+$":
  37. type: object
  38. $ref: /schemas/pinctrl/qcom,pmic-gpio.yaml#
  39. "keypad@[0-9a-f]+$":
  40. type: object
  41. $ref: /schemas/input/qcom,pm8921-keypad.yaml#
  42. "led@[0-9a-f]+$":
  43. type: object
  44. $ref: /schemas/leds/qcom,pm8058-led.yaml#
  45. "mpps@[0-9a-f]+$":
  46. type: object
  47. $ref: /schemas/pinctrl/qcom,pmic-mpp.yaml#
  48. "pwrkey@[0-9a-f]+$":
  49. type: object
  50. $ref: /schemas/input/qcom,pm8921-pwrkey.yaml#
  51. "rtc@[0-9a-f]+$":
  52. type: object
  53. $ref: /schemas/rtc/qcom-pm8xxx-rtc.yaml#
  54. "vibrator@[0-9a-f]+$":
  55. type: object
  56. $ref: /schemas/input/qcom,pm8xxx-vib.yaml#
  57. "xoadc@[0-9a-f]+$":
  58. type: object
  59. $ref: /schemas/iio/adc/qcom,pm8018-adc.yaml#
  60. required:
  61. - compatible
  62. - '#address-cells'
  63. - '#size-cells'
  64. - interrupts
  65. - '#interrupt-cells'
  66. - interrupt-controller
  67. additionalProperties: false
  68. examples:
  69. - |
  70. #include <dt-bindings/interrupt-controller/irq.h>
  71. ssbi {
  72. #address-cells = <1>;
  73. #size-cells = <0>;
  74. pmic@0 {
  75. compatible = "qcom,pm8921";
  76. reg = <0>;
  77. #address-cells = <1>;
  78. #size-cells = <0>;
  79. interrupt-controller;
  80. #interrupt-cells = <2>;
  81. interrupt-parent = <&tlmm>;
  82. interrupts = <32 IRQ_TYPE_EDGE_RISING>;
  83. };
  84. };
  85. ...