File Index
Files and directories
Sign in
FILE

kontron,sl28-vpd.yaml

File preview with syntax highlighting.

linux-6.19.14/Documentation/devicetree/bindings/nvmem/layouts/kontron,sl28-vpd.yaml YAML
 1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
 2%YAML 1.2
 3---
 4$id: http://devicetree.org/schemas/nvmem/layouts/kontron,sl28-vpd.yaml#
 5$schema: http://devicetree.org/meta-schemas/core.yaml#
 6
 7title: NVMEM layout of the Kontron SMARC-sAL28 vital product data
 8
 9maintainers:
10  - Michael Walle <michael@walle.cc>
11
12description:
13  The vital product data (VPD) of the sl28 boards contains a serial
14  number and a base MAC address. The actual MAC addresses for the
15  on-board ethernet devices are derived from this base MAC address by
16  adding an offset.
17
18select: false
19
20properties:
21  compatible:
22    oneOf:
23      - items:
24          - enum:
25              - kontron,sa67-vpd
26          - const: kontron,sl28-vpd
27      - const: kontron,sl28-vpd
28
29  serial-number:
30    type: object
31    description: The board's serial number
32
33    additionalProperties: false
34
35  base-mac-address:
36    type: object
37    description:
38      Base MAC address for all on-module network interfaces. The first
39      argument of the phandle will be treated as an offset.
40
41    properties:
42      "#nvmem-cell-cells":
43        const: 1
44
45    additionalProperties: false
46
47required:
48  - compatible
49
50additionalProperties: false
51
52examples:
53  - |
54      otp-1 {
55          compatible = "user-otp";
56
57          nvmem-layout {
58              compatible = "kontron,sl28-vpd";
59
60              serial_number: serial-number {
61              };
62
63              base_mac_address: base-mac-address {
64                  #nvmem-cell-cells = <1>;
65              };
66          };
67      };
68
69...
~/ Read-only file preview.