ti,tps65132.yaml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/regulator/ti,tps65132.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: TI TPS65132 Dual Output Power Regulators
  7. maintainers:
  8. - devicetree@vger.kernel.org
  9. description: |
  10. The TPS65132 is designed to supply positive/negative driven applications.
  11. Datasheet is available at:
  12. https://www.ti.com/lit/gpn/tps65132
  13. properties:
  14. compatible:
  15. enum:
  16. - ti,tps65132
  17. reg:
  18. maxItems: 1
  19. vin-supply: true
  20. patternProperties:
  21. "^out[pn]$":
  22. type: object
  23. $ref: regulator.yaml#
  24. unevaluatedProperties: false
  25. description:
  26. Properties for single regulator.
  27. properties:
  28. enable-gpios:
  29. maxItems: 1
  30. description:
  31. GPIO specifier to enable the GPIO control (on/off) for regulator.
  32. active-discharge-gpios:
  33. maxItems: 1
  34. description:
  35. GPIO specifier to actively discharge the delay mechanism.
  36. ti,active-discharge-time-us:
  37. description: Regulator active discharge time in microseconds.
  38. dependencies:
  39. active-discharge-gpios: [ 'ti,active-discharge-time-us' ]
  40. required:
  41. - compatible
  42. - reg
  43. additionalProperties: false
  44. examples:
  45. - |
  46. #include <dt-bindings/gpio/gpio.h>
  47. i2c {
  48. #address-cells = <1>;
  49. #size-cells = <0>;
  50. regulator@3e {
  51. compatible = "ti,tps65132";
  52. reg = <0x3e>;
  53. vin-supply = <&supply>;
  54. outp {
  55. regulator-name = "outp";
  56. regulator-boot-on;
  57. regulator-always-on;
  58. enable-gpios = <&gpio 23 GPIO_ACTIVE_HIGH>;
  59. };
  60. outn {
  61. regulator-name = "outn";
  62. regulator-boot-on;
  63. regulator-always-on;
  64. regulator-active-discharge = <0>;
  65. enable-gpios = <&gpio 40 GPIO_ACTIVE_HIGH>;
  66. };
  67. };
  68. };