bq25890.yaml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. # SPDX-License-Identifier: GPL-2.0
  2. # Copyright (C) 2021 Sebastian Reichel
  3. %YAML 1.2
  4. ---
  5. $id: http://devicetree.org/schemas/power/supply/bq25890.yaml#
  6. $schema: http://devicetree.org/meta-schemas/core.yaml#
  7. title: Bq25890, bq25892, bq25895 and bq25896 Li-Ion Charger
  8. maintainers:
  9. - Sebastian Reichel <sre@kernel.org>
  10. allOf:
  11. - $ref: power-supply.yaml#
  12. properties:
  13. compatible:
  14. oneOf:
  15. - enum:
  16. - ti,bq25890
  17. - items:
  18. - enum:
  19. - ti,bq25892
  20. - ti,bq25895
  21. - ti,bq25896
  22. - const: ti,bq25890
  23. reg:
  24. maxItems: 1
  25. interrupts:
  26. maxItems: 1
  27. ti,battery-regulation-voltage:
  28. $ref: /schemas/types.yaml#/definitions/uint32
  29. description: maximum charging voltage (in uV)
  30. ti,charge-current:
  31. $ref: /schemas/types.yaml#/definitions/uint32
  32. description: maximum charging current (in uA)
  33. ti,termination-current:
  34. $ref: /schemas/types.yaml#/definitions/uint32
  35. description: |
  36. charge will be terminated when current in constant-voltage phase
  37. drops below this value (in uA)
  38. ti,precharge-current:
  39. $ref: /schemas/types.yaml#/definitions/uint32
  40. description: maximum charge current during precharge phase (in uA)
  41. ti,minimum-sys-voltage:
  42. $ref: /schemas/types.yaml#/definitions/uint32
  43. description: |
  44. when battery is charging and it is below minimum system voltage,
  45. the system will be regulated above minimum-sys-voltage setting (in uV)
  46. ti,boost-voltage:
  47. $ref: /schemas/types.yaml#/definitions/uint32
  48. description: VBUS voltage level in boost mode (in uV)
  49. ti,boost-max-current:
  50. $ref: /schemas/types.yaml#/definitions/uint32
  51. description: maximum allowed current draw in boost mode (in uA)
  52. ti,boost-low-freq:
  53. description: boost mode frequency will be 500kHz, otherwise 1.5MHz
  54. type: boolean
  55. ti,use-ilim-pin:
  56. description: |
  57. ILIM resistor will be used and the input current will be the lower
  58. between the resistor setting and the IINLIM register setting
  59. type: boolean
  60. ti,thermal-regulation-threshold:
  61. $ref: /schemas/types.yaml#/definitions/uint32
  62. description: |
  63. temperature above which the charge current is lowered, to avoid overheating
  64. (in degrees Celsius). If omitted, the default setting will be used (120 degrees)
  65. ti,ibatcomp-micro-ohms:
  66. description: value of a resistor in series with the battery (in Micro Ohms)
  67. ti,ibatcomp-clamp-microvolt:
  68. description: max. charging voltage adjustment due to expected voltage drop on in-series resistor
  69. required:
  70. - compatible
  71. - reg
  72. - interrupts
  73. - ti,battery-regulation-voltage
  74. - ti,charge-current
  75. - ti,termination-current
  76. - ti,precharge-current
  77. - ti,minimum-sys-voltage
  78. - ti,boost-voltage
  79. - ti,boost-max-current
  80. unevaluatedProperties: false
  81. examples:
  82. - |
  83. #include <dt-bindings/interrupt-controller/irq.h>
  84. i2c {
  85. #address-cells = <1>;
  86. #size-cells = <0>;
  87. charger@6a {
  88. compatible = "ti,bq25890";
  89. reg = <0x6a>;
  90. interrupt-parent = <&gpio1>;
  91. interrupts = <16 IRQ_TYPE_EDGE_FALLING>;
  92. ti,battery-regulation-voltage = <4200000>;
  93. ti,charge-current = <1000000>;
  94. ti,termination-current = <50000>;
  95. ti,precharge-current = <128000>;
  96. ti,minimum-sys-voltage = <3600000>;
  97. ti,boost-voltage = <5000000>;
  98. ti,boost-max-current = <1000000>;
  99. ti,use-ilim-pin;
  100. ti,thermal-regulation-threshold = <120>;
  101. };
  102. };