Skip to contentSkip to conversation

arm: dts: bcm283x: Add minimal smbios information

PATCH In review matthias.bgg at kernel.org 2 participants 3 messages Apr 12, 2021 – Sep 15, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/2 arm: dts: bcm283x: Add minimal smbios information

From: Matthias Brugger <[email protected]>

At present SMBIOS tables are empty, which breaks some use-cases that rely on that. Add some minimal information to fulfill this.

---

Changes in v2:
- drop product from chassi
- fix typo in commit message

 arch/arm/dts/bcm283x-u-boot.dtsi | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
arch/arm/dts/bcm283x-u-boot.dtsi +19 -0
index 68d03627f4..22c67c4218 100644
@@ -6,6 +6,25 @@
  * (C) Copyright 2016 Fabian Vogt <[email protected]>
  */
 
+/ {
+	smbios {
+		compatible = "u-boot,sysinfo-smbios";
+		smbios {
+			system {
+				manufacturer = "raspberrypi";
+				product = "rpi";
+			};
+			baseboard {
+				manufacturer = "raspberrypi";
+				product = "rpi";
+			};
+			chassis {
+				manufacturer = "raspberrypi";
+			};
+		};
+	};
+};
+
 &uart0 {
 	skip-init;
 	u-boot,dm-pre-reloc;
Signature · 1 line
2.30.2
#1 lore raw

PATCH v2 2/2 configs: rpi: Enable SMBIOS sysinfo driver

From: Matthias Brugger <[email protected]>

Enable this driver to allow U-Boot to get SMBIOS table information from a device tree node.

---

Changes in v2:
- fix typo in commit message

 configs/rpi_0_w_defconfig      | 2 ++
 configs/rpi_2_defconfig        | 2 ++
 configs/rpi_3_32b_defconfig    | 2 ++
 configs/rpi_3_b_plus_defconfig | 2 ++
 configs/rpi_3_defconfig        | 2 ++
 configs/rpi_4_32b_defconfig    | 2 ++
 configs/rpi_4_defconfig        | 2 ++
 configs/rpi_arm64_defconfig    | 2 ++
 configs/rpi_defconfig          | 2 ++
 9 files changed, 18 insertions(+)
configs/rpi_0_w_defconfig +2 -0
index c0a9b6c788..206be1590c 100644
@@ -28,6 +28,8 @@ CONFIG_DM_ETH=y
 CONFIG_PINCTRL=y
 # CONFIG_PINCTRL_GENERIC is not set
 # CONFIG_REQUIRE_SERIAL_CONSOLE is not set
+CONFIG_SYSINFO=y
+CONFIG_SYSINFO_SMBIOS=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_DWC2=y
configs/rpi_2_defconfig +2 -0
index 33e0ef6989..d3d62f3028 100644
@@ -28,6 +28,8 @@ CONFIG_DM_ETH=y
 CONFIG_PINCTRL=y
 # CONFIG_PINCTRL_GENERIC is not set
 # CONFIG_REQUIRE_SERIAL_CONSOLE is not set
+CONFIG_SYSINFO=y
+CONFIG_SYSINFO_SMBIOS=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_DWC2=y
configs/rpi_3_32b_defconfig +2 -0
index 15c62adc69..b69bc05833 100644
@@ -30,6 +30,8 @@ CONFIG_DM_ETH=y
 CONFIG_PINCTRL=y
 # CONFIG_PINCTRL_GENERIC is not set
 # CONFIG_REQUIRE_SERIAL_CONSOLE is not set
+CONFIG_SYSINFO=y
+CONFIG_SYSINFO_SMBIOS=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_DWC2=y
configs/rpi_3_b_plus_defconfig +2 -0
index ebab0b4f86..8316a43116 100644
@@ -30,6 +30,8 @@ CONFIG_DM_ETH=y
 CONFIG_PINCTRL=y
 # CONFIG_PINCTRL_GENERIC is not set
 # CONFIG_REQUIRE_SERIAL_CONSOLE is not set
+CONFIG_SYSINFO=y
+CONFIG_SYSINFO_SMBIOS=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_DWC2=y
configs/rpi_3_defconfig +2 -0
index daeb6d1b64..bdfac3f31a 100644
@@ -30,6 +30,8 @@ CONFIG_DM_ETH=y
 CONFIG_PINCTRL=y
 # CONFIG_PINCTRL_GENERIC is not set
 # CONFIG_REQUIRE_SERIAL_CONSOLE is not set
+CONFIG_SYSINFO=y
+CONFIG_SYSINFO_SMBIOS=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_DWC2=y
configs/rpi_4_32b_defconfig +2 -0
index 0cbdd5fee1..7a10d4b0d4 100644
@@ -39,6 +39,8 @@ CONFIG_DM_RESET=y
 CONFIG_DM_RNG=y
 CONFIG_RNG_IPROC200=y
 # CONFIG_REQUIRE_SERIAL_CONSOLE is not set
+CONFIG_SYSINFO=y
+CONFIG_SYSINFO_SMBIOS=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_DM_USB_GADGET=y
configs/rpi_4_defconfig +2 -0
index 3f21f99edb..5d889df794 100644
@@ -39,6 +39,8 @@ CONFIG_DM_RESET=y
 CONFIG_DM_RNG=y
 CONFIG_RNG_IPROC200=y
 # CONFIG_REQUIRE_SERIAL_CONSOLE is not set
+CONFIG_SYSINFO=y
+CONFIG_SYSINFO_SMBIOS=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_DM_USB_GADGET=y
configs/rpi_arm64_defconfig +2 -0
index d282d509ce..af45178962 100644
@@ -36,6 +36,8 @@ CONFIG_DM_RESET=y
 CONFIG_DM_RNG=y
 CONFIG_RNG_IPROC200=y
 # CONFIG_REQUIRE_SERIAL_CONSOLE is not set
+CONFIG_SYSINFO=y
+CONFIG_SYSINFO_SMBIOS=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_XHCI_HCD=y
configs/rpi_defconfig +2 -0
index 06b390d907..af084c8505 100644
@@ -28,6 +28,8 @@ CONFIG_DM_ETH=y
 CONFIG_PINCTRL=y
 # CONFIG_PINCTRL_GENERIC is not set
 # CONFIG_REQUIRE_SERIAL_CONSOLE is not set
+CONFIG_SYSINFO=y
+CONFIG_SYSINFO_SMBIOS=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_DWC2=y
Signature · 1 line
2.30.2
#2 lore raw
In reply to matthias.bgg at kernel.org
Quoted 7 lines · On 12/04/2021 15:38, [email protected] wrote:

From: Matthias Brugger <[email protected]>

At present SMBIOS tables are empty, which breaks some use-cases that rely on that. Add some minimal information to fulfill this.

Both patches now queued in rpi-next.

Quoted 40 lines

---

Changes in v2:
- drop product from chassi
- fix typo in commit message

  arch/arm/dts/bcm283x-u-boot.dtsi | 19 +++++++++++++++++++
  1 file changed, 19 insertions(+)
arch/arm/dts/bcm283x-u-boot.dtsi +19 -0
index 68d03627f4..22c67c4218 100644
@@ -6,6 +6,25 @@
   * (C) Copyright 2016 Fabian Vogt <[email protected]>
   */
 
+/ {
+	smbios {
+		compatible = "u-boot,sysinfo-smbios";
+		smbios {
+			system {
+				manufacturer = "raspberrypi";
+				product = "rpi";
+			};
+			baseboard {
+				manufacturer = "raspberrypi";
+				product = "rpi";
+			};
+			chassis {
+				manufacturer = "raspberrypi";
+			};
+		};
+	};
+};
+
  &uart0 {
  	skip-init;
  	u-boot,dm-pre-reloc;