From patchwork Sun Sep 27 14:52:47 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1372082 X-Patchwork-Delegate: bmeng.cn@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=I+0lAVL4; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4BzpZ03VHWz9sSJ for ; Mon, 28 Sep 2020 00:53:44 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1BDF3823AE; Sun, 27 Sep 2020 16:53:07 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="I+0lAVL4"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7BBA482378; Sun, 27 Sep 2020 16:53:01 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-oo1-xc42.google.com (mail-oo1-xc42.google.com [IPv6:2607:f8b0:4864:20::c42]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 6E22182384 for ; Sun, 27 Sep 2020 16:52:58 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-oo1-xc42.google.com with SMTP id r10so1974945oor.5 for ; Sun, 27 Sep 2020 07:52:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=BunqwSBNJiCpnHexd2+sgKN3dLOwr++Mzp4kisTFDfM=; b=I+0lAVL4tBiGxtI10Wx8DB7zcBvBi5fGmE0cRVjANEnVMObpGvYpRRb5kRbGxk8R4s 8CfSf+vpkrQ0Qkpb3W2k+5kAXMLpvwQ1MnU4BWNB5TLXj6SSL9lS5UQYBz5ZDPrQR4aD LePxEWeng4/dSH6BBwagTAL5T1Okicz1UbvEU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=BunqwSBNJiCpnHexd2+sgKN3dLOwr++Mzp4kisTFDfM=; b=jdX70w1Aa7FDkkeXxLl3Xga+/IHWf71uPEZ32nJZqjXwX3v6W3aZjrYWAN+4rikgTt 3VHwaIGNkfN66KTZvTOcI5AEvCiDRPfmHM6B9cXFqNeoWoCz0TE8/Xki7xBCwwwZImaM 4p+9CFUqe76VnbG6qFw9eoqDLM0mjAd9c7jn74r83b44soGEiaTWr/co6eRWvc1XCAcT muk+zPna64PcABhBo2EToWVpdSpURGhkFnQOhkLEh3AT5iAV+CQefX0Ta/qT0DdpqIFg PsvwVsJsiaZpjU+ZuSkpkzhCHExWLByUfgtWUCLpbsRaXKU5XyUhv0tVLO2IfLxlYpgZ 9Amg== X-Gm-Message-State: AOAM530tYIptCRhmHXIBPERDLMJILnM6GvaqZMixHpsNxdhEzaoszhnm Bf1LK8C98xENii0uieFY6PcAzB2/g4PlkAIb X-Google-Smtp-Source: ABdhPJxsRb+n+6/V38gOWqLHyI0usBdeHnLuqgf/82YC+2vn0LLXwhhEkaHM2BQl1I7zLm5x4i7I0Q== X-Received: by 2002:a4a:4845:: with SMTP id p66mr6778431ooa.68.1601218377136; Sun, 27 Sep 2020 07:52:57 -0700 (PDT) Received: from localhost.localdomain (c-73-14-175-90.hsd1.co.comcast.net. [73.14.175.90]) by smtp.gmail.com with ESMTPSA id l136sm2024966oig.7.2020.09.27.07.52.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Sep 2020 07:52:56 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Andy Shevchenko , Heinrich Schuchardt , Bernhard Messerklinger , Wolfgang Wallner , Walter Lozano , Simon Glass , Bin Meng Subject: [PATCH 4/4] smbios: Add documentation and devicetree binding Date: Sun, 27 Sep 2020 08:52:47 -0600 Message-Id: <20200927145247.1544339-4-sjg@chromium.org> X-Mailer: git-send-email 2.28.0.681.g6f77f65b4e-goog In-Reply-To: <20200927145247.1544339-1-sjg@chromium.org> References: <20200927145247.1544339-1-sjg@chromium.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean Add information about how to set SMBIOS properties using the devicetree. Signed-off-by: Simon Glass --- doc/arch/x86.rst | 8 +++++ doc/device-tree-bindings/board/board_x86.txt | 36 ++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 doc/device-tree-bindings/board/board_x86.txt diff --git a/doc/arch/x86.rst b/doc/arch/x86.rst index c6b70ce61a3..45f9ba308c7 100644 --- a/doc/arch/x86.rst +++ b/doc/arch/x86.rst @@ -740,6 +740,14 @@ Note that this is a development feature only. It is not intended for use in production environments. Also it is not currently part of the automated tests so may break in the future. +SMBIOS tables +------------- + +To generate SMBIOS tables in U-Boot, for use by the OS, enable the +CONFIG_GENERATE_SMBIOS_TABLE option. The easiest way to provide the values to +use is via the device tree. For details see +device-tree-bindings/board/board_x86.txt + TODO List --------- - Audio diff --git a/doc/device-tree-bindings/board/board_x86.txt b/doc/device-tree-bindings/board/board_x86.txt new file mode 100644 index 00000000000..3766751896a --- /dev/null +++ b/doc/device-tree-bindings/board/board_x86.txt @@ -0,0 +1,36 @@ +x86 board driver +================ + +This driver allows providing board-specific features such as power control +GPIOs. In addition, the SMBIOS values can be specified in the device tree, +as below: + +An optional 'smbios' subnode can be used to provide these properties. + +Optional properties: + - manufacturer: Product manufacturer for system / baseboard + - product: Product name + - version: Product version string + - serial: Serial number for system (note that this can be overridden by + the serial# environment variable) + - sku: Product SKU (Stock-Keeping Unit) + - family: Product family + - asset-tag: Asset tag for the motherboard, sometimes used in organisations + to track devices + + +Example: + + board { + compatible = "google,coral"; + + smbios { + manufacturer = "Google"; + product = "Coral"; + version = "rev2"; + serial = "123456789"; + sku = "sku3"; + family = "Google_Coral"; + asset-tag = "ABC123"; + }; + };