Skip to contentSkip to conversation

Add ARM Mali Midgard device tree bindings and gpu node for rk3288

PATCH Superseded Guillaume Tucker 2 participants 11 messages Apr 19, 2017 – Apr 20, 2017

Subsystems (4)

v3 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

v3 cover Add ARM Mali Midgard device tree bindings and gpu node for rk3288

The ARM Mali Midgard GPU kernel driver is only available out-of-tree and is not going to be merged in its current form. However, it would be useful to have its device tree bindings merged. In particular, this would enable distributions to create working driver packages (dkms...) without having to patch the kernel.

The bindings for the earlier Mali Utgard GPU family have already been merged, so this is essentially the same scenario but for newer GPUs (Mali-T604 ~ Mali-T880).

This series of patches first imports the bindings from the latest driver release with some clean-up then adds a gpu node for the rk3288 SoC. This was successfully tested on Radxa Rock2 Square, Firefly, Veyron Minnie and Jerry boards board using Mali kernel driver r16p0 and r12p0 user-space binary.

Changes since v1:
- enabled gpu on rk3288-veyron boards

Changes since v2:
- removed "clk-names" property and "clk_mali" name
- converted values of "interrupt-names" property to
lower-case: "job", "mmu" and "gpu"
- replaced dt compatible strings with list of all Midgard GPU variants and optional vendors
- cleaned up gpu node example

Enric Balletbo i Serra (1):
ARM: dts: rockchip: enable ARM Mali GPU on rk3288-veyron

Guillaume Tucker (4):
dt-bindings: gpu: add bindings for the ARM Mali Midgard GPU
ARM: dts: rockchip: add ARM Mali GPU node for rk3288
ARM: dts: rockchip: enable ARM Mali GPU on rk3288-rock2-som
ARM: dts: rockchip: enable ARM Mali GPU on rk3288-firefly

 .../devicetree/bindings/gpu/arm,mali-midgard.txt   | 57 ++++++++++++++++++++++
 arch/arm/boot/dts/rk3288-firefly.dtsi              |  5 ++
 arch/arm/boot/dts/rk3288-rock2-som.dtsi            |  5 ++
 arch/arm/boot/dts/rk3288-veyron.dtsi               |  5 ++
 arch/arm/boot/dts/rk3288.dtsi                      | 22 +++++++++
 5 files changed, 94 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/gpu/arm,mali-midgard.txt

--
2.11.0

#1 lore raw

PATCH v3 1/5 dt-bindings: gpu: add bindings for the ARM Mali Midgard GPU

The ARM Mali Midgard GPU family is present in a number of SoCs from many different vendors such as Samsung Exynos and Rockchip.

Import the device tree bindings documentation from the r16p0 release of the Mali Midgard GPU kernel driver:

https://developer.arm.com/-/media/Files/downloads/mali-drivers/kernel/mali-midgard-gpu/TX011-SW-99002-r16p0-00rel0.tgz

The "compatible" property strings have been redesigned to explicitly list all the Mali Midgard GPU types and include optional vendor ones.

The "clock-names" property has been dropped as only one clock is used by the Mali Midgard driver which now needs to call clk_get with NULL.

The "interrupt-names" property values have been converted to
lower-case: "job", "mmu" and "gpu".

The following optional bindings have been omitted in this initial version as they are only used in very specific cases:

* snoop_enable_smc
* snoop_disable_smc
* jm_config
* power_model
* system-coherency
* ipa-model

The example has been simplified accordingly.

The copyright and GPL licence header has been removed as deemed not necessary.

---
 .../devicetree/bindings/gpu/arm,mali-midgard.txt   | 57 ++++++++++++++++++++++
 1 file changed, 57 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/gpu/arm,mali-midgard.txt
