st,stm32-romem.yaml 1.6 KB

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