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