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