162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0
262306a36Sopenharmony_ci%YAML 1.2
362306a36Sopenharmony_ci---
462306a36Sopenharmony_ci$id: http://devicetree.org/schemas/power/supply/maxim,ds2760.yaml#
562306a36Sopenharmony_ci$schema: http://devicetree.org/meta-schemas/core.yaml#
662306a36Sopenharmony_ci
762306a36Sopenharmony_cititle: Maxim DS2760
862306a36Sopenharmony_ci
962306a36Sopenharmony_cimaintainers:
1062306a36Sopenharmony_ci  - Sebastian Reichel <sre@kernel.org>
1162306a36Sopenharmony_ci
1262306a36Sopenharmony_cidescription: |
1362306a36Sopenharmony_ci  The ds2760 is a w1 slave device and must hence have its sub-node in
1462306a36Sopenharmony_ci  DT under a w1 bus master node.
1562306a36Sopenharmony_ci
1662306a36Sopenharmony_ciallOf:
1762306a36Sopenharmony_ci  - $ref: power-supply.yaml#
1862306a36Sopenharmony_ci
1962306a36Sopenharmony_ciproperties:
2062306a36Sopenharmony_ci  compatible:
2162306a36Sopenharmony_ci    const: maxim,ds2760
2262306a36Sopenharmony_ci
2362306a36Sopenharmony_ci  maxim,pmod-enabled:
2462306a36Sopenharmony_ci    description: |
2562306a36Sopenharmony_ci      Allow the DS2760 to enter sleep mode when the DQ line goes low for more than 2 seconds
2662306a36Sopenharmony_ci      and leave sleep Mode when the DQ line goes high.
2762306a36Sopenharmony_ci    type: boolean
2862306a36Sopenharmony_ci
2962306a36Sopenharmony_ci  maxim,cache-time-ms:
3062306a36Sopenharmony_ci    description: |
3162306a36Sopenharmony_ci      Time im milliseconds to cache the data for.
3262306a36Sopenharmony_ci      When this time expires, the values are read again from the hardware.
3362306a36Sopenharmony_ci      Defaults to 1000.
3462306a36Sopenharmony_ci
3562306a36Sopenharmony_ci  rated-capacity-microamp-hours:
3662306a36Sopenharmony_ci    description: |
3762306a36Sopenharmony_ci      The rated capacity of the battery, in mAh.
3862306a36Sopenharmony_ci      If not specified, the value stored in the non-volatile chip memory is used.
3962306a36Sopenharmony_ci
4062306a36Sopenharmony_cirequired:
4162306a36Sopenharmony_ci  - compatible
4262306a36Sopenharmony_ci
4362306a36Sopenharmony_ciunevaluatedProperties: false
44