gpu.txt 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. Qualcomm adreno/snapdragon GPU
  2. Required properties:
  3. - compatible: "qcom,adreno-3xx"
  4. - reg: Physical base address and length of the controller's registers.
  5. - interrupts: The interrupt signal from the gpu.
  6. - clocks: device clocks
  7. See ../clocks/clock-bindings.txt for details.
  8. - clock-names: the following clocks are required:
  9. * "core_clk"
  10. * "iface_clk"
  11. * "mem_iface_clk"
  12. - qcom,chipid: gpu chip-id. Note this may become optional for future
  13. devices if we can reliably read the chipid from hw
  14. - qcom,gpu-pwrlevels: list of operating points
  15. - compatible: "qcom,gpu-pwrlevels"
  16. - for each qcom,gpu-pwrlevel:
  17. - qcom,gpu-freq: requested gpu clock speed
  18. - NOTE: downstream android driver defines additional parameters to
  19. configure memory bandwidth scaling per OPP.
  20. Example:
  21. / {
  22. ...
  23. gpu: qcom,kgsl-3d0@4300000 {
  24. compatible = "qcom,adreno-3xx";
  25. reg = <0x04300000 0x20000>;
  26. reg-names = "kgsl_3d0_reg_memory";
  27. interrupts = <GIC_SPI 80 0>;
  28. interrupt-names = "kgsl_3d0_irq";
  29. clock-names =
  30. "core_clk",
  31. "iface_clk",
  32. "mem_iface_clk";
  33. clocks =
  34. <&mmcc GFX3D_CLK>,
  35. <&mmcc GFX3D_AHB_CLK>,
  36. <&mmcc MMSS_IMEM_AHB_CLK>;
  37. qcom,chipid = <0x03020100>;
  38. qcom,gpu-pwrlevels {
  39. compatible = "qcom,gpu-pwrlevels";
  40. qcom,gpu-pwrlevel@0 {
  41. qcom,gpu-freq = <450000000>;
  42. };
  43. qcom,gpu-pwrlevel@1 {
  44. qcom,gpu-freq = <27000000>;
  45. };
  46. };
  47. };
  48. };