summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2021-09-23 16:31:29 -0600
committerCommit Bot <commit-bot@chromium.org>2021-09-24 15:12:42 +0000
commit014b80f0ea6ef0c4df228c527c41b2fb16b41e2e (patch)
tree80d08dd75776ecc49ebc1d0a7cf2e1189ece8fc8
parent302db0bc69efac399632462083b2fe34a46da7be (diff)
downloadchrome-ec-014b80f0ea6ef0c4df228c527c41b2fb16b41e2e.tar.gz
zephyr: dts: Add vendor-prefixes.txt file
Starting with Zephyr v2.7, device-tree compatible string vendor prefixes are checked, and warnings are generated if a vendor prefix is unknown. Zephyr's CMake build system can recognize custom vendor prefix extensions at any ${DTS_ROOT} under the path "dts/bindings/vendor-prefixes.txt". We use the "cros-ec" vendor prefix widely in the Chromium EC, so add this as a known prefix. BUG=b:198824039 BRANCH=none TEST=warnings clear up in v2.7 Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Change-Id: Ia4be6349edd178507bf4d6e663aa16dfef13c05f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3180266 Reviewed-by: Aaron Massey <aaronmassey@google.com>
-rw-r--r--zephyr/dts/bindings/vendor-prefixes.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/zephyr/dts/bindings/vendor-prefixes.txt b/zephyr/dts/bindings/vendor-prefixes.txt
new file mode 100644
index 0000000000..856fa81426
--- /dev/null
+++ b/zephyr/dts/bindings/vendor-prefixes.txt
@@ -0,0 +1,8 @@
+# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+# Valid device-tree compatible string prefixes used in this
+# Zephyr module. The format is:
+# vendor-prefix<TAB>vendor name
+cros-ec The Chromium OS Embedded Controller Project