summaryrefslogtreecommitdiff
path: root/zephyr/program/nissa/joxer/cbi.dtsi
blob: 71424ed681a4174a57e212a1e42ee6752ea80ce2 (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
/* 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.
 */

/ {
	nissa-fw-config {
		compatible = "cros-ec,cbi-fw-config";

		/*
		 * FW_CONFIG field to indicate which keyboard layout
		 * should be used.
		 */
		keyboard {
			enum-name = "FW_KB_LAYOUT";
			start = <3>;
			size = <2>;

			layout-1 {
				compatible = "cros-ec,cbi-fw-config-value";
				enum-name = "FW_KB_LAYOUT_DEFAULT";
				value = <0>;
				default;
			};
			layout-2 {
				compatible = "cros-ec,cbi-fw-config-value";
				enum-name = "FW_KB_LAYOUT_US2";
				value = <1>;
			};
		};

		/*
		 * FW_CONFIG field to describe lid accelerometer orientation.
		 */
		lid-inversion {
			enum-name = "FW_LID_INVERSION";
			start = <5>;
			size = <1>;

			default {
				compatible = "cros-ec,cbi-fw-config-value";
				enum-name = "SENSOR_DEFAULT";
				value = <0>;
				default;
			};
			inverted {
				compatible = "cros-ec,cbi-fw-config-value";
				enum-name = "SENSOR_INVERTED";
				value = <1>;
			};
		};
	};
};