summaryrefslogtreecommitdiff
path: root/zephyr/dts/bindings/cbi/cros-ec,cbi-ssfc.yaml
blob: d1cc4c26e5c0b7fb92b42ff6b2f49b4abf34e79b (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
# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

description: CBI Second Source Factory Cache (SSFC)

compatible: "cros-ec,cbi-ssfc"

child-binding:
    description:
        CBI SSFC fields definition.
        The order of the children in this node define the order
        of the SSFC bit fields from least significant bit to most
        significant bit. The total size of all SSFC bit fields
        must not exceed 32 bits.
    properties:
        enum-name:
            type: string
            required: true
            description:
              Enum values used only for description purposes
            enum:
            - AUDIO_CODEC
            - BASE_SENSOR
            - LID_SENSOR
            - LIGHTBAR
            - USB_SS_MUX
        size:
            type: int
            required: true
            description: The size of the field in bits.

# Example:
#
# cbi-ssfc {
#     compatible = "cros-ec,cbi-ssfc";
#
#     base_sensor {
#         enum-name = "BASE_SENSOR";
#         size = <3>;
#         bmi160 {
#             compatible = "cros-ec,cbi-ssfc-value";
#             status = "okay";
#
#             value = <1>;
#             devices = <&alt_base_accel &alt_base_gyro>;
#         };
#         kx022 {
#             compatible = "cros-ec,cbi-ssfc-value";
#             status = "okay";
#
#             value = <3>;
#             devices = <&base_accel_kx022>;
#         };
#     };
# };