summaryrefslogtreecommitdiff
path: root/zephyr/program/nissa/uldren/cbi.dtsi
blob: 9d865a38bb7cc807efee5289062f967b8db3006e (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
/* 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.
 */

/ {
  /* Uldren-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 = <4>;
			size = <1>;

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

		/*
		 * FW_CONFIG field to enable USB DB.
		 */
		db-usb {
			enum-name = "FW_DB_USB";
			start = <6>;
			size = <1>;

			no-db-usb {
				compatible = "cros-ec,cbi-fw-config-value";
				enum-name = "FW_DB_USB_NOT_PRESENT";
				value = <0>;
			};
			db-usb-present {
				compatible = "cros-ec,cbi-fw-config-value";
				enum-name = "FW_DB_USB_PRESENT";
				value = <1>;
				default;
			};
		};

		/*
		 * FW_CONFIG field for tablet present or not.
		 */
		 tablet {
			enum-name = "FW_TABLET";
			start = <7>;
			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>;
			};
		};
	};
};