summaryrefslogtreecommitdiff
path: root/zephyr/projects/skyrim/guybrush.dts
blob: 9fbc31c2bc47eafdf3df543517662f6d41c9227a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
/* 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.
 */

/ {
	named-gpios {
		/* Guybrush-specific GPIO customizations */
		ec_wp_l {
			gpios = <&gpio5 0 GPIO_INPUT>;
			enum-name = "GPIO_WP_L";
		};
		ec_pwr_btn_odl {
			gpios = <&gpio0 1 GPIO_INPUT>;
			enum-name = "GPIO_EC_PWR_BTN_ODL";
		};
		slp_s3_s0i3_l {
			gpios = <&gpio7 4 GPIO_INPUT>;
			enum-name = "GPIO_PCH_SLP_S0_L";
		};
		ec_pcore_int_odl {
			gpios = <&gpiof 0 GPIO_INPUT_PULL_UP>;
			enum-name = "GPIO_EC_PCORE_INT_ODL";
		};
		pg_groupc_s0_od {
			gpios = <&gpioa 3 GPIO_INPUT>;
			enum-name = "GPIO_PG_GROUPC_S0_OD";
		};
		pg_lpddr4x_s3_od {
			gpios = <&gpio9 5 GPIO_INPUT>;
			enum-name = "GPIO_PG_LPDDR4X_S3_OD";
		};
		ec_soc_pwr_good {
			gpios = <&gpiod 3 GPIO_OUT_LOW>;
			enum-name = "GPIO_PCH_SYS_PWROK";
		};
		ec_entering_rw {
			gpios = <&gpio6 6 GPIO_OUT_LOW>;
			enum-name = "GPIO_ENTERING_RW";
		};
		ec_clr_cmos {
			gpios = <&gpioa 1 GPIO_OUT_LOW>;
		};
		ec_mem_event {
			gpios = <&gpioa 5 GPIO_OUT_LOW>;
		};
		ec_soc_pwr_btn_l {
			gpios = <&gpio6 3 GPIO_OUT_HIGH>;
			enum-name = "GPIO_PCH_PWRBTN_L";
		};
		ec_soc_int_l {
			gpios = <&gpio8 3 GPIO_OUT_HIGH>;
		};
		soc_thermtrip_odl {
			gpios = <&gpioe 5 GPIO_INPUT>;
		};
		usb_c0_c1_fault_odl {
			gpios = <&gpio7 3 GPIO_ODR_HIGH>;
			enum-name = "GPIO_USB_C0_C1_FAULT_ODL";
		};
		3axis_int_l {
			gpios = <&gpioa 2 GPIO_INPUT_PULL_DOWN>;
		};
		voldn_btn_odl {
			gpios = <&gpioa 7 GPIO_INPUT_PULL_UP>;
			enum-name = "GPIO_VOLUME_DOWN_L";
		};
		volup_btn_odl {
			gpios = <&gpio9 3 GPIO_INPUT_PULL_UP>;
			enum-name = "GPIO_VOLUME_UP_L";
		};
		ec_ps2_clk {
			gpios = <&gpio6 7 GPIO_INPUT_PULL_UP>;
		};
		ec_ps2_dat {
			gpios = <&gpio7 0 GPIO_INPUT_PULL_UP>;
		};
		ec_ps2_rst {
			gpios = <&gpio6 2 GPIO_INPUT_PULL_UP>;
		};
		ec_gpiob0 {
			gpios = <&gpiob 0 GPIO_INPUT_PULL_UP>;
		};
		ec_gpio81 {
			gpios = <&gpio8 1 GPIO_INPUT_PULL_UP>;
		};
		ec_psl_gpo {
			gpios = <&gpiod 7 GPIO_INPUT_PULL_UP>;
		};
		ec_pwm7 {
			gpios = <&gpio6 0 GPIO_INPUT_PULL_UP>;
		};
	};

	def-lvol-io-list {
		compatible = "nuvoton,npcx-lvolctrl-def";

		/* Low voltage on I2C6_1 */
		lvol-io-pads = <&lvol_ioe4 &lvol_ioe3>;
	};

	named-adc-channels {
		compatible = "named-adc-channels";

		adc_temp_soc: temp-soc {
			label = "SOC";
			enum-name = "ADC_TEMP_SENSOR_SOC";
			channel = <0>;
		};
	};
};