summaryrefslogtreecommitdiff
path: root/zephyr/projects/skyrim/gpio.dts
diff options
context:
space:
mode:
Diffstat (limited to 'zephyr/projects/skyrim/gpio.dts')
-rw-r--r--zephyr/projects/skyrim/gpio.dts216
1 files changed, 216 insertions, 0 deletions
diff --git a/zephyr/projects/skyrim/gpio.dts b/zephyr/projects/skyrim/gpio.dts
new file mode 100644
index 0000000000..8e55257f7f
--- /dev/null
+++ b/zephyr/projects/skyrim/gpio.dts
@@ -0,0 +1,216 @@
+/* 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.
+ */
+
+/ {
+ /* GPIOs shared by all boards */
+ named-gpios {
+ compatible = "named-gpios";
+
+ ccd_mode_odl {
+ gpios = <&gpioc 6 GPIO_ODR_HIGH>;
+ };
+ ec_gsc_packet_mode {
+ gpios = <&gpiob 1 GPIO_OUT_LOW>;
+ };
+ mech_pwr_btn_odl {
+ gpios = <&gpiod 2 GPIO_INPUT>;
+ enum-name = "GPIO_POWER_BUTTON_L";
+ };
+ slp_s3_l {
+ gpios = <&gpio6 1 GPIO_INPUT>;
+ enum-name = "GPIO_PCH_SLP_S3_L";
+ };
+ slp_s5_l {
+ gpios = <&gpio7 2 GPIO_INPUT>;
+ enum-name = "GPIO_PCH_SLP_S5_L";
+ };
+ pg_pwr_s5 {
+ gpios = <&gpioc 0 GPIO_INPUT>;
+ enum-name = "GPIO_S5_PGOOD";
+ };
+ gpio_s0_pgood: pg_pcore_s0_r_od {
+ gpios = <&gpiob 6 GPIO_INPUT>;
+ enum-name = "GPIO_S0_PGOOD";
+ };
+ acok_od {
+ gpios = <&gpio0 0 GPIO_INPUT>;
+ enum-name = "GPIO_AC_PRESENT";
+ };
+ en_pwr_s5 {
+ gpios = <&gpiob 7 GPIO_OUT_LOW>;
+ enum-name = "GPIO_EN_PWR_A";
+ };
+ en_pwr_s0_r {
+ gpios = <&gpiof 1 GPIO_OUT_LOW>;
+ enum-name = "GPIO_EN_PWR_S0_R";
+ };
+ en_pwr_pcore_s0_r {
+ gpios = <&gpioe 1 GPIO_OUT_LOW>;
+ enum-name = "GPIO_EN_PWR_PCORE_S0_R";
+ };
+ ec_sys_rst_l {
+ gpios = <&gpio7 6 GPIO_ODR_HIGH>;
+ enum-name = "GPIO_SYS_RESET_L";
+ };
+ ec_soc_rsmrst_l {
+ gpios = <&gpioc 5 GPIO_OUT_LOW>;
+ enum-name = "GPIO_PCH_RSMRST_L";
+ };
+ ec_soc_wake_l {
+ gpios = <&gpio0 3 GPIO_OUT_HIGH>;
+ enum-name = "GPIO_EC_PCH_WAKE_ODL";
+ };
+ prochot_odl {
+ gpios = <&gpiod 5 GPIO_ODR_HIGH>;
+ enum-name = "GPIO_CPU_PROCHOT";
+ };
+ soc_alert_ec_l {
+ gpios = <&gpioe 2 GPIO_INPUT>;
+ };
+ usb_c0_tcpc_int_odl {
+ gpios = <&gpioe 0 GPIO_INPUT>;
+ enum-name = "GPIO_USB_C0_TCPC_INT_ODL";
+ };
+ usb_c1_tcpc_int_odl {
+ gpios = <&gpioc 7 GPIO_INPUT>;
+ enum-name = "GPIO_USB_C1_TCPC_INT_ODL";
+ };
+ usb_c0_ppc_int_odl {
+ gpios = <&gpio7 5 GPIO_INPUT>;
+ enum-name = "GPIO_USB_C0_PPC_INT_ODL";
+ };
+ usb_c1_ppc_int_odl {
+ gpios = <&gpiod 4 GPIO_INPUT>;
+ enum-name = "GPIO_USB_C1_PPC_INT_ODL";
+ };
+ usb_c0_bc12_int_odl {
+ gpios = <&gpioa 4 GPIO_INPUT_PULL_UP>;
+ enum-name = "GPIO_USB_C0_BC12_INT_ODL";
+ };
+ usb_c1_bc12_int_odl {
+ gpios = <&gpio9 6 GPIO_INPUT_PULL_UP>;
+ enum-name = "GPIO_USB_C1_BC12_INT_ODL";
+ };
+ usb_c0_tcpc_rst_l {
+ gpios = <&gpio3 4 GPIO_OUT_HIGH>;
+ enum-name = "GPIO_USB_C0_TCPC_RST_L";
+ };
+ usb_c1_tcpc_rst_l {
+ gpios = <&gpio3 7 GPIO_OUT_HIGH>;
+ enum-name = "GPIO_USB_C1_TCPC_RST_L";
+ };
+ usb_c0_hpd {
+ gpios = <&gpiof 5 GPIO_OUT_LOW>;
+ enum-name = "GPIO_USB_C0_DP_HPD";
+ };
+ usb_c1_hpd {
+ gpios = <&gpiof 4 GPIO_OUT_LOW>;
+ enum-name = "GPIO_USB_C1_DP_HPD";
+ };
+ lid_open {
+ gpios = <&gpio0 2 GPIO_INPUT>;
+ enum-name = "GPIO_LID_OPEN";
+ };
+ ec_batt_pres_odl {
+ gpios = <&gpio9 4 GPIO_INPUT>;
+ enum-name = "GPIO_BATT_PRES_ODL";
+ };
+ ec_disable_disp_bl {
+ gpios = <&gpioa 6 GPIO_OUT_HIGH>;
+ };
+ ec_i2c_usb_a0_c0_scl {
+ gpios = <&gpiob 5 GPIO_INPUT>;
+ };
+ ec_i2c_usb_a0_c0_sda {
+ gpios = <&gpiob 4 GPIO_INPUT>;
+ };
+ ec_i2c_usb_a1_c1_scl {
+ gpios = <&gpio9 0 GPIO_INPUT>;
+ };
+ ec_i2c_usb_a1_c1_sda {
+ gpios = <&gpio8 7 GPIO_INPUT>;
+ };
+ ec_i2c_batt_scl {
+ gpios = <&gpio9 2 GPIO_INPUT>;
+ };
+ ec_i2c_batt_sda {
+ gpios = <&gpio9 1 GPIO_INPUT>;
+ };
+ ec_i2c_usbc_mux_scl {
+ gpios = <&gpiod 1 GPIO_INPUT>;
+ };
+ ec_i2c_usbc_mux_sda {
+ gpios = <&gpiod 0 GPIO_INPUT>;
+ };
+ ec_i2c_power_scl {
+ gpios = <&gpiof 3 GPIO_INPUT>;
+ };
+ ec_i2c_power_sda {
+ gpios = <&gpiof 2 GPIO_INPUT>;
+ };
+ ec_i2c_cbi_scl {
+ gpios = <&gpio3 3 GPIO_INPUT>;
+ };
+ ec_i2c_cbi_sda {
+ gpios = <&gpio3 6 GPIO_INPUT>;
+ };
+ ec_i2c_sensor_scl {
+ gpios = <&gpioe 4 GPIO_INPUT>;
+ };
+ ec_i2c_sensor_sda {
+ gpios = <&gpioe 3 GPIO_INPUT>;
+ };
+ ec_i2c_soc_sic {
+ gpios = <&gpiob 3 GPIO_INPUT>;
+ };
+ ec_i2c_soc_sid {
+ gpios = <&gpiob 2 GPIO_INPUT>;
+ };
+ en_kb_bl {
+ gpios = <&gpio9 7 GPIO_OUT_HIGH>;
+ enum-name = "GPIO_EN_KEYBOARD_BACKLIGHT";
+ };
+ ec_kso_02_inv {
+ gpios = <&gpio1 7 GPIO_OUT_LOW>;
+ enum-name = "GPIO_KBD_KSO2";
+ };
+ ec_espi_rst_l {
+ gpios = <&gpio5 4 GPIO_PULL_UP>;
+ };
+ 6axis_int_l {
+ gpios = <&gpioa 0 GPIO_INPUT_PULL_UP>;
+ };
+ tablet_mode {
+ gpios = <&gpioc 1 GPIO_INPUT>;
+ };
+ ec_gpio56 {
+ gpios = <&gpio5 6 GPIO_INPUT_PULL_UP>;
+ };
+ ec_flprg2 {
+ gpios = <&gpio8 6 GPIO_INPUT_PULL_UP>;
+ };
+ };
+
+ vsby-psl-in-list {
+ /* PSL_IN1/2/4 are used to wake */
+ psl-in-pads = <&psl_in1 &psl_in2 &psl_in4>;
+ };
+};
+
+/* PSL input pads*/
+&psl_in1 {
+ /* MECH_PWR_BTN_ODL */
+ flag = <NPCX_PSL_FALLING_EDGE>;
+};
+
+&psl_in2 {
+ /* ACOK_OD */
+ flag = <NPCX_PSL_RISING_EDGE>;
+};
+
+&psl_in4 {
+ /* LID_OPEN */
+ flag = <NPCX_PSL_RISING_EDGE>;
+};