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