~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/nvmem/layouts/onie,tlv-layout.yaml

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
  2 %YAML 1.2
  3 ---
  4 $id: http://devicetree.org/schemas/nvmem/layouts/onie,tlv-layout.yaml#
  5 $schema: http://devicetree.org/meta-schemas/core.yaml#
  6 
  7 title: NVMEM layout of the ONIE tlv table
  8 
  9 maintainers:
 10   - Miquel Raynal <miquel.raynal@bootlin.com>
 11 
 12 description:
 13   Modern networking hardware implementing the Open Compute Project ONIE
 14   infrastructure shall provide a non-volatile memory with a table whose the
 15   content is well specified and gives many information about the manufacturer
 16   (name, country of manufacture, etc) as well as device caracteristics (serial
 17   number, hardware version, mac addresses, etc). The underlying device type
 18   (flash, EEPROM,...) is not specified. The exact location of each value is also
 19   dynamic and should be discovered at run time because it depends on the
 20   parameters the manufacturer decided to embed.
 21 
 22 select: false
 23 
 24 properties:
 25   compatible:
 26     const: onie,tlv-layout
 27 
 28   product-name:
 29     type: object
 30     additionalProperties: false
 31 
 32   part-number:
 33     type: object
 34     additionalProperties: false
 35 
 36   serial-number:
 37     type: object
 38     additionalProperties: false
 39 
 40   mac-address:
 41     type: object
 42     description:
 43       Base MAC address for all on-module network interfaces. The first
 44       argument of the phandle will be treated as an offset.
 45 
 46     properties:
 47       "#nvmem-cell-cells":
 48         const: 1
 49 
 50     additionalProperties: false
 51 
 52   manufacture-date:
 53     type: object
 54     additionalProperties: false
 55 
 56   device-version:
 57     type: object
 58     additionalProperties: false
 59 
 60   label-revision:
 61     type: object
 62     additionalProperties: false
 63 
 64   platform-name:
 65     type: object
 66     additionalProperties: false
 67 
 68   onie-version:
 69     type: object
 70     additionalProperties: false
 71 
 72   num-macs:
 73     type: object
 74     additionalProperties: false
 75 
 76   manufacturer:
 77     type: object
 78     additionalProperties: false
 79 
 80   country-code:
 81     type: object
 82     additionalProperties: false
 83 
 84   vendor:
 85     type: object
 86     additionalProperties: false
 87 
 88   diag-version:
 89     type: object
 90     additionalProperties: false
 91 
 92   service-tag:
 93     type: object
 94     additionalProperties: false
 95 
 96   vendor-extension:
 97     type: object
 98     additionalProperties: false
 99 
100 required:
101   - compatible
102 
103 additionalProperties: false
104 
105 examples:
106   - |
107     spi {
108         #address-cells = <1>;
109         #size-cells = <0>;
110 
111         eeprom@56 {
112             compatible = "atmel,24c64";
113             read-only;
114             reg = <0x56>;
115 
116             nvmem-layout {
117                 compatible = "onie,tlv-layout";
118 
119                 serial-number {
120                 };
121             };
122         };
123     };
124 
125   - |
126     spi {
127         #address-cells = <1>;
128         #size-cells = <0>;
129 
130         flash@0 {
131             compatible = "m25p80", "jedec,spi-nor";
132             reg = <0>;
133 
134             otp {
135                 compatible = "user-otp";
136 
137                 nvmem-layout {
138                     compatible = "onie,tlv-layout";
139 
140                     mac-address {
141                         #nvmem-cell-cells = <1>;
142                     };
143                 };
144             };
145         };
146     };
147 ...

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php