mem-acc-regulator.txt 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. Qualcomm Technologies Memory Accelerator
  2. Memory accelerator configures the power-mode (corner) for the
  3. accelerator.
  4. Required properties:
  5. - compatible: Must be "qcom,mem-acc-regulator"
  6. - regulator-name: A string used to describe the regulator
  7. - regulator-min-microvolt: Minimum corner value as min constraint, which
  8. should be 1 for SVS corner
  9. - regulator-max-microvolt: Maximum corner value as max constraint, which
  10. should be 4 for SUPER_TURBO or 3 for TURBO
  11. - qcom,corner-acc-map Array which maps the APC (application processor)
  12. corner value to the accelerator corner.
  13. [0] maps APC SVS corner (1) to accelerator SVS corner
  14. [1] maps APC NOMINAL corner (2) to accelerator NOMINAL corner
  15. [2] maps APC TURBO corner (3) to accelerator TURBO corner
  16. Optional properties:
  17. - reg: Register addresses for acc-en and acc-sel-l1 acc-sel-l2 control.
  18. - reg-names: Register names. Must be "acc-sel-l1", "acc-sel-l2", "acc-en".
  19. A given mem-acc-regulator driver must have "acc-sel-l1" or
  20. "acc-sel-l2" reg-names property and related register address
  21. property.
  22. - qcom,acc-en-bit-pos Array which specifies bit positions in the
  23. 'acc-en' register. Setting these bits forces the
  24. the acclerator to use the corner value specified
  25. in the 'acc-sel-l1' and 'acc-sel-l2' register.
  26. - qcom,acc-sel-l1-bit-pos Array which specifies bit positions in the
  27. 'acc-sel-l1' register. Each element in this array
  28. is the LSB of a 2-bit value. This 2-bit value
  29. specifies the corner value used by the
  30. accelerator for L1 cache.
  31. - qcom,acc-sel-l2-bit-pos Array which specifies bit positions in the
  32. 'acc-sel-l2' register. Each element in this array
  33. is the LSB of a 2-bit value. This 2-bit value
  34. specifies the corner value used by the
  35. accelerator for L2 cache.
  36. mem_acc_vreg_corner: regulator@fd4aa044 {
  37. compatible = "qcom,mem-acc-regulator";
  38. reg = <0xfd4aa048 0x1>, <0xfd4aa044 0x1>, <0xfd4af000 0x1>;
  39. reg-names = "acc-en", "acc-sel-l1" , "acc-sel-l2";
  40. regulator-name = "mem_acc_corner";
  41. regulator-min-microvolt = <1>;
  42. regulator-max-microvolt = <3>;
  43. qcom,acc-en-bit-pos = <0>;
  44. qcom,acc-sel-l1-bit-pos = <0>;
  45. qcom,acc-sel-l2-bit-pos = <0>;
  46. qcom,corner-acc-map = <0 1 3>;
  47. };