From patchwork Wed Sep 3 13:36:21 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 208 Return-Path: X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1756906673; bh=1GDvDwZmur5kvWueooMGLf4seNmjwFuP+Hia6CpnMJs=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=bdikKbYkM5jdacCir4mQSSTfoJjKtqYP65ffOUNzV3u4hMH0skTasNrFjQtahkoMU lMH5eD9HJpoChUj9+falw7b+RjsM9dbw+yt5P0gmqlrrLi0X3sezqw3TXUX89DK3in YZQsH7kskY9XB/t9Kn2Th/4PfCiSbboJYs46sQyn0wCooJq9RTzPj9MXtx3ykbsK+Z 5oafiVVV4183hKO6mjO2NZNW0KT0KNvTyi0SF3WfKav8S9Fbif0MBPtWer+mASwY5b 7qzIFIRhNrIWhrgUqgC5GYP/+UUy6RuyzRiWN5yiRmWuw/w3V7sPTNPpJF6FgcDfQw IZnwQi8Ff2Geg== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id B059A67931 for ; Wed, 3 Sep 2025 07:37:53 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id LQQQ8vnppUfP for ; Wed, 3 Sep 2025 07:37:53 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1756906673; bh=1GDvDwZmur5kvWueooMGLf4seNmjwFuP+Hia6CpnMJs=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=bdikKbYkM5jdacCir4mQSSTfoJjKtqYP65ffOUNzV3u4hMH0skTasNrFjQtahkoMU lMH5eD9HJpoChUj9+falw7b+RjsM9dbw+yt5P0gmqlrrLi0X3sezqw3TXUX89DK3in YZQsH7kskY9XB/t9Kn2Th/4PfCiSbboJYs46sQyn0wCooJq9RTzPj9MXtx3ykbsK+Z 5oafiVVV4183hKO6mjO2NZNW0KT0KNvTyi0SF3WfKav8S9Fbif0MBPtWer+mASwY5b 7qzIFIRhNrIWhrgUqgC5GYP/+UUy6RuyzRiWN5yiRmWuw/w3V7sPTNPpJF6FgcDfQw IZnwQi8Ff2Geg== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 9DA866792D for ; Wed, 3 Sep 2025 07:37:53 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1756906671; bh=jEEoQv4u0+MkWwzhnbU+c3h/tFP4Fy8tQWQzpihL3Ds=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bsLPkJ4ktqGri9VINIbYash9aKi3eqPnz+q58SWqUFJN0akOKfh8OnmSk3H7cdbO8 87DDG52meYyJCrP8fAsZ87YhXzcnTxARK5jkDCoOmK6R7Wwg2Cl6J8OF00OEvLRYhg caoES1vwiwinlS+uuYn0bXJqh9wVyoa28vDAgnheXNcK7CkilhOs084Lp+U3CKnaIH 2cptpmYmS9TTfUK2vOGLOygmb6npUbv9j+xO3MCVbA8703EGIay6hy+Fboc3QT47sm hDo3T++KlOdbuqWp/6KEhe/vqQT70O5yh0x9bmcIC7+fOqHF8gtaKe/7h+PDBt2Pqu 9DX1hMtDQrTlg== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 7778B678B2; Wed, 3 Sep 2025 07:37:51 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id Qhilfa6hzGMJ; Wed, 3 Sep 2025 07:37:51 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1756906671; bh=zDdPM1BduYaFMOoRKCwZ4G20Q0iQ/ENdlVt/vfZ6oqg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=F0rrjPto69yttKJpkMFHT4z+9jZ+slSQdtL6+Rzo9G2bYfqet0HNozqzRvqNJK8Nl EazbFOAohizr/M2MvicM5M6472nhEAz4GoxAV0cgR2c2r3T/4ewKw7OZMTZc1ANafG v9GrHkD1Ncj56jkPHszOD4WOsLHCFqvzQlddp95P/iJWdSiX7daf5+gG3onsLDtrJZ 96vw/lSUFxWikgzTKabkcg/1oHVtdLQEWIE09rVDo9fShzdrYUfwXKpn62AvhU3cWX y7bj/HuAcGHSu+fFFAboHiBKAlgcp2XO0w9hWaLtmFS2ySA75F1OvPqfIW/vXR3K7Y +zdkPHWE+ekNw== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id F065C67819; Wed, 3 Sep 2025 07:37:50 -0600 (MDT) From: Simon Glass To: U-Boot Concept Date: Wed, 3 Sep 2025 07:36:21 -0600 Message-ID: <20250903133639.3235920-22-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250903133639.3235920-1-sjg@u-boot.org> References: <20250903133639.3235920-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: 7PXCV6CYAZ77GWBGSM76UONJBPZ7FZ5T X-Message-ID-Hash: 7PXCV6CYAZ77GWBGSM76UONJBPZ7FZ5T X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Simon Glass X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 21/25] sandbox: Provide hwid files for testing List-Id: Discussion and patches related to U-Boot Concept Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Simon Glass Provide a few test devices for use with sandbox. Signed-off-by: Simon Glass --- board/sandbox/hwids/compatible.hwidmap | 12 ++++++++++++ board/sandbox/hwids/test-device-1.txt | 21 +++++++++++++++++++++ board/sandbox/hwids/test-device-2.txt | 19 +++++++++++++++++++ 3 files changed, 52 insertions(+) create mode 100644 board/sandbox/hwids/compatible.hwidmap create mode 100644 board/sandbox/hwids/test-device-1.txt create mode 100644 board/sandbox/hwids/test-device-2.txt diff --git a/board/sandbox/hwids/compatible.hwidmap b/board/sandbox/hwids/compatible.hwidmap new file mode 100644 index 00000000000..10dd29aed43 --- /dev/null +++ b/board/sandbox/hwids/compatible.hwidmap @@ -0,0 +1,12 @@ +# SPDX-License-Identifier: GPL-2.0+ + +# compatible map for sandbox testing + +# Maps filenames in this directory to compatible strings used by Linux +# for devicetrees. + +# Format: +# filename (without .json suffix): compatible_string + +test-device-1: sandbox,test-device-1 +test-device-2: sandbox,test-device-2 \ No newline at end of file diff --git a/board/sandbox/hwids/test-device-1.txt b/board/sandbox/hwids/test-device-1.txt new file mode 100644 index 00000000000..ed7334c6f21 --- /dev/null +++ b/board/sandbox/hwids/test-device-1.txt @@ -0,0 +1,21 @@ +Computer Information +-------------------- +BiosVendor: U-Boot +BiosVersion: 2025.09 +BiosMajorRelease: 25 +BiosMinorRelease: 9 +FirmwareMajorRelease: ff +FirmwareMinorRelease: ff +Manufacturer: Sandbox Corp +Family: Sandbox_Family +ProductName: Sandbox Computer +ProductSku: SANDBOX-SKU +EnclosureKind: 2 +BaseboardManufacturer: Sandbox Boards +BaseboardProduct: Sandbox Motherboard +Hardware IDs +------------ +{753cbd77-c567-521e-8931-e615613198f1} <- Manufacturer + Family + ProductName + ProductSku + BiosVendor + BiosVersion + BiosMajorRelease + BiosMinorRelease +{479402d0-272b-5214-9300-e59e3b4d606e} <- Manufacturer + Family + ProductName + BiosVendor + BiosVersion + BiosMajorRelease + BiosMinorRelease +{3148892e-ac5e-5277-9abf-366a685445c2} <- Manufacturer + ProductName + BiosVendor + BiosVersion + BiosMajorRelease + BiosMinorRelease +{48aede6f-65db-51a5-8905-fdabdbc0685e} <- Manufacturer + Family + ProductName diff --git a/board/sandbox/hwids/test-device-2.txt b/board/sandbox/hwids/test-device-2.txt new file mode 100644 index 00000000000..8743ec9d285 --- /dev/null +++ b/board/sandbox/hwids/test-device-2.txt @@ -0,0 +1,19 @@ +Computer Information +-------------------- +BiosVendor: Another Corp +BiosVersion: V2.1 +BiosMajorRelease: 2 +BiosMinorRelease: 1 +FirmwareMajorRelease: 02 +FirmwareMinorRelease: 01 +Manufacturer: Another Corp +Family: Another Family +ProductName: Test Device 2 +ProductSku: TEST-SKU-002 +EnclosureKind: b +BaseboardManufacturer: Another +BaseboardProduct: TestBoard2 +Hardware IDs +------------ +{87654321-8765-4321-1234-987654321098} <- Manufacturer + Family + ProductName + ProductSku + BiosVendor + BiosVersion + BiosMajorRelease + BiosMinorRelease +{98765432-9876-5432-2345-098765432109} <- Manufacturer + Family + ProductName + BiosVendor + BiosVersion + BiosMajorRelease + BiosMinorRelease \ No newline at end of file