1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/nvmem/st,stm32-romem.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: STMicroelectronics STM32 Factory-programmed data
8
9description: |
10  This represents STM32 Factory-programmed read only non-volatile area: locked
11  flash, OTP, read-only HW regs... This contains various information such as:
12  analog calibration data for temperature sensor (e.g. TS_CAL1, TS_CAL2),
13  internal vref (VREFIN_CAL), unique device ID...
14
15maintainers:
16  - Fabrice Gasnier <fabrice.gasnier@foss.st.com>
17
18allOf:
19  - $ref: nvmem.yaml#
20
21properties:
22  compatible:
23    enum:
24      - st,stm32f4-otp
25      - st,stm32mp13-bsec
26      - st,stm32mp15-bsec
27
28  reg:
29    maxItems: 1
30
31patternProperties:
32  "^.*@[0-9a-f]+$":
33    type: object
34
35    properties:
36      st,non-secure-otp:
37        description: |
38          This property explicits a factory programmed area that both secure
39          and non-secure worlds can access. It is needed when, by default, the
40          related area can only be reached by the secure world.
41        type: boolean
42
43required:
44  - "#address-cells"
45  - "#size-cells"
46  - compatible
47  - reg
48
49unevaluatedProperties: false
50
51examples:
52  - |
53    efuse@1fff7800 {
54      compatible = "st,stm32f4-otp";
55      reg = <0x1fff7800 0x400>;
56      #address-cells = <1>;
57      #size-cells = <1>;
58
59      calib@22c {
60        reg = <0x22c 0x2>;
61      };
62
63      mac_addr@e4 {
64        reg = <0xe4 0x8>;
65        st,non-secure-otp;
66      };
67    };
68
69...
70