diff options
author | Dawid Niedzwiecki <dn@semihalf.com> | 2022-05-30 07:46:25 +0200 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-06-28 12:04:45 +0000 |
commit | a954df1364f078f26982ff82ece06e6da1a675f2 (patch) | |
tree | 97c57eb419d38a01d0796d72d9d69f3665deee71 /zephyr/dts | |
parent | fd928db70b52b56ec94279756822a4101a39d78a (diff) | |
download | chrome-ec-a954df1364f078f26982ff82ece06e6da1a675f2.tar.gz |
zephyr: improve tcpc emulator creation
Rework the TCPC emulators architecture. A separate general TCPCI
emualtor is now not needed for a scific chip emulator.
Only one DTS node should be created per the TCPC emulator and
the TCPCI_EMUL_DEFINE macro should be used.
BUG=b:233645785
TEST=zmake testall
BRANCH=main
Signed-off-by: Dawid Niedzwiecki <dn@semihalf.com>
Change-Id: I5eba9eeb9bcff5d587f843094e530a13c140cc22
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3705480
Commit-Queue: Dawid Niedzwiecki <dawidn@google.com>
Reviewed-by: Yuval Peress <peress@google.com>
Reviewed-by: Tomasz Michalec <tmichalec@google.com>
Diffstat (limited to 'zephyr/dts')
-rw-r--r-- | zephyr/dts/bindings/emul/cros,ps8xxx-emul.yaml | 8 | ||||
-rw-r--r-- | zephyr/dts/bindings/emul/cros,tcpci-generic-emul.yaml | 9 | ||||
-rw-r--r-- | zephyr/dts/bindings/emul/tcpci.yaml (renamed from zephyr/dts/bindings/emul/cros,tcpci-emul.yaml) | 6 |
3 files changed, 12 insertions, 11 deletions
diff --git a/zephyr/dts/bindings/emul/cros,ps8xxx-emul.yaml b/zephyr/dts/bindings/emul/cros,ps8xxx-emul.yaml index e2d45ca52f..85828b6e37 100644 --- a/zephyr/dts/bindings/emul/cros,ps8xxx-emul.yaml +++ b/zephyr/dts/bindings/emul/cros,ps8xxx-emul.yaml @@ -6,15 +6,9 @@ description: Zephyr PS8xxx emulator compatible: "cros,ps8xxx-emul" -include: base.yaml +include: tcpci.yaml properties: - tcpci-i2c: - type: phandle - required: true - description: - Base TCPCI emulator. Has to be sibling of PS8xxx emulator. - p0-i2c-addr: type: int required: true diff --git a/zephyr/dts/bindings/emul/cros,tcpci-generic-emul.yaml b/zephyr/dts/bindings/emul/cros,tcpci-generic-emul.yaml new file mode 100644 index 0000000000..8e09020a98 --- /dev/null +++ b/zephyr/dts/bindings/emul/cros,tcpci-generic-emul.yaml @@ -0,0 +1,9 @@ +# Copyright 2022 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. + +description: Zephyr TCPCI Generic Emulator + +compatible: "cros,tcpci-generic-emul" + +include: tcpci.yaml diff --git a/zephyr/dts/bindings/emul/cros,tcpci-emul.yaml b/zephyr/dts/bindings/emul/tcpci.yaml index 3b218acd62..8d62989fe7 100644 --- a/zephyr/dts/bindings/emul/cros,tcpci-emul.yaml +++ b/zephyr/dts/bindings/emul/tcpci.yaml @@ -1,10 +1,8 @@ -# Copyright 2021 The Chromium OS Authors. All rights reserved. +# Copyright 2022 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. -description: Zephyr TCPCI Emulator - -compatible: "cros,tcpci-emul" +description: Common TCPCI properties include: base.yaml |