diff options
author | Fabio Baltieri <fabiobaltieri@google.com> | 2021-01-13 19:07:43 +0000 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-01-19 23:37:35 +0000 |
commit | db9593c59753eef2080ad51a9368d423096bab4b (patch) | |
tree | de4473ab74bd9134d1e58f97eaef12e22b5f74b1 /zephyr | |
parent | 50cfda251734eba69016e5a2535a023049c05e28 (diff) | |
download | chrome-ec-db9593c59753eef2080ad51a9368d423096bab4b.tar.gz |
volteer: dts: define and instantiate the retimer device on the i2c mix bus
Define a device tree binding for the JHL8040R retimer and instantiate it
on the i2c3_0 (USB_1_MIX) bus.
Adding a label so that it can be retrieved directly with a DT_NODELABEL
directly until the driver is ported to enumerate based on the compatible
property.
BUG=b:176505554
TEST=build and checked zephyr.dts manually
BRANCH=none
Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
Change-Id: I29a627774534965e9cc122c03f07ac7ce72dcd04
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2633992
Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'zephyr')
-rw-r--r-- | zephyr/dts/bindings/retimer/intel,jhl8040r.yaml | 14 | ||||
-rw-r--r-- | zephyr/projects/volteer/boards/arm/volteer/volteer.dts | 7 |
2 files changed, 21 insertions, 0 deletions
diff --git a/zephyr/dts/bindings/retimer/intel,jhl8040r.yaml b/zephyr/dts/bindings/retimer/intel,jhl8040r.yaml new file mode 100644 index 0000000000..d6391e5667 --- /dev/null +++ b/zephyr/dts/bindings/retimer/intel,jhl8040r.yaml @@ -0,0 +1,14 @@ +# Copyright 2021 The Chromium OS Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +description: Intel JHL8040R Thunderbolt 4 Retimer + +compatible: "intel,jhl8040r" + +include: i2c-device.yaml + +properties: + int-gpios: + type: phandle-array + required: false diff --git a/zephyr/projects/volteer/boards/arm/volteer/volteer.dts b/zephyr/projects/volteer/boards/arm/volteer/volteer.dts index f09f5cae27..3517309a02 100644 --- a/zephyr/projects/volteer/boards/arm/volteer/volteer.dts +++ b/zephyr/projects/volteer/boards/arm/volteer/volteer.dts @@ -426,6 +426,13 @@ &i2c3_0 { status = "okay"; clock-frequency = <I2C_BITRATE_STANDARD>; + + usb_c1_bb_retimer: jhl8040r@40 { + compatible = "intel,jhl8040r"; + reg = <0x40>; + label = "USB_C1_BB_RETIMER"; + int-gpios = <&gpio0 3 GPIO_ACTIVE_LOW>; + }; }; &i2c5_0 { |