summaryrefslogtreecommitdiff
path: root/zephyr/dts/bindings/cbi/named-cbi-ssfc.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'zephyr/dts/bindings/cbi/named-cbi-ssfc.yaml')
-rw-r--r--zephyr/dts/bindings/cbi/named-cbi-ssfc.yaml56
1 files changed, 56 insertions, 0 deletions
diff --git a/zephyr/dts/bindings/cbi/named-cbi-ssfc.yaml b/zephyr/dts/bindings/cbi/named-cbi-ssfc.yaml
new file mode 100644
index 0000000000..2db330079d
--- /dev/null
+++ b/zephyr/dts/bindings/cbi/named-cbi-ssfc.yaml
@@ -0,0 +1,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: "named-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 = "named-cbi-ssfc";
+#
+# base_sensor {
+# enum-name = "BASE_SENSOR";
+# size = <3>;
+# bmi160 {
+# compatible = "named-cbi-ssfc-value";
+# status = "okay";
+#
+# value = <1>;
+# devices = <&alt_base_accel &alt_base_gyro>;
+# };
+# kx022 {
+# compatible = "named-cbi-ssfc-value";
+# status = "okay";
+#
+# value = <3>;
+# devices = <&base_accel_kx022>;
+# };
+# };
+# }; \ No newline at end of file