Documentation/devicetree/bindings/gpu/arm,mali-midgard.txt new file +57 -0
new file mode 100644
index 000000000000..917c4f8d178f
@@ -0,0 +1,57 @@
+ARM Mali Midgard GPU
+====================
+
+Required properties:
+
+- compatible :
+  * Must be one of the following:
+    + "arm,mali-t60x"
+    + "arm,mali-t62x"
+    + "arm,mali-t720"
+    + "arm,mali-t760"
+    + "arm,mali-t820"
+    + "arm,mali-t830"
+    + "arm,mali-t860"
+    + "arm,mali-t880"
+  * And, optionally, one of the vendor specific compatible:
+    + "amlogic,meson-gxm-mali"
+
+- reg : Physical base address of the device and length of the register area.
+
+- interrupts : Contains the three IRQ lines required by Mali Midgard devices.
+
+- interrupt-names : Contains the names of IRQ resources in the order they were
+  provided in the interrupts property. Must contain: "job", "mmu", "gpu".
+
+
+Optional properties:
+
+- clocks : Phandle to clock for the Mali Midgard device.
+
+- mali-supply : Phandle to regulator for the Mali device. Refer to
+  Documentation/devicetree/bindings/regulator/regulator.txt for details.
+
+- operating-points : Refer to Documentation/devicetree/bindings/power/opp.txt
+  for details.
+
+
+Example for a Mali-T602:
+
+gpu at fc010000 {
+	compatible = "arm,mali-t60x", "arm,mali-midgard";
+	reg = <0xfc010000 0x4000>;
+	interrupts = <0 36 4>, <0 37 4>, <0 38 4>;
+	interrupt-names = "job", "mmu", "gpu";
+	clocks = <&pclk_mali>;
+	mali-supply = <&vdd_mali>;
+	operating-points = <
+		/* KHz   uV */
+		533000 1250000,
+		450000 1150000,
+		400000 1125000,
+		350000 1075000,
+		266000 1025000,
+		160000  925000,
+		100000  912500,
+	>;
+};
Signature · 1 line
2.11.0
#4 lore raw

PATCH v3 2/5 ARM: dts: rockchip: add ARM Mali GPU node for rk3288

In reply to Guillaume Tucker

Add Mali GPU device tree node for the rk3288 SoC, with devfreq opp table.

---
 arch/arm/boot/dts/rk3288.dtsi | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
arch/arm/boot/dts/rk3288.dtsi +22 -0
index df8a0dbe9d91..187eed528f83 100644
@@ -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>
@@ -227,6 +228,27 @@
 		ports = <&vopl_out>, <&vopb_out>;
 	};
 
+	gpu: mali at ffa30000 {
+		compatible = "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 = <
+			/* KHz uV */
+			100000 950000
+			200000 950000
+			300000 1000000
+			400000 1100000
+			500000 1200000
+			600000 1250000
+		>;
+		power-domains = <&power RK3288_PD_GPU>;
+		status = "disabled";
+	};
+
 	sdmmc: dwmmc at ff0c0000 {
 		compatible = "rockchip,rk3288-dw-mshc";
 		max-frequency = <150000000>;
Signature · 1 line
2.11.0
#8 lore raw

PATCH v3 3/5 ARM: dts: rockchip: enable ARM Mali GPU on rk3288-rock2-som

In reply to Guillaume Tucker

Add reference to the Mali GPU device tree node on the rk3288-rock2-som platform. Tested on a Radxa Rock2 Square board.

---
 arch/arm/boot/dts/rk3288-rock2-som.dtsi | 5 +++++
 1 file changed, 5 insertions(+)
arch/arm/boot/dts/rk3288-rock2-som.dtsi +5 -0
index 1c0bbc9b928b..f694867fa46a 100644
@@ -301,3 +301,8 @@
 &wdt {
 	status = "okay";
 };
+
+&gpu {
+	mali-supply = <&vdd_gpu>;
+	status = "okay";
+};
Signature · 1 line
2.11.0
#9 lore raw

PATCH v3 4/5 ARM: dts: rockchip: enable ARM Mali GPU on rk3288-firefly

In reply to Guillaume Tucker

Add reference to the Mali GPU device tree node on rk3288-firefly. Tested on Firefly board.

---
 arch/arm/boot/dts/rk3288-firefly.dtsi | 5 +++++
 1 file changed, 5 insertions(+)
arch/arm/boot/dts/rk3288-firefly.dtsi +5 -0
index 10793ac18599..f520589493b4 100644
@@ -594,3 +594,8 @@
 &wdt {
 	status = "okay";
 };
+
+&gpu {
+	mali-supply = <&vdd_gpu>;
+	status = "okay";
+};
Signature · 1 line
2.11.0
#10 lore raw

PATCH v3 5/5 ARM: dts: rockchip: enable ARM Mali GPU on rk3288-veyron

In reply to Guillaume Tucker

From: Enric Balletbo i Serra <[email protected]>

Add reference to the Mali GPU device tree node on rk3288-veyron. Tested on Minnie and Jerry boards.

---
 arch/arm/boot/dts/rk3288-veyron.dtsi | 5 +++++
 1 file changed, 5 insertions(+)
arch/arm/boot/dts/rk3288-veyron.dtsi +5 -0
index 5d1eb0a25827..9847d5c6db3b 100644
@@ -447,6 +447,11 @@
 	status = "okay";
 };
 
