summaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/power/supply/maxim,ds2760.yaml
blob: 5faa2418fe2ff56ce6b60536b2513dd769adfc2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# SPDX-License-Identifier: GPL-2.0
%YAML 1.2
---
$id: http://devicetree.org/schemas/power/supply/maxim,ds2760.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Maxim DS2760

maintainers:
  - Sebastian Reichel <sre@kernel.org>

description: |
  The ds2760 is a w1 slave device and must hence have its sub-node in
  DT under a w1 bus master node.

allOf:
  - $ref: power-supply.yaml#

properties:
  compatible:
    const: maxim,ds2760

  maxim,pmod-enabled:
    description: |
      Allow the DS2760 to enter sleep mode when the DQ line goes low for more than 2 seconds
      and leave sleep Mode when the DQ line goes high.
    type: boolean

  maxim,cache-time-ms:
    description: |
      Time im milliseconds to cache the data for.
      When this time expires, the values are read again from the hardware.
      Defaults to 1000.

  rated-capacity-microamp-hours:
    description: |
      The rated capacity of the battery, in mAh.
      If not specified, the value stored in the non-volatile chip memory is used.

required:
  - compatible

unevaluatedProperties: false