Rockchip internal OTP (One Time Programmable) memory

Schema identifier ($id): "http://devicetree.org/schemas/nvmem/rockchip,otp.yaml#"

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

Maintainers (maintainers): "Heiko Stuebner <heiko@sntech.de>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "rockchip,px30-otp", "rockchip,rk3308-otp", "rockchip,rk3576-otp", "rockchip,rk3588-otp"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Minimum number of items (minItems): 3

Maximum number of items (maxItems): 4

clock-names — required here #

Minimum number of items (minItems): 3

Array item rules (items) #

Item 1

Exact value (const): "otp"

Item 2

Exact value (const): "apb_pclk"

Item 3

Exact value (const): "phy"

Item 4

Exact value (const): "arb"

resets — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 3

reset-names — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 3

Required in this object (required): "compatible", "reg", "clocks", "clock-names", "resets", "reset-names"

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#

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "rockchip,px30-otp", "rockchip,rk3308-otp"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Maximum number of items (maxItems): 3

clock-names — not listed as required here

Maximum number of items (maxItems): 3

resets — not listed as required here

Maximum number of items (maxItems): 1

reset-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "phy"

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "rockchip,rk3576-otp"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Maximum number of items (maxItems): 3

clock-names — not listed as required here

Maximum number of items (maxItems): 3

resets — not listed as required here

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

reset-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "otp"

Item 2

Exact value (const): "apb"

Rule 5 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "rockchip,rk3588-otp"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 4

clock-names — not listed as required here

Minimum number of items (minItems): 4

resets — not listed as required here

Minimum number of items (minItems): 3

reset-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "otp"

Item 2

Exact value (const): "apb"

Item 3

Exact value (const): "arb"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/px30-cru.h>

soc {
    #address-cells = <2>;
    #size-cells = <2>;

    otp: efuse@ff290000 {
        compatible = "rockchip,px30-otp";
        reg = <0x0 0xff290000 0x0 0x4000>;
        clocks = <&cru SCLK_OTP_USR>, <&cru PCLK_OTP_NS>,
                 <&cru PCLK_OTP_PHY>;
        clock-names = "otp", "apb_pclk", "phy";
        resets = <&cru SRST_OTP_PHY>;
        reset-names = "phy";
        #address-cells = <1>;
        #size-cells = <1>;

        cpu_id: id@7 {
            reg = <0x07 0x10>;
        };

        cpu_leakage: cpu-leakage@17 {
            reg = <0x17 0x1>;
        };

        performance: performance@1e {
            reg = <0x1e 0x1>;
            bits = <4 3>;
        };
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page