dt-bindings: gpu: add #cooling-cells property to the ARM Mali Midgard GPU binding
[linux-2.6-microblaze.git] / Documentation / devicetree / bindings / gpu / arm,mali-midgard.txt
1 ARM Mali Midgard GPU
2 ====================
3
4 Required properties:
5
6 - compatible :
7   * Must contain one of the following:
8     + "arm,mali-t604"
9     + "arm,mali-t624"
10     + "arm,mali-t628"
11     + "arm,mali-t720"
12     + "arm,mali-t760"
13     + "arm,mali-t820"
14     + "arm,mali-t830"
15     + "arm,mali-t860"
16     + "arm,mali-t880"
17   * which must be preceded by one of the following vendor specifics:
18     + "amlogic,meson-gxm-mali"
19     + "rockchip,rk3288-mali"
20     + "rockchip,rk3399-mali"
21
22 - reg : Physical base address of the device and length of the register area.
23
24 - interrupts : Contains the three IRQ lines required by Mali Midgard devices.
25
26 - interrupt-names : Contains the names of IRQ resources in the order they were
27   provided in the interrupts property. Must contain: "job", "mmu", "gpu".
28
29
30 Optional properties:
31
32 - clocks : Phandle to clock for the Mali Midgard device.
33
34 - mali-supply : Phandle to regulator for the Mali device. Refer to
35   Documentation/devicetree/bindings/regulator/regulator.txt for details.
36
37 - operating-points-v2 : Refer to Documentation/devicetree/bindings/opp/opp.txt
38   for details.
39
40 - #cooling-cells: Refer to Documentation/devicetree/bindings/thermal/thermal.txt
41   for details.
42
43 Example for a Mali-T760:
44
45 gpu@ffa30000 {
46         compatible = "rockchip,rk3288-mali", "arm,mali-t760";
47         reg = <0xffa30000 0x10000>;
48         interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>,
49                      <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>,
50                      <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
51         interrupt-names = "job", "mmu", "gpu";
52         clocks = <&cru ACLK_GPU>;
53         mali-supply = <&vdd_gpu>;
54         operating-points-v2 = <&gpu_opp_table>;
55         power-domains = <&power RK3288_PD_GPU>;
56         #cooling-cells = <2>;
57 };
58
59 gpu_opp_table: opp_table0 {
60         compatible = "operating-points-v2";
61
62         opp@533000000 {
63                 opp-hz = /bits/ 64 <533000000>;
64                 opp-microvolt = <1250000>;
65         };
66         opp@450000000 {
67                 opp-hz = /bits/ 64 <450000000>;
68                 opp-microvolt = <1150000>;
69         };
70         opp@400000000 {
71                 opp-hz = /bits/ 64 <400000000>;
72                 opp-microvolt = <1125000>;
73         };
74         opp@350000000 {
75                 opp-hz = /bits/ 64 <350000000>;
76                 opp-microvolt = <1075000>;
77         };
78         opp@266000000 {
79                 opp-hz = /bits/ 64 <266000000>;
80                 opp-microvolt = <1025000>;
81         };
82         opp@160000000 {
83                 opp-hz = /bits/ 64 <160000000>;
84                 opp-microvolt = <925000>;
85         };
86         opp@100000000 {
87                 opp-hz = /bits/ 64 <100000000>;
88                 opp-microvolt = <912500>;
89         };
90 };