scpsys.txt 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. MediaTek SCPSYS
  2. ===============
  3. The System Control Processor System (SCPSYS) has several power management
  4. related tasks in the system. The tasks include thermal measurement, dynamic
  5. voltage frequency scaling (DVFS), interrupt filter and lowlevel sleep control.
  6. The System Power Manager (SPM) inside the SCPSYS is for the MTCMOS power
  7. domain control.
  8. The driver implements the Generic PM domain bindings described in
  9. power/power_domain.txt. It provides the power domains defined in
  10. include/dt-bindings/power/mt8173-power.h.
  11. Required properties:
  12. - compatible: Must be "mediatek,mt8173-scpsys"
  13. - #power-domain-cells: Must be 1
  14. - reg: Address range of the SCPSYS unit
  15. - infracfg: must contain a phandle to the infracfg controller
  16. - clock, clock-names: clocks according to the common clock binding.
  17. The clocks needed "mm", "mfg", "venc" and "venc_lt".
  18. These are the clocks which hardware needs to be enabled
  19. before enabling certain power domains.
  20. Optional properties:
  21. - vdec-supply: Power supply for the vdec power domain
  22. - venc-supply: Power supply for the venc power domain
  23. - isp-supply: Power supply for the isp power domain
  24. - mm-supply: Power supply for the mm power domain
  25. - venc_lt-supply: Power supply for the venc_lt power domain
  26. - audio-supply: Power supply for the audio power domain
  27. - usb-supply: Power supply for the usb power domain
  28. - mfg_async-supply: Power supply for the mfg_async power domain
  29. - mfg_2d-supply: Power supply for the mfg_2d power domain
  30. - mfg-supply: Power supply for the mfg power domain
  31. Example:
  32. scpsys: scpsys@10006000 {
  33. #power-domain-cells = <1>;
  34. compatible = "mediatek,mt8173-scpsys";
  35. reg = <0 0x10006000 0 0x1000>;
  36. infracfg = <&infracfg>;
  37. clocks = <&clk26m>,
  38. <&topckgen CLK_TOP_MM_SEL>;
  39. <&topckgen CLK_TOP_VENC_SEL>,
  40. <&topckgen CLK_TOP_VENC_LT_SEL>;
  41. clock-names = "mfg", "mm", "venc", "venc_lt";
  42. };
  43. Example consumer:
  44. afe: mt8173-afe-pcm@11220000 {
  45. compatible = "mediatek,mt8173-afe-pcm";
  46. power-domains = <&scpsys MT8173_POWER_DOMAIN_AUDIO>;
  47. };