Freescale i.MX On-Chip OTP Controller (OCOTP)

Schema identifier ($id): "http://devicetree.org/schemas/nvmem/imx-ocotp.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Shawn Guo <shawnguo@kernel.org>", "Sascha Hauer <s.hauer@pengutronix.de>", "Fabio Estevam <festevam@gmail.com>"

This binding represents the on-chip eFuse OTP controller found on i.MX6Q/D, i.MX6DL/S, i.MX6SL, i.MX6SX, i.MX6UL, i.MX6ULL/ULZ, i.MX6SLL, i.MX7D/S, i.MX7ULP, i.MX8MQ, i.MX8MM, i.MX8MN i.MX8MP, i.MX93, i.MX94, and i.MX95.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): nvmem.yaml#

Rule 2 #

Shared schema rule ($ref): nvmem-deprecated-cells.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "fsl,imx6q-ocotp", "fsl,imx6sl-ocotp", "fsl,imx6sx-ocotp", "fsl,imx6ul-ocotp", "fsl,imx6ull-ocotp", "fsl,imx7d-ocotp", "fsl,imx6sll-ocotp", "fsl,imx7ulp-ocotp", "fsl,imx8mq-ocotp", "fsl,imx8mm-ocotp", "fsl,imx93-ocotp", "fsl,imx94-ocotp", "fsl,imx95-ocotp"

Item 2

Exact value (const): "syscon"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "fsl,imx8mn-ocotp", "fsl,imx8mp-ocotp"

Item 2

Exact value (const): "fsl,imx8mm-ocotp"

Item 3

Exact value (const): "syscon"

reg — required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Maximum number of items (maxItems): 1

Required in this object (required): "#address-cells", "#size-cells", "compatible", "reg"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/imx6sx-clock.h>

ocotp: efuse@21bc000 {
    #address-cells = <1>;
    #size-cells = <1>;
    compatible = "fsl,imx6sx-ocotp", "syscon";
    reg = <0x021bc000 0x4000>;
    clocks = <&clks IMX6SX_CLK_OCOTP>;

    cpu_speed_grade: speed-grade@10 {
        reg = <0x10 4>;
    };

    tempmon_calib: calib@38 {
        reg = <0x38 4>;
    };

    tempmon_temp_grade: temp-grade@20 {
        reg = <0x20 4>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Line 46: i.MX8MP not really compatible with fsl,imx8mm-ocotp, however

Line 47: the code for getting SoC revision depends on fsl,imx8mm-ocotp

Line 48: compatible.

Edit this page