From 19728ae6d8c57aa18bb0441161993bea16806d47 Mon Sep 17 00:00:00 2001 From: vauban353 <vauban353@gmail.com> Date: Thu, 12 Oct 2023 16:04:43 +0100 Subject: [PATCH] M.2: Add chosen dtso entry to identify gateware --- .../M2/BOARD_TESTS/device-tree-overlay/pcie.dtso | 6 ++++++ .../M2/DEFAULT/device-tree-overlay/pcie.dtso | 6 ++++++ .../components/M2/NONE/device-tree-overlay/pcie.dtso | 11 +++++++++++ 3 files changed, 23 insertions(+) create mode 100644 script_support/components/M2/NONE/device-tree-overlay/pcie.dtso diff --git a/script_support/components/M2/BOARD_TESTS/device-tree-overlay/pcie.dtso b/script_support/components/M2/BOARD_TESTS/device-tree-overlay/pcie.dtso index 2667b9d..cea9515 100644 --- a/script_support/components/M2/BOARD_TESTS/device-tree-overlay/pcie.dtso +++ b/script_support/components/M2/BOARD_TESTS/device-tree-overlay/pcie.dtso @@ -5,6 +5,12 @@ /plugin/; +&{/chosen} { + overlays { + BOARD-TESTS-M2-GATEWARE = "Mon Oct 2 18:00:17 2023"; + }; +}; + &{/} { fabric-bus@40000000 { m2_test_gpios: gpio@43000000 { diff --git a/script_support/components/M2/DEFAULT/device-tree-overlay/pcie.dtso b/script_support/components/M2/DEFAULT/device-tree-overlay/pcie.dtso index 0c8fa68..ccd2c77 100644 --- a/script_support/components/M2/DEFAULT/device-tree-overlay/pcie.dtso +++ b/script_support/components/M2/DEFAULT/device-tree-overlay/pcie.dtso @@ -4,6 +4,12 @@ /dts-v1/; /plugin/; +&{/chosen} { + overlays { + PCIE-M2-GATEWARE = "Mon Oct 2 18:00:17 2023"; + }; +}; + &pcie { status = "okay"; }; diff --git a/script_support/components/M2/NONE/device-tree-overlay/pcie.dtso b/script_support/components/M2/NONE/device-tree-overlay/pcie.dtso new file mode 100644 index 0000000..fa60ac2 --- /dev/null +++ b/script_support/components/M2/NONE/device-tree-overlay/pcie.dtso @@ -0,0 +1,11 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* Copyright (c) 2020-2021 Microchip Technology Inc */ + +/dts-v1/; +/plugin/; + +&{/chosen} { + overlays { + NO-M2-GATEWARE = "Mon Oct 2 18:00:17 2023"; + }; +}; -- GitLab