+&gpu {
+	mali-supply = <&vdd_gpu>;
+	status = "okay";
+};
+
 &wdt {
 	status = "okay";
 };
Signature · 1 line
2.11.0
maintainer
#5 lore raw

Re: [PATCH v3 2/5] ARM: dts: rockchip: add ARM Mali GPU node for rk3288

In reply to Guillaume Tucker

Am Mittwoch, 19. April 2017, 09:06:18 CEST schrieb Guillaume Tucker:

Quoted 22 lines

Add Mali GPU device tree node for the rk3288 SoC, with devfreq opp table.

---
 arch/arm/boot/dts/rk3288.dtsi | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
arch/arm/boot/dts/rk3288.dtsi +1 -0
index df8a0dbe9d91..187eed528f83 100644
@@ -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>

arch/arm/boot/dts/rk3288.dtsi line 231

Quoted 4 lines
arch/arm/boot/dts/rk3288.dtsi +1 -0
@@ -227,6 +228,27 @@
 		ports = <&vopl_out>, <&vopb_out>;
 	};
 
+	gpu: mali at ffa30000 {

please sort nodes by address. ffa30000 should be placed below hdmi at ff980000 and above qos at ffaa0000 .

arch/arm/boot/dts/rk3288.dtsi line 232

Quoted 1 line
arch/arm/boot/dts/rk3288.dtsi +1 -0
+		compatible = "arm,mali-t760", "arm,mali-midgard";

As indicated before I don't trust that a generic binding will work for everything, so I would feel safer if we had a "rockchip,rk3288-mali" in front for future purposes, making it a

		compatible = "rockchip,rk3288-mali", "arm,mali-t760", "arm,mali-midgard";
Quoted 5 lines
arch/arm/boot/dts/rk3288.dtsi +5 -0
+		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";

arch/arm/boot/dts/rk3288.dtsi line 247

Quoted 10 lines
arch/arm/boot/dts/rk3288.dtsi +10 -0
+		clocks = <&cru ACLK_GPU>;
+		operating-points = <
+			/* KHz uV */
+			100000 950000
+			200000 950000
+			300000 1000000
+			400000 1100000
+			500000 1200000
+			600000 1250000
+		>;

Wasn't there a wish for opp-v2 in a previous version?

Thanks
Heiko

Quoted 8 lines
arch/arm/boot/dts/rk3288.dtsi +4 -0
+		power-domains = <&power RK3288_PD_GPU>;
+		status = "disabled";
+	};
+
 	sdmmc: dwmmc at ff0c0000 {
 		compatible = "rockchip,rk3288-dw-mshc";
 		max-frequency = <150000000>;
maintainer
#2 lore raw

Re: [PATCH v3 1/5] dt-bindings: gpu: add bindings for the ARM Mali Midgard GPU

In reply to Guillaume Tucker

Am Mittwoch, 19. April 2017, 09:06:17 CEST schrieb Guillaume Tucker:

Quoted 53 lines

The ARM Mali Midgard GPU family is present in a number of SoCs from many different vendors such as Samsung Exynos and Rockchip.

Import the device tree bindings documentation from the r16p0 release of the Mali Midgard GPU kernel driver:

https://developer.arm.com/-/media/Files/downloads/mali-drivers/kernel/mali-midgard-gpu/TX011-SW-99002-r16p0-00rel0.tgz

The "compatible" property strings have been redesigned to explicitly list all the Mali Midgard GPU types and include optional vendor ones.

The "clock-names" property has been dropped as only one clock is used by the Mali Midgard driver which now needs to call clk_get with NULL.

The "interrupt-names" property values have been converted to
lower-case: "job", "mmu" and "gpu".

The following optional bindings have been omitted in this initial version as they are only used in very specific cases:

* snoop_enable_smc
* snoop_disable_smc
* jm_config
* power_model
* system-coherency
* ipa-model

The example has been simplified accordingly.

The copyright and GPL licence header has been removed as deemed not necessary.

---
 .../devicetree/bindings/gpu/arm,mali-midgard.txt   | 57 ++++++++++++++++++++++
 1 file changed, 57 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/gpu/arm,mali-midgard.txt
Documentation/devicetree/bindings/gpu/arm,mali-midgard.txt new file +7 -0
new file mode 100644
index 000000000000..917c4f8d178f
@@ -0,0 +1,57 @@
+ARM Mali Midgard GPU
+====================
+
+Required properties:
+
+- compatible :
+  * Must be one of the following:

Documentation/devicetree/bindings/gpu/arm,mali-midgard.txt line 17

Quoted 10 lines
Documentation/devicetree/bindings/gpu/arm,mali-midgard.txt new file +10 -0
+    + "arm,mali-t60x"
+    + "arm,mali-t62x"
+    + "arm,mali-t720"
+    + "arm,mali-t760"
+    + "arm,mali-t820"
+    + "arm,mali-t830"
+    + "arm,mali-t860"
+    + "arm,mali-t880"
+  * And, optionally, one of the vendor specific compatible:
+    + "amlogic,meson-gxm-mali"

Please add a "rockchip,rk3288-mali" as well :-) , as I don't trust that the generic compatible will be enough for all time and having that already defined makes fixing the per soc things later a lot easier.

