ARM: dts: meson: Use devicetree for SMBIOS settings for Khadas VIM boards
authorArtem Lapkin <email2tema@gmail.com>
Tue, 27 Jul 2021 01:23:18 +0000 (09:23 +0800)
committerNeil Armstrong <narmstrong@baylibre.com>
Tue, 27 Jul 2021 08:32:59 +0000 (10:32 +0200)
Khadas vim series: Use devicetree for SMBIOS settings
Add settings and enable the default sysinfo driver so that these can come
from the device tree.

Reviewed-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Artem Lapkin <art@khadas.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
arch/arm/dts/meson-g12b-a311d-khadas-vim3-u-boot.dtsi
arch/arm/dts/meson-gxl-s905x-khadas-vim-u-boot.dtsi
arch/arm/dts/meson-gxm-khadas-vim2-u-boot.dtsi
arch/arm/dts/meson-sm1-khadas-vim3l-u-boot.dtsi

index 489efa1..b0909cf 100644 (file)
@@ -6,3 +6,26 @@
 
 #include "meson-g12-common-u-boot.dtsi"
 #include "meson-khadas-vim3-u-boot.dtsi"
+
+/ {
+       smbios {
+               compatible = "u-boot,sysinfo-smbios";
+
+               smbios {
+                       system {
+                               manufacturer = "khadas";
+                               product = "VIM3";
+                       };
+
+                       baseboard {
+                               manufacturer = "khadas";
+                               product = "VIM3";
+                       };
+
+                       chassis {
+                               manufacturer = "khadas";
+                               product = "VIM3";
+                       };
+               };
+       };
+};
index 39270ea..6109088 100644 (file)
@@ -5,3 +5,26 @@
  */
 
 #include "meson-gxl-u-boot.dtsi"
+
+/ {
+       smbios {
+               compatible = "u-boot,sysinfo-smbios";
+
+               smbios {
+                       system {
+                               manufacturer = "khadas";
+                               product = "VIM";
+                       };
+
+                       baseboard {
+                               manufacturer = "khadas";
+                               product = "VIM";
+                       };
+
+                       chassis {
+                               manufacturer = "khadas";
+                               product = "VIM";
+                       };
+               };
+       };
+};
index c176333..e906bca 100644 (file)
        aliases {
                spi0 = &spifc;
        };
+
+       smbios {
+               compatible = "u-boot,sysinfo-smbios";
+
+               smbios {
+                       system {
+                               manufacturer = "khadas";
+                               product = "VIM2";
+                       };
+
+                       baseboard {
+                               manufacturer = "khadas";
+                               product = "VIM2";
+                       };
+
+                       chassis {
+                               manufacturer = "khadas";
+                               product = "VIM2";
+                       };
+               };
+       };
 };
 
 &sd_emmc_c {
index a591c0c..4b8ea3d 100644 (file)
@@ -6,3 +6,26 @@
 
 #include "meson-sm1-u-boot.dtsi"
 #include "meson-khadas-vim3-u-boot.dtsi"
+
+/ {
+       smbios {
+               compatible = "u-boot,sysinfo-smbios";
+
+               smbios {
+                       system {
+                               manufacturer = "khadas";
+                               product = "VIM3L";
+                       };
+
+                       baseboard {
+                               manufacturer = "khadas";
+                               product = "VIM3L";
+                       };
+
+                       chassis {
+                               manufacturer = "khadas";
+                               product = "VIM3L";
+                       };
+               };
+       };
+};