richtek,rt9455.yaml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. # SPDX-License-Identifier: GPL-2.0
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/power/supply/richtek,rt9455.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Richtek rt9455 battery charger
  7. maintainers:
  8. - Sebastian Reichel <sre@kernel.org>
  9. allOf:
  10. - $ref: power-supply.yaml#
  11. properties:
  12. compatible:
  13. const: richtek,rt9455
  14. reg:
  15. maxItems: 1
  16. interrupts:
  17. maxItems: 1
  18. richtek,output-charge-current:
  19. $ref: /schemas/types.yaml#/definitions/uint32
  20. description: output current from the charger to the battery, in uA.
  21. richtek,end-of-charge-percentage:
  22. $ref: /schemas/types.yaml#/definitions/uint32
  23. description: |
  24. percent of the output charge current. When the current in constant-voltage phase drops
  25. below output_charge_current x end-of-charge-percentage, charge is terminated.
  26. richtek,battery-regulation-voltage:
  27. $ref: /schemas/types.yaml#/definitions/uint32
  28. description: maximum battery voltage in uV.
  29. richtek,boost-output-voltage:
  30. $ref: /schemas/types.yaml#/definitions/uint32
  31. description: |
  32. maximum voltage provided to consumer devices, when the charger is in boost mode, in uV.
  33. richtek,min-input-voltage-regulation:
  34. $ref: /schemas/types.yaml#/definitions/uint32
  35. description: |
  36. input voltage level in uV, used to decrease voltage level when the over current of the
  37. input power source occurs. This prevents input voltage drop due to insufficient
  38. current provided by the power source. Defaults to 4500000 uV (4.5V).
  39. richtek,avg-input-current-regulation:
  40. $ref: /schemas/types.yaml#/definitions/uint32
  41. description: |
  42. input current value in uA drained by the charger from the power source.
  43. Defaults to 500000 uA (500mA).
  44. required:
  45. - compatible
  46. - reg
  47. - interrupts
  48. - richtek,output-charge-current
  49. - richtek,end-of-charge-percentage
  50. - richtek,battery-regulation-voltage
  51. - richtek,boost-output-voltage
  52. additionalProperties: false
  53. examples:
  54. - |
  55. #include <dt-bindings/interrupt-controller/irq.h>
  56. i2c {
  57. #address-cells = <1>;
  58. #size-cells = <0>;
  59. charger@22 {
  60. compatible = "richtek,rt9455";
  61. reg = <0x22>;
  62. interrupt-parent = <&gpio1>;
  63. interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
  64. richtek,output-charge-current = <500000>;
  65. richtek,end-of-charge-percentage = <10>;
  66. richtek,battery-regulation-voltage = <4200000>;
  67. richtek,boost-output-voltage = <5050000>;
  68. richtek,min-input-voltage-regulation = <4500000>;
  69. richtek,avg-input-current-regulation = <500000>;
  70. };
  71. };