Thanks
Heiko

Quoted 41 lines
Documentation/devicetree/bindings/gpu/arm,mali-midgard.txt new file +40 -0
+
+- reg : Physical base address of the device and length of the register area.
+
+- interrupts : Contains the three IRQ lines required by Mali Midgard devices.
+
+- interrupt-names : Contains the names of IRQ resources in the order they were
+  provided in the interrupts property. Must contain: "job", "mmu", "gpu".
+
+
+Optional properties:
+
+- clocks : Phandle to clock for the Mali Midgard device.
+
+- mali-supply : Phandle to regulator for the Mali device. Refer to
+  Documentation/devicetree/bindings/regulator/regulator.txt for details.
+
+- operating-points : Refer to Documentation/devicetree/bindings/power/opp.txt
+  for details.
+
+
+Example for a Mali-T602:
+
+gpu at fc010000 {
+	compatible = "arm,mali-t60x", "arm,mali-midgard";
+	reg = <0xfc010000 0x4000>;
+	interrupts = <0 36 4>, <0 37 4>, <0 38 4>;
+	interrupt-names = "job", "mmu", "gpu";
+	clocks = <&pclk_mali>;
+	mali-supply = <&vdd_mali>;
+	operating-points = <
+		/* KHz   uV */
+		533000 1250000,
+		450000 1150000,
+		400000 1125000,
+		350000 1075000,
+		266000 1025000,
+		160000  925000,
+		100000  912500,
+	>;
+};
#6 lore raw

Re: [PATCH v3 2/5] ARM: dts: rockchip: add ARM Mali GPU node for rk3288

In reply to Heiko Stuebner

Hi Heiko,

Quoted 26 lines · Heiko Stuebner

