From 014b80f0ea6ef0c4df228c527c41b2fb16b41e2e Mon Sep 17 00:00:00 2001 From: Jack Rosenthal Date: Thu, 23 Sep 2021 16:31:29 -0600 Subject: 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 Change-Id: Ia4be6349edd178507bf4d6e663aa16dfef13c05f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3180266 Reviewed-by: Aaron Massey --- zephyr/dts/bindings/vendor-prefixes.txt | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 zephyr/dts/bindings/vendor-prefixes.txt 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-prefixvendor name +cros-ec The Chromium OS Embedded Controller Project -- cgit v1.2.1