76 lines
2.2 KiB
Diff
76 lines
2.2 KiB
Diff
From: Guillaume Tucker <guillaume.tucker@collabora.com>
|
|
Date: Wed, 3 May 2017 10:56:26 +0100
|
|
Subject: [2/5] ARM: dts: rockchip: add ARM Mali GPU node for rk3288
|
|
Origin: https://git.kernel.org/linus/e3df026c594c77f0de1bdaa413d591b4345e4b6a
|
|
Bug-Debian: https://bugs.debian.org/865646
|
|
|
|
Add Mali GPU device tree node for the rk3288 SoC, with devfreq
|
|
opp table.
|
|
|
|
Signed-off-by: Guillaume Tucker <guillaume.tucker@collabora.com>
|
|
Tested-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
|
|
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
|
|
---
|
|
arch/arm/boot/dts/rk3288.dtsi | 43 +++++++++++++++++++++++++++++++++++++++++++
|
|
1 file changed, 43 insertions(+)
|
|
|
|
--- a/arch/arm/boot/dts/rk3288.dtsi
|
|
+++ b/arch/arm/boot/dts/rk3288.dtsi
|
|
@@ -43,6 +43,7 @@
|
|
#include <dt-bindings/interrupt-controller/arm-gic.h>
|
|
#include <dt-bindings/pinctrl/rockchip.h>
|
|
#include <dt-bindings/clock/rk3288-cru.h>
|
|
+#include <dt-bindings/power/rk3288-power.h>
|
|
#include <dt-bindings/thermal/thermal.h>
|
|
#include <dt-bindings/power/rk3288-power.h>
|
|
#include <dt-bindings/soc/rockchip,boot-mode.h>
|
|
@@ -1187,6 +1188,48 @@
|
|
reg = <0xffaf0080 0x20>;
|
|
};
|
|
|
|
+ gpu: mali@ffa30000 {
|
|
+ compatible = "rockchip,rk3288-mali", "arm,mali-t760", "arm,mali-midgard";
|
|
+ reg = <0xffa30000 0x10000>;
|
|
+ interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>,
|
|
+ <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>,
|
|
+ <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ interrupt-names = "job", "mmu", "gpu";
|
|
+ clocks = <&cru ACLK_GPU>;
|
|
+ operating-points-v2 = <&gpu_opp_table>;
|
|
+ power-domains = <&power RK3288_PD_GPU>;
|
|
+ status = "disabled";
|
|
+ };
|
|
+
|
|
+ gpu_opp_table: gpu-opp-table {
|
|
+ compatible = "operating-points-v2";
|
|
+
|
|
+ opp@100000000 {
|
|
+ opp-hz = /bits/ 64 <100000000>;
|
|
+ opp-microvolt = <950000>;
|
|
+ };
|
|
+ opp@200000000 {
|
|
+ opp-hz = /bits/ 64 <200000000>;
|
|
+ opp-microvolt = <950000>;
|
|
+ };
|
|
+ opp@300000000 {
|
|
+ opp-hz = /bits/ 64 <300000000>;
|
|
+ opp-microvolt = <1000000>;
|
|
+ };
|
|
+ opp@400000000 {
|
|
+ opp-hz = /bits/ 64 <400000000>;
|
|
+ opp-microvolt = <1100000>;
|
|
+ };
|
|
+ opp@500000000 {
|
|
+ opp-hz = /bits/ 64 <500000000>;
|
|
+ opp-microvolt = <1200000>;
|
|
+ };
|
|
+ opp@600000000 {
|
|
+ opp-hz = /bits/ 64 <600000000>;
|
|
+ opp-microvolt = <1250000>;
|
|
+ };
|
|
+ };
|
|
+
|
|
gic: interrupt-controller@ffc01000 {
|
|
compatible = "arm,gic-400";
|
|
interrupt-controller;
|