summaryrefslogtreecommitdiff
path: root/zephyr/dts
diff options
context:
space:
mode:
authorRajesh Kumar <rajesh3.kumar@intel.com>2022-03-14 17:46:05 -0700
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-03-29 23:43:18 +0000
commitc11825cf6c7c9a6346cbb4afc1dce9e40689bd04 (patch)
tree0bf5fc1101bc3447bab9d496005015ae2033f606 /zephyr/dts
parent6ea4239b2caa21e1588a15078bfdba9b00a0a2a0 (diff)
downloadchrome-ec-c11825cf6c7c9a6346cbb4afc1dce9e40689bd04.tar.gz
zephyr: add support for tcpc fusb302 in device tree
This commit adds support for tcpc fusb302 definition in device tree. It will allow to remove board specific files which implemented the tcpc fusb302 functionality. BRANCH=none BUG=none TEST=zmake configure -b adlrvp_npcx Signed-off-by: Rajesh Kumar <rajesh3.kumar@intel.com> Change-Id: I096da76a3052cd6404fb55cb68451cd725b33184 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3524221 Reviewed-by: Vijay P Hiremath <vijay.p.hiremath@intel.com> Reviewed-by: Denis Brockus <dbrockus@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'zephyr/dts')
-rw-r--r--zephyr/dts/bindings/usbc/fairchild,fusb302.yaml21
1 files changed, 21 insertions, 0 deletions
diff --git a/zephyr/dts/bindings/usbc/fairchild,fusb302.yaml b/zephyr/dts/bindings/usbc/fairchild,fusb302.yaml
new file mode 100644
index 0000000000..1eba4dedaf
--- /dev/null
+++ b/zephyr/dts/bindings/usbc/fairchild,fusb302.yaml
@@ -0,0 +1,21 @@
+description: USBC TCPC
+
+compatible: "fairchild,fusb302"
+
+properties:
+ port:
+ type: phandle
+ required: true
+ description: |
+ I2C port used to communicate with controller
+
+ i2c-addr-flags:
+ type: string
+ default: "FUSB302_I2C_ADDR_FLAGS"
+ enum:
+ - "FUSB302_I2C_ADDR_FLAGS"
+ - "FUSB302_I2C_ADDR_B01_FLAGS"
+ - "FUSB302_I2C_ADDR_B10_FLAGS"
+ - "FUSB302_I2C_ADDR_B11_FLAGS"
+ description: |
+ I2C address of controller