diff options
Diffstat (limited to 'zephyr/dts/bindings/i2c')
-rw-r--r-- | zephyr/dts/bindings/i2c/cros-ec,i2c-port-eeprom.yaml | 14 | ||||
-rw-r--r-- | zephyr/dts/bindings/i2c/cros-ec-i2c-port-base.yaml | 34 | ||||
-rw-r--r-- | zephyr/dts/bindings/i2c/named-i2c-ports.yaml | 9 |
3 files changed, 49 insertions, 8 deletions
diff --git a/zephyr/dts/bindings/i2c/cros-ec,i2c-port-eeprom.yaml b/zephyr/dts/bindings/i2c/cros-ec,i2c-port-eeprom.yaml new file mode 100644 index 0000000000..e8e206cfb8 --- /dev/null +++ b/zephyr/dts/bindings/i2c/cros-ec,i2c-port-eeprom.yaml @@ -0,0 +1,14 @@ +# Copyright (c) 2021 The Chromium OS Authors +# SPDX-License-Identifier: Apache-2.0 + +description: I2C port properties for the EEPROM node + +compatible: "cros-ec,i2c-port-eeprom" + +include: [cros-ec-i2c-port-base.yaml] + +properties: + addr-flags: + type: int + description: + EEPROM flags. diff --git a/zephyr/dts/bindings/i2c/cros-ec-i2c-port-base.yaml b/zephyr/dts/bindings/i2c/cros-ec-i2c-port-base.yaml new file mode 100644 index 0000000000..49d9ee53c4 --- /dev/null +++ b/zephyr/dts/bindings/i2c/cros-ec-i2c-port-base.yaml @@ -0,0 +1,34 @@ +# 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). diff --git a/zephyr/dts/bindings/i2c/named-i2c-ports.yaml b/zephyr/dts/bindings/i2c/named-i2c-ports.yaml index 088990eec1..4fce9c3229 100644 --- a/zephyr/dts/bindings/i2c/named-i2c-ports.yaml +++ b/zephyr/dts/bindings/i2c/named-i2c-ports.yaml @@ -7,11 +7,4 @@ compatible: "named-i2c-ports" child-binding: description: Named I2C ports child node - properties: - i2c-port: - type: phandle - required: true - label: - required: true - type: string - description: Human readable string describing the device (used as device_get_binding() argument) + include: [cros-ec-i2c-port-base.yaml] |