summaryrefslogtreecommitdiff
path: root/zephyr/projects/nissa/pujjo/cbi.dts
blob: b5ba92bd9e2f604042693fb74a545e1cf4dfdd30 (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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
/* Copyright 2022 The ChromiumOS Authors
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

/ {
	/* Pujjo-specific fw_config fields. */
	nissa-fw-config {
		/*
		 * FW_CONFIG field to enable KB back light or not.
		 */
		kb-bl {
			enum-name = "FW_KB_BL";
			start = <3>;
			size = <1>;

			no-kb-bl {
				compatible = "cros-ec,cbi-fw-config-value";
				enum-name = "FW_KB_BL_NOT_PRESENT";
				value = <0>;
			};
			kb-bl-present {
				compatible = "cros-ec,cbi-fw-config-value";
				enum-name = "FW_KB_BL_PRESENT";
				value = <1>;
			};
		};

		/*
		 * FW_CONFIG field for KB PWB present or not.
		 */
		kb-pwb {
			enum-name = "FW_KB_PWB";
			start = <4>;
			size = <1>;

			no-kb-pwb {
				compatible = "cros-ec,cbi-fw-config-value";
				enum-name = "FW_KB_PWB_NOT_PRESENT";
				value = <0>;
			};
			kb-pwb-present {
				compatible = "cros-ec,cbi-fw-config-value";
				enum-name = "FW_KB_PWB_PRESENT";
				value = <1>;
			};
		};

		/*
		 * FW_CONFIG field for tablet present or not.
		 */
		tablet {
			enum-name = "FW_TABLET";
			start = <5>;
			size = <1>;

			no-tablet {
				compatible = "cros-ec,cbi-fw-config-value";
				enum-name = "FW_TABLET_NOT_PRESENT";
				value = <0>;
			};
			tablet-present {
				compatible = "cros-ec,cbi-fw-config-value";
				enum-name = "FW_TABLET_PRESENT";
				value = <1>;
			};
		};

		/*
		 * FW_CONFIG field for LTE board present or not.
		 *
		 *	start = <6>;
		 *	size = <1>;
		 */

		/*
		 * FW_CONFIG field for SD card present or not.
		 *
		 *	start = <7>;
		 *	size = <1>;
		 */

		/*
		 * FW_CONFIG field for pen present or not.
		 */
		pen {
			enum-name = "FW_PEN";
			start = <8>;
			size = <1>;

			no-pen {
				compatible = "cros-ec,cbi-fw-config-value";
				enum-name = "FW_PEN_NOT_PRESENT";
				value = <0>;
			};
			pen-present {
				compatible = "cros-ec,cbi-fw-config-value";
				enum-name = "FW_PEN_PRESENT";
				value = <1>;
			};
		};

		/*
		 * FW_CONFIG field for WF camera present or not.
		 *
		 *	start = <9>;
		 *	size = <1>;
		 */

		/*
		 * FW_CONFIG field for multiple thermal table.
		 */
		therm-table {
			enum-name = "THERM_TABLE";
			start = <10>;
			size = <2>;

			therm-table-1 {
				compatible = "cros-ec,cbi-fw-config-value";
				enum-name = "THERM_TABLE_1";
				value = <1>;
			};
		};

		/*
		 * FW_CONFIG field for multiple audio module.
		 *
		 *	start = <12>;
		 *	size = <3>;
		 */

		/*
		 * FW_CONFIG field for EXT_VR.
		 *
		 *	start = <15>;
		 *	size = <1>;
		 */

		/*
		 * FW_CONFIG field for multiple wi-fi SAR.
		 *
		 *	start = <16>;
		 *	size = <2>;
		 */
	};

	/* Pujjo-specific ssfc fields. */
	cbi-ssfc {
		compatible = "named-cbi-ssfc";
		/*
		 * SSFC field to identify BASE motion sensor.
		 */
		base-sensor {
			enum-name = "BASE_SENSOR";
			size = <2>;

			base_sensor_0: bmi323 {
				compatible = "named-cbi-ssfc-value";
				status = "okay";
				value = <0>;
				default;
			};
			base_sensor_1: lsm6dsm {
				compatible = "named-cbi-ssfc-value";
				status = "okay";
				value = <1>;
			};
		};

		/*
		 * SSFC field to identify LID motion sensor.
		 */
		lid-sensor {
			enum-name = "LID_SENSOR";
			size = <2>;

			lid_sensor_0: bma422 {
				compatible = "named-cbi-ssfc-value";
				status = "okay";
				value = <0>;
				default;
			};
			lid_sensor_1: lis2dw12 {
				compatible = "named-cbi-ssfc-value";
				status = "okay";
				value = <1>;
			};
		};
	};
};