xref: /freebsd/sys/contrib/device-tree/Bindings/nvmem/st,stm32-romem.yaml (revision b2d2a78ad80ec68d4a17f5aef97d21686cb1e29b)
1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2c66ec88fSEmmanuel Vadot%YAML 1.2
3c66ec88fSEmmanuel Vadot---
4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/nvmem/st,stm32-romem.yaml#
5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6c66ec88fSEmmanuel Vadot
78bab661aSEmmanuel Vadottitle: STMicroelectronics STM32 Factory-programmed data
8c66ec88fSEmmanuel Vadot
9c66ec88fSEmmanuel Vadotdescription: |
10c66ec88fSEmmanuel Vadot  This represents STM32 Factory-programmed read only non-volatile area: locked
11c66ec88fSEmmanuel Vadot  flash, OTP, read-only HW regs... This contains various information such as:
12c66ec88fSEmmanuel Vadot  analog calibration data for temperature sensor (e.g. TS_CAL1, TS_CAL2),
13c66ec88fSEmmanuel Vadot  internal vref (VREFIN_CAL), unique device ID...
14c66ec88fSEmmanuel Vadot
15c66ec88fSEmmanuel Vadotmaintainers:
168cc087a1SEmmanuel Vadot  - Fabrice Gasnier <fabrice.gasnier@foss.st.com>
17c66ec88fSEmmanuel Vadot
18c66ec88fSEmmanuel VadotallOf:
19fac71e4eSEmmanuel Vadot  - $ref: nvmem.yaml#
20*b2d2a78aSEmmanuel Vadot  - $ref: nvmem-deprecated-cells.yaml#
21c66ec88fSEmmanuel Vadot
22c66ec88fSEmmanuel Vadotproperties:
23c66ec88fSEmmanuel Vadot  compatible:
24c66ec88fSEmmanuel Vadot    enum:
25c66ec88fSEmmanuel Vadot      - st,stm32f4-otp
268bab661aSEmmanuel Vadot      - st,stm32mp13-bsec
27c66ec88fSEmmanuel Vadot      - st,stm32mp15-bsec
288d13bc63SEmmanuel Vadot      - st,stm32mp25-bsec
29c66ec88fSEmmanuel Vadot
30e67e8565SEmmanuel Vadot  reg:
31e67e8565SEmmanuel Vadot    maxItems: 1
32e67e8565SEmmanuel Vadot
33c66ec88fSEmmanuel VadotpatternProperties:
34c66ec88fSEmmanuel Vadot  "^.*@[0-9a-f]+$":
35c66ec88fSEmmanuel Vadot    type: object
36*b2d2a78aSEmmanuel Vadot    $ref: layouts/fixed-cell.yaml
37*b2d2a78aSEmmanuel Vadot    unevaluatedProperties: false
38c66ec88fSEmmanuel Vadot
39c66ec88fSEmmanuel Vadot    properties:
40c66ec88fSEmmanuel Vadot      st,non-secure-otp:
41c66ec88fSEmmanuel Vadot        description: |
42c66ec88fSEmmanuel Vadot          This property explicits a factory programmed area that both secure
43c66ec88fSEmmanuel Vadot          and non-secure worlds can access. It is needed when, by default, the
44c66ec88fSEmmanuel Vadot          related area can only be reached by the secure world.
45c66ec88fSEmmanuel Vadot        type: boolean
46c66ec88fSEmmanuel Vadot
47c66ec88fSEmmanuel Vadotrequired:
48c66ec88fSEmmanuel Vadot  - "#address-cells"
49c66ec88fSEmmanuel Vadot  - "#size-cells"
50c66ec88fSEmmanuel Vadot  - compatible
51c66ec88fSEmmanuel Vadot  - reg
52c66ec88fSEmmanuel Vadot
536be33864SEmmanuel VadotunevaluatedProperties: false
546be33864SEmmanuel Vadot
55c66ec88fSEmmanuel Vadotexamples:
56c66ec88fSEmmanuel Vadot  - |
57c66ec88fSEmmanuel Vadot    efuse@1fff7800 {
58c66ec88fSEmmanuel Vadot      compatible = "st,stm32f4-otp";
59c66ec88fSEmmanuel Vadot      reg = <0x1fff7800 0x400>;
60c66ec88fSEmmanuel Vadot      #address-cells = <1>;
61c66ec88fSEmmanuel Vadot      #size-cells = <1>;
62c66ec88fSEmmanuel Vadot
63c66ec88fSEmmanuel Vadot      calib@22c {
64c66ec88fSEmmanuel Vadot        reg = <0x22c 0x2>;
65c66ec88fSEmmanuel Vadot      };
66c66ec88fSEmmanuel Vadot
67c66ec88fSEmmanuel Vadot      mac_addr@e4 {
68c66ec88fSEmmanuel Vadot        reg = <0xe4 0x8>;
69c66ec88fSEmmanuel Vadot        st,non-secure-otp;
70c66ec88fSEmmanuel Vadot      };
71c66ec88fSEmmanuel Vadot    };
72c66ec88fSEmmanuel Vadot
73c66ec88fSEmmanuel Vadot...
74