qcom-labibb-regulator.yaml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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. const: qcom,pmi8998-lab-ibb
  16. lab:
  17. type: object
  18. $ref: regulator.yaml#
  19. unevaluatedProperties: false
  20. properties:
  21. qcom,soft-start-us:
  22. description: Regulator soft start time in microseconds.
  23. enum: [200, 400, 600, 800]
  24. default: 200
  25. interrupts:
  26. minItems: 1
  27. maxItems: 2
  28. description:
  29. Short-circuit and over-current interrupts for lab.
  30. interrupt-names:
  31. minItems: 1
  32. items:
  33. - const: sc-err
  34. - const: ocp
  35. required:
  36. - interrupts
  37. - interrupt-names
  38. ibb:
  39. type: object
  40. $ref: regulator.yaml#
  41. unevaluatedProperties: false
  42. properties:
  43. qcom,discharge-resistor-kohms:
  44. $ref: /schemas/types.yaml#/definitions/uint32
  45. description: Discharge resistor value in KiloOhms.
  46. enum: [300, 64, 32, 16]
  47. default: 300
  48. interrupts:
  49. minItems: 1
  50. maxItems: 2
  51. description:
  52. Short-circuit and over-current interrupts for ibb.
  53. interrupt-names:
  54. minItems: 1
  55. items:
  56. - const: sc-err
  57. - const: ocp
  58. required:
  59. - interrupts
  60. - interrupt-names
  61. required:
  62. - compatible
  63. additionalProperties: false
  64. examples:
  65. - |
  66. #include <dt-bindings/interrupt-controller/irq.h>
  67. labibb {
  68. compatible = "qcom,pmi8998-lab-ibb";
  69. lab {
  70. interrupts = <0x3 0xde 0x1 IRQ_TYPE_EDGE_RISING>,
  71. <0x3 0xde 0x0 IRQ_TYPE_LEVEL_LOW>;
  72. interrupt-names = "sc-err", "ocp";
  73. };
  74. ibb {
  75. interrupts = <0x3 0xdc 0x2 IRQ_TYPE_EDGE_RISING>,
  76. <0x3 0xdc 0x0 IRQ_TYPE_LEVEL_LOW>;
  77. interrupt-names = "sc-err", "ocp";
  78. };
  79. };
  80. ...