summaryrefslogtreecommitdiff
path: root/zephyr/dts/bindings/emul/cros,sm5803-emul.yaml
blob: a3e42682e6270bf73afc2eab09b0383efe151025 (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
# Copyright 2023 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

description: SM5803 charger emulator

compatible: "cros,sm5803-emul"

include: base.yaml

properties:
  main-addr:
    type: int
    default: 0x30
    description: |
      I2C address of the charger base registers. This is always 0x30 on
      hardware.
  meas-addr:
    type: int
    default: 0x31
    description: |
      I2C address of the charger measurement registers. This is always 0x31 on
      hardware.
  test-addr:
    type: int
    default: 0x37
    description: |
      I2C address of the charger test registers. This is always 0x37 on
      hardware.
  interrupt-gpios:
    type: phandle-array
    description: |
      Emulated GPIO pin acting as the active-low interrupt input from the
      charger.