arm64: dts: exynos: Add GPU/Mali T760 node to Exynos5433
authorKrzysztof Kozlowski <krzk@kernel.org>
Fri, 21 Jun 2019 18:02:04 +0000 (20:02 +0200)
committerKrzysztof Kozlowski <krzk@kernel.org>
Mon, 24 Jun 2019 17:52:25 +0000 (19:52 +0200)
Add nodes for GPU (Mali T760) to Exynos5433.  Missing element is the
cooling device.  Not tested on HW.

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi
arch/arm64/boot/dts/exynos/exynos5433.dtsi

index d2de16645e101d13e5766ce8d7a20403f0406ec8..6f90b0e62cba619caf6a6744dfc206bde73d438c 100644 (file)
        pinctrl-0 = <&te_irq>;
 };
 
+&gpu {
+       mali-supply = <&buck6_reg>;
+       status = "okay";
+};
+
 &hdmi {
        hpd-gpios = <&gpa3 0 GPIO_ACTIVE_HIGH>;
        status = "okay";
index d29d13f4694f026ed51239cda91994ae96185c17..a76f620f7f35505855c438a80097b6d89df92888 100644 (file)
                };
        };
 
+       gpu: gpu@14ac0000 {
+               compatible = "samsung,exynos5433-mali", "arm,mali-t760";
+               reg = <0x14ac0000 0x5000>;
+               interrupts = <GIC_SPI 282 IRQ_TYPE_LEVEL_HIGH>,
+                            <GIC_SPI 283 IRQ_TYPE_LEVEL_HIGH>,
+                            <GIC_SPI 281 IRQ_TYPE_LEVEL_HIGH>;
+               interrupt-names = "job", "mmu", "gpu";
+               clocks = <&cmu_g3d CLK_ACLK_G3D>;
+               clock-names = "core";
+               power-domains = <&pd_g3d>;
+               operating-points-v2 = <&gpu_opp_table>;
+               status = "disabled";
+
+               gpu_opp_table: opp_table {
+                       compatible = "operating-points-v2";
+
+                       opp-160000000 {
+                               opp-hz = /bits/ 64 <160000000>;
+                               opp-microvolt = <1000000>;
+                       };
+                       opp-267000000 {
+                               opp-hz = /bits/ 64 <267000000>;
+                               opp-microvolt = <1000000>;
+                       };
+                       opp-350000000 {
+                               opp-hz = /bits/ 64 <350000000>;
+                               opp-microvolt = <1025000>;
+                       };
+                       opp-420000000 {
+                               opp-hz = /bits/ 64 <420000000>;
+                               opp-microvolt = <1025000>;
+                       };
+                       opp-500000000 {
+                               opp-hz = /bits/ 64 <500000000>;
+                               opp-microvolt = <1075000>;
+                       };
+                       opp-550000000 {
+                               opp-hz = /bits/ 64 <550000000>;
+                               opp-microvolt = <1125000>;
+                       };
+                       opp-600000000 {
+                               opp-hz = /bits/ 64 <600000000>;
+                               opp-microvolt = <1150000>;
+                       };
+                       opp-700000000 {
+                               opp-hz = /bits/ 64 <700000000>;
+                               opp-microvolt = <1150000>;
+                       };
+               };
+       };
+
        psci {
                compatible = "arm,psci";
                method = "smc";