summaryrefslogtreecommitdiff
path: root/zephyr/include
diff options
context:
space:
mode:
authorTim Lin <tim2.lin@ite.corp-partner.google.com>2021-07-12 15:37:57 +0800
committerCommit Bot <commit-bot@chromium.org>2021-08-02 01:48:39 +0000
commit0f5662416d4bc9b0a76ac1f5b81de21bde10e28c (patch)
tree0a6564b432985882b14f1975022aa931cb43ea26 /zephyr/include
parentd842a1560cc4bb4ac4637fb4f98b827dbd0182b9 (diff)
downloadchrome-ec-0f5662416d4bc9b0a76ac1f5b81de21bde10e28c.tar.gz
zephyr: shi: it8xxx2: create phandle of pinmux control
Create the pinmux phandle to the SHI driver node in the devicetree. When the pinmux_pin_set function in cros_shi_ite_init can refer to the setting of phandle. It is more flexible to use. BUG=b:187541831 BRANCH=none TEST=host command is normal. Cq-Depend: chromium:3041210 Cq-Depend: chromium:3056118 Signed-off-by: Tim Lin <tim2.lin@ite.corp-partner.google.com> Change-Id: I0c71333563eb7da04d29b82767b6a6660d867eed Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3045026 Reviewed-by: Denis Brockus <dbrockus@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'zephyr/include')
-rw-r--r--zephyr/include/cros/ite/it8xxx2.dtsi4
1 files changed, 4 insertions, 0 deletions
diff --git a/zephyr/include/cros/ite/it8xxx2.dtsi b/zephyr/include/cros/ite/it8xxx2.dtsi
index 1a56d95e68..7da92ea1bc 100644
--- a/zephyr/include/cros/ite/it8xxx2.dtsi
+++ b/zephyr/include/cros/ite/it8xxx2.dtsi
@@ -56,6 +56,10 @@
label = "SHI";
interrupts = <171 0>;
interrupt-parent = <&intc>;
+ pinctrl-0 = <&pinctrl_shi_mosi /* GPM0 */
+ &pinctrl_shi_miso /* GPM1 */
+ &pinctrl_shi_clk /* GPM4 */
+ &pinctrl_shi_cs>; /* GPM5 */
};
fiu0: cros-flash@80000000 {