summaryrefslogtreecommitdiff
path: root/zephyr/projects
diff options
context:
space:
mode:
authorAndrew McRae <amcrae@google.com>2022-01-28 11:53:53 +1100
committerCommit Bot <commit-bot@chromium.org>2022-02-01 02:27:44 +0000
commit3f8b0b1f248dce2caee7b9a0562511f05546ba62 (patch)
tree6c9110cba7037b29f8b65311d71b580436e65b1b /zephyr/projects
parent713d53c5c50be80e9c9765b30d2def8bcb676f7c (diff)
downloadchrome-ec-3f8b0b1f248dce2caee7b9a0562511f05546ba62.tar.gz
zephyr: Convert wake-pins to use interrupt config
Convert the hibernate wake-pins to use the new interrupt config. BUG=b:214608987,b:216869126 TEST=zmake testall BRANCH=none Signed-off-by: Andrew McRae <amcrae@google.com> Cq-Depend: chromium:3423294,chromium:3423295 Change-Id: Iaaf03da88ead8bce7b2b428c265434a5a17b4ab7 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3422856 Reviewed-by: Wai-Hong Tam <waihong@google.com>
Diffstat (limited to 'zephyr/projects')
-rw-r--r--zephyr/projects/asurada/hayato/gpio.dts6
-rw-r--r--zephyr/projects/brya/brya/gpio.dts8
-rw-r--r--zephyr/projects/corsola/gpio_krabby.dts6
-rw-r--r--zephyr/projects/herobrine/gpio.dts13
-rw-r--r--zephyr/projects/nissa/nereid_overlay.dts6
-rw-r--r--zephyr/projects/nissa/nivviks_overlay.dts6
-rw-r--r--zephyr/projects/npcx_evb/npcx7/gpio.dts8
-rw-r--r--zephyr/projects/npcx_evb/npcx9/gpio.dts8
-rw-r--r--zephyr/projects/trogdor/lazor/gpio.dts10
-rw-r--r--zephyr/projects/trogdor/lazor/interrupts.dts5
-rw-r--r--zephyr/projects/trogdor/trogdor/gpio.dts10
-rw-r--r--zephyr/projects/trogdor/trogdor/interrupts.dts5
12 files changed, 52 insertions, 39 deletions
diff --git a/zephyr/projects/asurada/hayato/gpio.dts b/zephyr/projects/asurada/hayato/gpio.dts
index a39bebe4d7..865eefaec2 100644
--- a/zephyr/projects/asurada/hayato/gpio.dts
+++ b/zephyr/projects/asurada/hayato/gpio.dts
@@ -277,9 +277,9 @@
hibernate-wake-pins {
compatible = "cros-ec,hibernate-wake-pins";
- wakeup-pins = <&ac_present
- &power_button_l
- &lid_open>;
+ wakeup-irqs = <&int_ac_present
+ &int_power_button
+ &int_lid_open>;
};
power_signal_list: power-signal-list {
diff --git a/zephyr/projects/brya/brya/gpio.dts b/zephyr/projects/brya/brya/gpio.dts
index a9138cc623..31e17c518b 100644
--- a/zephyr/projects/brya/brya/gpio.dts
+++ b/zephyr/projects/brya/brya/gpio.dts
@@ -330,10 +330,10 @@
hibernate-wake-pins {
compatible = "cros-ec,hibernate-wake-pins";
- wakeup-pins = <
- &acok_od
- &gsc_ec_pwr_btn_odl
- &lid_open
+ wakeup-irqs = <
+ &int_ac_present
+ &int_power_button
+ &int_lid_open
>;
};
diff --git a/zephyr/projects/corsola/gpio_krabby.dts b/zephyr/projects/corsola/gpio_krabby.dts
index b2df9bc453..705a08d753 100644
--- a/zephyr/projects/corsola/gpio_krabby.dts
+++ b/zephyr/projects/corsola/gpio_krabby.dts
@@ -241,9 +241,9 @@
hibernate-wake-pins {
compatible = "cros-ec,hibernate-wake-pins";
- wakeup-pins = <&ac_present
- &power_button_l
- &lid_open>;
+ wakeup-irqs = <&int_ac_present
+ &int_power_button
+ &int_lid_open>;
};
unused-pins {
diff --git a/zephyr/projects/herobrine/gpio.dts b/zephyr/projects/herobrine/gpio.dts
index cc6260b651..ff3340fdb0 100644
--- a/zephyr/projects/herobrine/gpio.dts
+++ b/zephyr/projects/herobrine/gpio.dts
@@ -275,11 +275,14 @@
hibernate-wake-pins {
compatible = "cros-ec,hibernate-wake-pins";
- wakeup-pins = <
- &gpio_chg_acok_od
- &gpio_ec_pwr_btn_odl
- &gpio_lid_open_ec
- &gpio_rtc_ec_wake_odl
+ wakeup-irqs = <
+ /*
+ * TODO(b/216893756): Resolve how
+ * hibernation is done.
+ */
+ &int_ac_present
+ &int_power_button
+ &int_lid_open
>;
};
diff --git a/zephyr/projects/nissa/nereid_overlay.dts b/zephyr/projects/nissa/nereid_overlay.dts
index 058dbfdf42..f513594b38 100644
--- a/zephyr/projects/nissa/nereid_overlay.dts
+++ b/zephyr/projects/nissa/nereid_overlay.dts
@@ -14,9 +14,9 @@
hibernate-wake-pins {
compatible = "cros-ec,hibernate-wake-pins";
- wakeup-pins = <
- &gpio_gsc_ec_pwr_btn_odl
- &gpio_lid_open
+ wakeup-irqs = <
+ &int_power_button
+ &int_lid_open
>;
};
diff --git a/zephyr/projects/nissa/nivviks_overlay.dts b/zephyr/projects/nissa/nivviks_overlay.dts
index 1359025d9a..24b0f6ee03 100644
--- a/zephyr/projects/nissa/nivviks_overlay.dts
+++ b/zephyr/projects/nissa/nivviks_overlay.dts
@@ -14,9 +14,9 @@
hibernate-wake-pins {
compatible = "cros-ec,hibernate-wake-pins";
- wakeup-pins = <
- &gpio_gsc_ec_pwr_btn_odl
- &gpio_lid_open
+ wakeup-irqs = <
+ &int_power_button
+ &int_lid_open
>;
};
diff --git a/zephyr/projects/npcx_evb/npcx7/gpio.dts b/zephyr/projects/npcx_evb/npcx7/gpio.dts
index 3bfc4f386a..fd9a195673 100644
--- a/zephyr/projects/npcx_evb/npcx7/gpio.dts
+++ b/zephyr/projects/npcx_evb/npcx7/gpio.dts
@@ -60,10 +60,10 @@
hibernate-wake-pins {
compatible = "cros-ec,hibernate-wake-pins";
- wakeup-pins = <
- &gpio_ac_present
- &gpio_power_button_l
- &gpio_lid_open
+ wakeup-irqs = <
+ &int_ac_present
+ &int_power_button
+ &int_lid_open
>;
};
};
diff --git a/zephyr/projects/npcx_evb/npcx9/gpio.dts b/zephyr/projects/npcx_evb/npcx9/gpio.dts
index 3bfc4f386a..fd9a195673 100644
--- a/zephyr/projects/npcx_evb/npcx9/gpio.dts
+++ b/zephyr/projects/npcx_evb/npcx9/gpio.dts
@@ -60,10 +60,10 @@
hibernate-wake-pins {
compatible = "cros-ec,hibernate-wake-pins";
- wakeup-pins = <
- &gpio_ac_present
- &gpio_power_button_l
- &gpio_lid_open
+ wakeup-irqs = <
+ &int_ac_present
+ &int_power_button
+ &int_lid_open
>;
};
};
diff --git a/zephyr/projects/trogdor/lazor/gpio.dts b/zephyr/projects/trogdor/lazor/gpio.dts
index b38fea23a5..9e12c97267 100644
--- a/zephyr/projects/trogdor/lazor/gpio.dts
+++ b/zephyr/projects/trogdor/lazor/gpio.dts
@@ -331,11 +331,11 @@
hibernate-wake-pins {
compatible = "cros-ec,hibernate-wake-pins";
- wakeup-pins = <
- &gpio_acok_od
- &gpio_ec_pwr_btn_odl
- &gpio_lid_open_ec
- &gpio_ec_rst_odl
+ wakeup-irqs = <
+ &int_ac_present
+ &int_power_button
+ &int_lid_open
+ &int_ec_rst
>;
};
diff --git a/zephyr/projects/trogdor/lazor/interrupts.dts b/zephyr/projects/trogdor/lazor/interrupts.dts
index 8ba8f71078..823433e3bb 100644
--- a/zephyr/projects/trogdor/lazor/interrupts.dts
+++ b/zephyr/projects/trogdor/lazor/interrupts.dts
@@ -122,5 +122,10 @@
flags = <GPIO_INT_EDGE_BOTH>;
handler = "gmr_tablet_switch_isr";
};
+ int_ec_rst: ec_rst {
+ irq-pin = <&gpio_ec_rst_odl>;
+ flags = <GPIO_INT_EDGE_FALLING>;
+ handler = "wake_isr";
+ };
};
};
diff --git a/zephyr/projects/trogdor/trogdor/gpio.dts b/zephyr/projects/trogdor/trogdor/gpio.dts
index 0245ed20c2..16102943a2 100644
--- a/zephyr/projects/trogdor/trogdor/gpio.dts
+++ b/zephyr/projects/trogdor/trogdor/gpio.dts
@@ -289,11 +289,11 @@
hibernate-wake-pins {
compatible = "cros-ec,hibernate-wake-pins";
- wakeup-pins = <
- &gpio_chg_acok_od
- &gpio_ec_pwr_btn_odl
- &gpio_lid_open_ec
- &gpio_ec_rst_odl
+ wakeup-irqs = <
+ &int_ac_present
+ &int_power_button
+ &int_lid_open
+ &int_ec_rst
>;
};
diff --git a/zephyr/projects/trogdor/trogdor/interrupts.dts b/zephyr/projects/trogdor/trogdor/interrupts.dts
index d3514770a3..06f293101f 100644
--- a/zephyr/projects/trogdor/trogdor/interrupts.dts
+++ b/zephyr/projects/trogdor/trogdor/interrupts.dts
@@ -112,5 +112,10 @@
flags = <GPIO_INT_EDGE_BOTH>;
handler = "gmr_tablet_switch_isr";
};
+ int_ec_rst: ec_rst {
+ irq-pin = <&gpio_ec_rst_odl>;
+ flags = <GPIO_INT_EDGE_FALLING>;
+ handler = "wake_isr";
+ };
};
};