kontron,sl28-vpd.yaml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. title: NVMEM layout of the Kontron SMARC-sAL28 vital product data
  7. maintainers:
  8. - Michael Walle <michael@walle.cc>
  9. description:
  10. The vital product data (VPD) of the sl28 boards contains a serial
  11. number and a base MAC address. The actual MAC addresses for the
  12. on-board ethernet devices are derived from this base MAC address by
  13. adding an offset.
  14. select: false
  15. properties:
  16. compatible:
  17. const: kontron,sl28-vpd
  18. serial-number:
  19. type: object
  20. description: The board's serial number
  21. additionalProperties: false
  22. base-mac-address:
  23. type: object
  24. description:
  25. Base MAC address for all on-module network interfaces. The first
  26. argument of the phandle will be treated as an offset.
  27. properties:
  28. "#nvmem-cell-cells":
  29. const: 1
  30. additionalProperties: false
  31. required:
  32. - compatible
  33. additionalProperties: false
  34. examples:
  35. - |
  36. otp-1 {
  37. compatible = "user-otp";
  38. nvmem-layout {
  39. compatible = "kontron,sl28-vpd";
  40. serial_number: serial-number {
  41. };
  42. base_mac_address: base-mac-address {
  43. #nvmem-cell-cells = <1>;
  44. };
  45. };
  46. };
  47. ...