summaryrefslogtreecommitdiff
path: root/zephyr/program/corsola/ite_shi.dtsi
diff options
context:
space:
mode:
authorFabio Baltieri <fabiobaltieri@google.com>2023-01-19 11:54:19 +0000
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-01-20 02:31:02 +0000
commit12036800b8a92319e6124e9ce5b2dc4cf5bf5825 (patch)
tree5ced27f3ddf991cb10011db14a2ec87e529a1530 /zephyr/program/corsola/ite_shi.dtsi
parent5f98901e1ded8ad0e9af1125e31c795606daa314 (diff)
downloadchrome-ec-12036800b8a92319e6124e9ce5b2dc4cf5bf5825.tar.gz
zephyr: shi: default the shi node as disabled on ite
Change the shi node definition for ite platforms to be declared without pinctrl and as disabled. That allows a program to enable the node and define the pin used in the specific implementation. BRANCH=none BUG=none TEST=zmake compare-builds Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com> Change-Id: I2e01a725fbc017d88c95b8567ad43294dbdcb9cc Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4177234 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
Diffstat (limited to 'zephyr/program/corsola/ite_shi.dtsi')
-rw-r--r--zephyr/program/corsola/ite_shi.dtsi13
1 files changed, 13 insertions, 0 deletions
diff --git a/zephyr/program/corsola/ite_shi.dtsi b/zephyr/program/corsola/ite_shi.dtsi
new file mode 100644
index 0000000000..12c0c6ca5b
--- /dev/null
+++ b/zephyr/program/corsola/ite_shi.dtsi
@@ -0,0 +1,13 @@
+/* Copyright 2023 The ChromiumOS Authors
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#include <ite/it8xxx2-pinctrl-map.dtsi>
+
+&shi {
+ status = "okay";
+ pinctrl-0 = <&shi_mosi_gpm0_default &shi_miso_gpm1_default
+ &shi_clk_gpm4_default &shi_cs_gpm5_default>;
+ pinctrl-names = "default";
+};