Am Mittwoch, 19. April 2017, 09:06:18 CEST schrieb Guillaume Tucker:

Quoted 25 lines

Add Mali GPU device tree node for the rk3288 SoC, with devfreq opp table.

---
 arch/arm/boot/dts/rk3288.dtsi | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
arch/arm/boot/dts/rk3288.dtsi +1 -0
index df8a0dbe9d91..187eed528f83 100644
@@ -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>
@@ -227,6 +228,27 @@
 		ports = <&vopl_out>, <&vopb_out>;
 	};
 
Quoted 4 lines

arch/arm/boot/dts/rk3288.dtsi line 231

Quoted 1 line
arch/arm/boot/dts/rk3288.dtsi +1 -0
+	gpu: mali at ffa30000 {

please sort nodes by address. ffa30000 should be placed below hdmi at ff980000 and above qos at ffaa0000 .

Sure, will fix that in v4.

Quoted 7 lines

arch/arm/boot/dts/rk3288.dtsi line 232

Quoted 1 line
arch/arm/boot/dts/rk3288.dtsi +1 -0
+		compatible = "arm,mali-t760", "arm,mali-midgard";

As indicated before I don't trust that a generic binding will work for everything, so I would feel safer if we had a "rockchip,rk3288-mali" in front for future purposes, making it a

		compatible = "rockchip,rk3288-mali", "arm,mali-t760", "arm,mali-midgard";

OK, sorry I overlooked this part. I'll add it in v4 with a vendor compatible string in the binding documentation.

Quoted 9 lines
Quoted 9 lines
arch/arm/boot/dts/rk3288.dtsi +9 -0
+		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 = <
+			/* KHz uV */
+			100000 950000
Quoted 8 lines

arch/arm/boot/dts/rk3288.dtsi line 247

Quoted 6 lines
arch/arm/boot/dts/rk3288.dtsi +6 -0
+			200000 950000
+			300000 1000000
+			400000 1100000
+			500000 1200000
+			600000 1250000
+		>;

Wasn't there a wish for opp-v2 in a previous version?

Well it wasn't entirely clear to me in Rob's email whether it was necessary to use opp-v2 now or rather if it would be a potential option whenever opp-v2 was needed. If operating-points (v1) are being deprecated then I can change that in my next patch v4. Using operating-points-v2 with the Mali driver works as far as I can tell on rk3288 so that's not an issue.

Thanks,
Guillaume

#3 lore raw

Re: [PATCH v3 1/5] dt-bindings: gpu: add bindings for the ARM Mali Midgard GPU

In reply to Heiko Stuebner

Hi Heiko,

Quoted 20 lines · Heiko Stuebner

Am Mittwoch, 19. April 2017, 09:06:17 CEST schrieb Guillaume Tucker:

Quoted 19 lines
Documentation/devicetree/bindings/gpu/arm,mali-midgard.txt new file +13 -0
new file mode 100644
index 000000000000..917c4f8d178f
@@ -0,0 +1,57 @@
+ARM Mali Midgard GPU
+====================
+
+Required properties:
+
+- compatible :
+  * Must be one of the following:
+    + "arm,mali-t60x"
+    + "arm,mali-t62x"
+    + "arm,mali-t720"
+    + "arm,mali-t760"
+    + "arm,mali-t820"
+    + "arm,mali-t830"
Quoted 8 lines

Documentation/devicetree/bindings/gpu/arm,mali-midgard.txt line 17

Quoted 4 lines
Documentation/devicetree/bindings/gpu/arm,mali-midgard.txt new file +4 -0
+    + "arm,mali-t860"
+    + "arm,mali-t880"
+  * And, optionally, one of the vendor specific compatible:
+    + "amlogic,meson-gxm-mali"

Please add a "rockchip,rk3288-mali" as well :-) , as I don't trust that the generic compatible will be enough for all time and having that already defined makes fixing the per soc things later a lot easier.

Sure, will do in patch v4.

