rockchip-efuse.yaml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. # SPDX-License-Identifier: GPL-2.0-or-later OR BSD-2-Clause
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/nvmem/rockchip-efuse.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Rockchip eFuse
  7. maintainers:
  8. - Heiko Stuebner <heiko@sntech.de>
  9. allOf:
  10. - $ref: nvmem.yaml#
  11. - $ref: nvmem-deprecated-cells.yaml#
  12. properties:
  13. compatible:
  14. enum:
  15. - rockchip,rk3066a-efuse
  16. - rockchip,rk3188-efuse
  17. - rockchip,rk3228-efuse
  18. - rockchip,rk3288-efuse
  19. - rockchip,rk3328-efuse
  20. - rockchip,rk3368-efuse
  21. - rockchip,rk3399-efuse
  22. # Deprecated: old compatible value for rk3066a, rk3188 and rk3288
  23. - rockchip,rockchip-efuse
  24. reg:
  25. description:
  26. Registers location and eFuse size.
  27. maxItems: 1
  28. clocks:
  29. description:
  30. eFuse clock id.
  31. maxItems: 1
  32. clock-names:
  33. const: pclk_efuse
  34. rockchip,efuse-size:
  35. description:
  36. eFuse size in bytes. The eFuse size in property <reg> will be invalid if
  37. this property is defined.
  38. $ref: /schemas/types.yaml#/definitions/uint32
  39. required:
  40. - compatible
  41. - reg
  42. - clocks
  43. - clock-names
  44. unevaluatedProperties: false
  45. examples:
  46. - |
  47. #include <dt-bindings/clock/rk3288-cru.h>
  48. efuse: efuse@ffb40000 {
  49. compatible = "rockchip,rk3288-efuse";
  50. reg = <0xffb40000 0x20>;
  51. #address-cells = <1>;
  52. #size-cells = <1>;
  53. clocks = <&cru PCLK_EFUSE256>;
  54. clock-names = "pclk_efuse";
  55. /* Data cells */
  56. cpu_leakage: cpu_leakage@17 {
  57. reg = <0x17 0x1>;
  58. };
  59. };
  60. ...