ti,omap-opp-supply.yaml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/opp/ti,omap-opp-supply.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Texas Instruments OMAP compatible OPP supply
  7. description:
  8. OMAP5, DRA7, and AM57 families of SoCs have Class 0 AVS eFuse
  9. registers, which contain OPP-specific voltage information tailored
  10. for the specific device. This binding provides the information
  11. needed to describe such a hardware values and relate them to program
  12. the primary regulator during an OPP transition.
  13. Also, some supplies may have an associated vbb-supply, an Adaptive
  14. Body Bias regulator, which must transition in a specific sequence
  15. w.r.t the vdd-supply and clk when making an OPP transition. By
  16. supplying two regulators to the device that will undergo OPP
  17. transitions, we can use the multi-regulator support implemented by
  18. the OPP core to describe both regulators the platform needs. The
  19. OPP core binding Documentation/devicetree/bindings/opp/opp-v2.yaml
  20. provides further information (refer to Example 4 Handling multiple
  21. regulators).
  22. maintainers:
  23. - Nishanth Menon <nm@ti.com>
  24. properties:
  25. $nodename:
  26. pattern: '^opp-supply(@[0-9a-f]+)?$'
  27. compatible:
  28. oneOf:
  29. - description: Basic OPP supply controlling VDD and VBB
  30. const: ti,omap-opp-supply
  31. - description: OMAP5+ optimized voltages in efuse(Class 0) VDD along with
  32. VBB.
  33. const: ti,omap5-opp-supply
  34. - description: OMAP5+ optimized voltages in efuse(class0) VDD but no VBB
  35. const: ti,omap5-core-opp-supply
  36. reg:
  37. maxItems: 1
  38. ti,absolute-max-voltage-uv:
  39. $ref: /schemas/types.yaml#/definitions/uint32
  40. description: Absolute maximum voltage for the OPP supply in micro-volts.
  41. minimum: 750000
  42. maximum: 1500000
  43. ti,efuse-settings:
  44. description: An array of u32 tuple items providing information about
  45. optimized efuse configuration.
  46. minItems: 1
  47. $ref: /schemas/types.yaml#/definitions/uint32-matrix
  48. items:
  49. items:
  50. - description: Reference voltage in micro-volts (OPP Voltage)
  51. minimum: 750000
  52. maximum: 1500000
  53. multipleOf: 10000
  54. - description: efuse offset where the optimized voltage is located
  55. multipleOf: 4
  56. maximum: 256
  57. required:
  58. - compatible
  59. - ti,absolute-max-voltage-uv
  60. allOf:
  61. - if:
  62. not:
  63. properties:
  64. compatible:
  65. contains:
  66. const: ti,omap-opp-supply
  67. then:
  68. required:
  69. - reg
  70. - ti,efuse-settings
  71. additionalProperties: false
  72. examples:
  73. - |
  74. opp-supply {
  75. compatible = "ti,omap-opp-supply";
  76. ti,absolute-max-voltage-uv = <1375000>;
  77. };
  78. - |
  79. opp-supply@4a003b20 {
  80. compatible = "ti,omap5-opp-supply";
  81. reg = <0x4a003b20 0x8>;
  82. ti,efuse-settings =
  83. /* uV offset */
  84. <1060000 0x0>,
  85. <1160000 0x4>,
  86. <1210000 0x8>;
  87. ti,absolute-max-voltage-uv = <1500000>;
  88. };