summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabio Baltieri <fabiobaltieri@google.com>2021-01-19 13:39:17 +0000
committerCommit Bot <commit-bot@chromium.org>2021-01-20 00:52:23 +0000
commit6980d49dbf1468b98c997f7ed0389078fcc08569 (patch)
tree661ed73d963ca2586a60a3938af52d5bd321056a
parent2f6508af6696eaa1284e32ad9347b7f88c9ac111 (diff)
downloadchrome-ec-6980d49dbf1468b98c997f7ed0389078fcc08569.tar.gz
volteer: jhl8040r: define and bind reset and ls-en gpios
Add a reset and ls-en gpios property to the jhl8040r binding, and instantiate them to the corresponding pins currently used in gpio_map.h. Named pin has to get an explicit label and #gpio-cells to keep the devicetree compiler happy. BUG=b:176505554 TEST=build and check generated files BRANCH=none Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com> Change-Id: I06c7a9576fc33c2fb804f93170c6f64b58e7201b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2637644 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org>
-rw-r--r--zephyr/dts/bindings/retimer/intel,jhl8040r.yaml8
-rw-r--r--zephyr/projects/volteer/boards/arm/volteer/volteer.dts13
2 files changed, 17 insertions, 4 deletions
diff --git a/zephyr/dts/bindings/retimer/intel,jhl8040r.yaml b/zephyr/dts/bindings/retimer/intel,jhl8040r.yaml
index d6391e5667..6b39833048 100644
--- a/zephyr/dts/bindings/retimer/intel,jhl8040r.yaml
+++ b/zephyr/dts/bindings/retimer/intel,jhl8040r.yaml
@@ -9,6 +9,14 @@ compatible: "intel,jhl8040r"
include: i2c-device.yaml
properties:
+ reset-gpios:
+ type: phandle-array
+ required: true
+
int-gpios:
type: phandle-array
required: false
+
+ ls-en-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 55689fa169..2814e5fc34 100644
--- a/zephyr/projects/volteer/boards/arm/volteer/volteer.dts
+++ b/zephyr/projects/volteer/boards/arm/volteer/volteer.dts
@@ -136,7 +136,8 @@
gpios = <&gpioe 4 GPIO_INPUT>;
label = "USB_C0_BC12_INT_ODL";
};
- usb_c1_mix_int_odl {
+ gpio_usb_c1_mix_int_odl: usb_c1_mix_int_odl {
+ #gpio-cells = <0>;
gpios = <&gpio0 3 GPIO_INPUT>;
label = "USB_C1_MIX_INT_ODL";
};
@@ -216,7 +217,8 @@
gpios = <&gpio6 6 GPIO_ODR_LOW>;
label = "USB_A_LOW_PWR_OD";
};
- usb_c1_rt_rst_odl_boardid_0 {
+ gpio_usb_c1_rt_rst_odl_boardid_0: usb_c1_rt_rst_odl_boardid_0 {
+ #gpio-cells = <0>;
gpios = <&gpio3 2 GPIO_ODR_LOW>;
label = "USB_C1_RT_RST_ODL_BOARDID_0";
};
@@ -256,7 +258,8 @@
gpios = <&gpio7 2 (GPIO_INPUT | GPIO_PULL_UP)>;
label = "EC_SLP_S0IX";
};
- unused_gpio41 {
+ gpio_unused_gpio41: unused_gpio41 {
+ #gpio-cells = <0>;
gpios = <&gpio4 1 (GPIO_INPUT | GPIO_PULL_UP)>;
label = "UNUSED_GPIO41";
};
@@ -431,7 +434,9 @@
compatible = "intel,jhl8040r";
reg = <0x40>;
label = "USB_C1_BB_RETIMER";
- int-gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
+ int-gpios = <&gpio_usb_c1_mix_int_odl>;
+ reset-gpios = <&gpio_usb_c1_rt_rst_odl_boardid_0>;
+ ls-en-gpios = <&gpio_unused_gpio41>;
};
};