qcom-labibb-regulator.yaml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/regulator/qcom-labibb-regulator.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Qualcomm's LAB(LCD AMOLED Boost)/IBB(Inverting Buck Boost) Regulator
  7. maintainers:
  8. - Sumit Semwal <sumit.semwal@linaro.org>
  9. description:
  10. LAB can be used as a positive boost power supply and IBB can be used as a
  11. negative boost power supply for display panels. Currently implemented for
  12. pmi8998.
  13. properties:
  14. compatible:
  15. oneOf:
  16. - const: qcom,pmi8998-lab-ibb
  17. - items:
  18. - enum:
  19. - qcom,pmi8950-lab-ibb
  20. - const: qcom,pmi8998-lab-ibb
  21. lab:
  22. type: object
  23. $ref: regulator.yaml#
  24. unevaluatedProperties: false
  25. properties:
  26. qcom,soft-start-us:
  27. description: Regulator soft start time in microseconds.
  28. enum: [200, 400, 600, 800]
  29. default: 200
  30. interrupts:
  31. minItems: 1
  32. maxItems: 2
  33. description:
  34. Short-circuit and over-current interrupts for lab.
  35. interrupt-names:
  36. minItems: 1
  37. items:
  38. - const: sc-err
  39. - const: ocp
  40. required:
  41. - interrupts
  42. - interrupt-names
  43. ibb:
  44. type: object
  45. $ref: regulator.yaml#
  46. unevaluatedProperties: false
  47. properties:
  48. qcom,discharge-resistor-kohms:
  49. $ref: /schemas/types.yaml#/definitions/uint32
  50. description: Discharge resistor value in KiloOhms.
  51. enum: [300, 64, 32, 16]
  52. default: 300
  53. interrupts:
  54. minItems: 1
  55. maxItems: 2
  56. description:
  57. Short-circuit and over-current interrupts for ibb.
  58. interrupt-names:
  59. minItems: 1
  60. items:
  61. - const: sc-err
  62. - const: ocp
  63. required:
  64. - interrupts
  65. - interrupt-names
  66. required:
  67. - compatible
  68. additionalProperties: false
  69. examples:
  70. - |
  71. #include <dt-bindings/interrupt-controller/irq.h>
  72. labibb {
  73. compatible = "qcom,pmi8998-lab-ibb";
  74. lab {
  75. interrupts = <0x3 0xde 0x1 IRQ_TYPE_EDGE_RISING>,
  76. <0x3 0xde 0x0 IRQ_TYPE_LEVEL_LOW>;
  77. interrupt-names = "sc-err", "ocp";
  78. };
  79. ibb {
  80. interrupts = <0x3 0xdc 0x2 IRQ_TYPE_EDGE_RISING>,
  81. <0x3 0xdc 0x0 IRQ_TYPE_LEVEL_LOW>;
  82. interrupt-names = "sc-err", "ocp";
  83. };
  84. };
  85. ...