]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: sun8i: a33: Add the Mali OPPs
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Thu, 9 Feb 2017 15:01:18 +0000 (16:01 +0100)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Mon, 6 Mar 2017 06:40:37 +0000 (07:40 +0100)
The Mali GPU in the A33 has various operating frequencies used in the
Allwinner BSP.

Add them to our DT.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
arch/arm/boot/dts/sun8i-a33.dtsi

index 18c174fef84f512c18145e795276af099d8de07b..edb8653a66a02c42fb5c2a36e79eb58623c0d9c5 100644 (file)
                status = "disabled";
        };
 
+       mali_opp_table: gpu-opp-table {
+               compatible = "operating-points-v2";
+
+               opp@144000000 {
+                       opp-hz = /bits/ 64 <144000000>;
+               };
+
+               opp@240000000 {
+                       opp-hz = /bits/ 64 <240000000>;
+               };
+
+               opp@384000000 {
+                       opp-hz = /bits/ 64 <384000000>;
+               };
+       };
+
        memory {
                reg = <0x40000000 0x80000000>;
        };
        compatible = "allwinner,sun8i-a33-ccu";
 };
 
+&mali {
+       operating-points-v2 = <&mali_opp_table>;
+};
+
 &pio {
        compatible = "allwinner,sun8i-a33-pinctrl";
        interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>,