xref: /linux/Documentation/devicetree/bindings/nvmem/nvmem-consumer.yaml (revision bba2c3615bd6cfee7456d1130f2e6b01b3f4e9ba)
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/nvmem/nvmem-consumer.yaml#
5$schema: http://devicetree.org/meta-schemas/base.yaml#
6
7title: NVMEM (Non Volatile Memory) Consumer
8
9maintainers:
10  - Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
11
12select: true
13
14properties:
15  nvmem:
16    $ref: /schemas/types.yaml#/definitions/phandle-array
17    description:
18      List of phandle to the nvmem providers.
19    items:
20      maxItems: 1
21
22  nvmem-cells:
23    $ref: /schemas/types.yaml#/definitions/phandle-array
24    description:
25      List of phandle to the nvmem data cells.
26
27  nvmem-names:
28    description:
29      Names for the each nvmem provider.
30
31  nvmem-cell-names:
32    description:
33      Names for each nvmem-cells specified.
34
35dependencies:
36  nvmem-names: [ nvmem ]
37  nvmem-cell-names: [ nvmem-cells ]
38
39additionalProperties: true
40
41examples:
42  - |
43    tsens {
44        /* ... */
45        nvmem-cells = <&tsens_calibration>;
46        nvmem-cell-names = "calibration";
47    };
48