Simon Glass | 31d187d | 2020-11-05 06:32:10 -0700 | [diff] [blame] | 1 | SMBIOS sysinfo information |
| 2 | ========================== |
| 3 | |
| 4 | This binding allows the values for the SMBIOS tables to be specified in the |
| 5 | devicetree, as below. |
| 6 | |
| 7 | Required properties: |
| 8 | |
| 9 | - compatible: "u-boot,smbios" or any other string depending on your board |
| 10 | |
| 11 | This driver allows providing board-specific features such as power control |
| 12 | GPIOs. In addition, the SMBIOS values can be specified in the device tree, |
| 13 | as below: |
| 14 | |
| 15 | An optional 'smbios' subnode can be used to provide these properties. Within |
| 16 | that, the properties are broken down by table type, as in the System Management |
| 17 | BIOS (Basic Input/Output System) Specification. |
| 18 | |
| 19 | Available subnodes for each table type are: |
| 20 | |
| 21 | - 1 : system |
| 22 | - 2 : baseboard |
| 23 | - 3 : chassis |
| 24 | |
| 25 | Within each subnode the following tables are recognised: |
| 26 | |
| 27 | "system" subnode optional properties: |
| 28 | |
| 29 | - manufacturer: Product manufacturer for system |
| 30 | - product: Product name |
| 31 | - version: Product version string |
| 32 | - serial: Serial number for system (note that this can be overridden by |
| 33 | the serial# environment variable) |
| 34 | - sku: Product SKU (Stock-Keeping Unit) |
| 35 | - family: Product family |
| 36 | |
| 37 | "baseboard" subnode optional properties: |
| 38 | |
| 39 | - manufacturer: Product manufacturer for baseboard |
| 40 | - product: Product name |
| 41 | - asset-tag: Asset tag for the motherboard, sometimes used in organisations |
| 42 | to track devices |
| 43 | |
| 44 | "chassis" subnode optional properties: |
| 45 | |
| 46 | - manufacturer: Product manufacturer for chassis |
| 47 | |
| 48 | |
| 49 | Example: |
| 50 | |
| 51 | sysinfo { |
| 52 | compatible = "sandbox,sysinfo-sandbox"; |
| 53 | |
| 54 | smbios { |
| 55 | /* Type 1 table */ |
| 56 | system { |
| 57 | manufacturer = "Google"; |
| 58 | product = "Coral"; |
| 59 | version = "rev2"; |
| 60 | serial = "123456789"; |
| 61 | sku = "sku3"; |
| 62 | family = "Google_Coral"; |
| 63 | }; |
| 64 | |
| 65 | /* Type 2 table */ |
| 66 | baseboard { |
| 67 | manufacturer = "Google"; |
| 68 | product = "Coral"; |
| 69 | asset-tag = "ABC123"; |
| 70 | }; |
| 71 | |
| 72 | /* Type 3 table */ |
| 73 | chassis { |
| 74 | manufacturer = "Google"; |
| 75 | }; |
| 76 | }; |
| 77 | }; |