1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/nvmem/fsl,scu-ocotp.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: i.MX SCU Client Device Node - OCOTP Based on SCU Message Protocol
8
9maintainers:
10  - Dong Aisheng <aisheng.dong@nxp.com>
11
12description: i.MX SCU Client Device Node
13  Client nodes are maintained as children of the relevant IMX-SCU device node.
14
15allOf:
16  - $ref: nvmem.yaml#
17
18properties:
19  compatible:
20    enum:
21      - fsl,imx8qm-scu-ocotp
22      - fsl,imx8qxp-scu-ocotp
23
24patternProperties:
25  '^mac@[0-9a-f]*$':
26    type: object
27    description:
28      MAC address.
29
30    properties:
31      reg:
32        description:
33          Byte offset within OCOTP where the MAC address is stored
34        maxItems: 1
35
36    required:
37      - reg
38
39    additionalProperties: false
40
41required:
42  - compatible
43
44unevaluatedProperties: false
45
46examples:
47  - |
48    ocotp {
49        compatible = "fsl,imx8qxp-scu-ocotp";
50        #address-cells = <1>;
51        #size-cells = <1>;
52
53        fec_mac0: mac@2c4 {
54            reg = <0x2c4 6>;
55        };
56    };
57