summaryrefslogtreecommitdiff
path: root/zephyr/dts/bindings/i2c/cros-ec-i2c-port-base.yaml
blob: eb6b572569ba4cb8f4b1ce78f325fbfca0706e50 (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
44
45
# Copyright (c) 2021 The Chromium OS Authors
# SPDX-License-Identifier: Apache-2.0

description: I2C port base properties

properties:
  i2c-port:
    type: phandle
    required: true
  enum-name:
    type: string
    required: true
    description:
      Enum values used in the source code to refer to the i2c port
    enum:
    - I2C_PORT_ACCEL
    - I2C_PORT_BATTERY
    - I2C_PORT_CHARGER
    - I2C_PORT_EEPROM
    - I2C_PORT_POWER
    - I2C_PORT_SENSOR
    - I2C_PORT_TCPC0
    - I2C_PORT_TCPC1
    - I2C_PORT_USB_1_MIX
    - I2C_PORT_USB_C0
    - I2C_PORT_USB_C1
    - I2C_PORT_VIRTUAL
    - I2C_PORT_WLC
  label:
    required: true
    type: string
    description:
      Human readable string describing the device (used as device_get_binding()
      argument).

child-binding:
  description: Optional configuration bindings
  properties:
    frequency:
      type: int
      required: true
      description: Transfer data rate in kHz
  child-binding:
    description: SCL and SDA configurations
    include: gpio-enum-name.yaml