Quoted 10 lines
Quoted 10 lines
Documentation/devicetree/bindings/gpu/arm,mali-midgard.txt new file +10 -0
+
+- reg : Physical base address of the device and length of the register area.
+
+- interrupts : Contains the three IRQ lines required by Mali Midgard devices.
+
+- interrupt-names : Contains the names of IRQ resources in the order they were
+  provided in the interrupts property. Must contain: "job", "mmu", "gpu".
+
+
+Optional properties:
Quoted 8 lines

Documentation/devicetree/bindings/gpu/arm,mali-midgard.txt line 35

Quoted 8 lines
Documentation/devicetree/bindings/gpu/arm,mali-midgard.txt new file +8 -0
+
+- clocks : Phandle to clock for the Mali Midgard device.
+
+- mali-supply : Phandle to regulator for the Mali device. Refer to
+  Documentation/devicetree/bindings/regulator/regulator.txt for details.
+
+- operating-points : Refer to Documentation/devicetree/bindings/power/opp.txt
+  for details.

So I can simply change that to operating-points-v2. Both versions can be used in practice but it sounds like operating-points can just be ignored in this binding's documentation. Could you please confirm?

Thanks,
Guillaume

maintainer
#7 lore raw

Re: [PATCH v3 2/5] ARM: dts: rockchip: add ARM Mali GPU node for rk3288

In reply to Guillaume Tucker

Hi Guillaume,

Am Donnerstag, 20. April 2017, 06:44:56 CEST schrieb Guillaume Tucker:

Quoted 40 lines · Heiko Stuebner
Quoted 26 lines

Am Mittwoch, 19. April 2017, 09:06:18 CEST schrieb Guillaume Tucker:

Quoted 25 lines

Add Mali GPU device tree node for the rk3288 SoC, with devfreq opp table.

---
 arch/arm/boot/dts/rk3288.dtsi | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
arch/arm/boot/dts/rk3288.dtsi +1 -0
index df8a0dbe9d91..187eed528f83 100644
@@ -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>
@@ -227,6 +228,27 @@
 		ports = <&vopl_out>, <&vopb_out>;
 	};
 
Quoted 4 lines

arch/arm/boot/dts/rk3288.dtsi line 231

Quoted 1 line
arch/arm/boot/dts/rk3288.dtsi +1 -0
+	gpu: mali at ffa30000 {

please sort nodes by address. ffa30000 should be placed below hdmi at ff980000 and above qos at ffaa0000 .

Sure, will fix that in v4.

Quoted 6 lines

arch/arm/boot/dts/rk3288.dtsi line 232

Quoted 1 line
arch/arm/boot/dts/rk3288.dtsi +1 -0
+		compatible = "arm,mali-t760", "arm,mali-midgard";

As indicated before I don't trust that a generic binding will work for everything, so I would feel safer if we had a "rockchip,rk3288-mali" in front for future purposes, making it a

Quoted 4 lines
Quoted 1 line
		compatible = "rockchip,rk3288-mali", "arm,mali-t760", "arm,mali-midgard";

OK, sorry I overlooked this part. I'll add it in v4 with a vendor compatible string in the binding documentation.

great, thanks :-)

Quoted 19 lines
Quoted 10 lines
Quoted 10 lines
arch/arm/boot/dts/rk3288.dtsi +9 -0
+		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 = <
+			/* KHz uV */
+			100000 950000
Quoted 8 lines

arch/arm/boot/dts/rk3288.dtsi line 247

Quoted 6 lines
arch/arm/boot/dts/rk3288.dtsi +6 -0
+			200000 950000
+			300000 1000000
+			400000 1100000
+			500000 1200000
+			600000 1250000
+		>;

Wasn't there a wish for opp-v2 in a previous version?

Quoted 6 lines

Well it wasn't entirely clear to me in Rob's email whether it was necessary to use opp-v2 now or rather if it would be a potential option whenever opp-v2 was needed. If operating-points (v1) are being deprecated then I can change that in my next patch v4. Using operating-points-v2 with the Mali driver works as far as I can tell on rk3288 so that's not an issue.

I don't care to much either way, just remembered it being mentioned in the previous version. So lets see what Rob says.

Heiko