blob: cbf687b7433759069e8e1d2a07e5077b70ff792f (
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
112
113
114
115
116
117
118
119
120
121
122
123
124
|
/* 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 <board-overlays/native_posix.dts>
#include <dt-bindings/gpio_defines.h>
/ {
/* GPIOs shared by all boards */
named-gpios {
compatible = "named-gpios";
gpio_pg_pwr_s5: pg_pwr_s5 {
gpios = <&gpio0 0 GPIO_INPUT>;
enum-name = "GPIO_S5_PGOOD";
};
gpio_usb_c0_tcpc_fastsw_ctl_en: usb_c0_tcpc_fastsw_ctl_en {
gpios = <&gpio0 1 GPIO_OUTPUT_LOW>;
enum-name = "IOEX_USB_C0_TCPC_FASTSW_CTL_EN";
};
gpio_usb_c1_tcpc_fastsw_ctl_en: usb_c1_tcpc_fastsw_ctl_en {
gpios = <&gpio0 2 GPIO_OUTPUT_LOW>;
enum-name = "IOEX_USB_C1_TCPC_FASTSW_CTL_EN";
};
gpio_usb_c0_ppc_int_odl: usb_c0_ppc_int_odl {
gpios = <&gpio0 3 GPIO_INPUT>;
enum-name = "GPIO_USB_C0_PPC_INT_ODL";
};
gpio_usb_c1_ppc_int_odl: usb_c1_ppc_int_odl {
gpios = <&gpio0 4 GPIO_INPUT>;
enum-name = "GPIO_USB_C1_PPC_INT_ODL";
};
ioex_usb_c0_ilim_3a_en: usb_c0_ppc_ilim_3a_en {
gpios = <&gpio0 5 GPIO_OUTPUT_LOW>;
enum-name = "IOEX_USB_C0_PPC_ILIM_3A_EN";
};
gpio_usb_c1_in_hpd: usb_c1_in_hpd {
gpios = <&gpio0 6 GPIO_OUTPUT_LOW>;
enum-name = "IOEX_USB_C1_HPD_IN_DB";
};
ioex_usb_c1_sbu_flip: usb_c1_sbu_flip {
gpios = <&gpio0 7 GPIO_OUTPUT_LOW>;
enum-name = "IOEX_USB_C1_SBU_FLIP";
};
ioex_usb_c0_sbu_flip: usb_c0_sbu_flip {
gpios = <&gpio0 8 GPIO_OUTPUT_LOW>;
enum-name = "IOEX_USB_C0_SBU_FLIP";
};
};
skyrim-fw-config {
compatible = "cros-ec,cbi-fw-config";
io-db {
enum-name = "FW_IO_DB";
start = <6>;
size = <2>;
io-db-ps8811-ps8818 {
compatible = "cros-ec,cbi-fw-config-value";
enum-name = "FW_IO_DB_PS8811_PS8818";
value = <0>;
};
io-db-none-anx7483 {
compatible = "cros-ec,cbi-fw-config-value";
enum-name = "FW_IO_DB_NONE_ANX7483";
value = <1>;
default;
};
};
fan {
enum-name = "FW_FAN";
start = <10>;
size = <1>;
no-fan {
compatible = "cros-ec,cbi-fw-config-value";
enum-name = "FW_FAN_NOT_PRESENT";
value = <0>;
};
fan-present {
compatible = "cros-ec,cbi-fw-config-value";
enum-name = "FW_FAN_PRESENT";
value = <1>;
/*
* Set as default so that unprovisioned
* configs will run the fan regardless.
*/
default;
};
};
charger-option {
enum-name = "FW_CHARGER";
start = <11>;
size = <2>;
charger-option-isl9241 {
compatible = "cros-ec,cbi-fw-config-value";
enum-name = "FW_CHARGER_ISL9241";
value = <0>;
default;
};
charger-option-isl9538 {
compatible = "cros-ec,cbi-fw-config-value";
enum-name = "FW_CHARGER_ISL9538";
value = <1>;
};
};
};
};
&gpio0 {
ngpios = <23>;
};
|