Skip to contentSkip to conversation

dt-bindings: gpu: drop wrong compatible from midgard binding example

PATCH New Heiko Stuebner 3 participants 8 messages Jul 10, 2017 – Jul 13, 2017

Subsystems (4)
lore
Share & tools
lore

Heiko Stuebner

author maintainer
#0 lore raw

PATCH 1/2 dt-bindings: gpu: drop wrong compatible from midgard binding example

The binding rightfully only specifies compatibles for actual implementations and not for the whole family. In the example an arm,mali-midgard slipped through from downstream devicetrees though. So drop that to not confuse people reading (or copying) that example.

---
 Documentation/devicetree/bindings/gpu/arm,mali-midgard.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/devicetree/bindings/gpu/arm,mali-midgard.txt +1 -1
index d3b6e1a4713a..5aa5926029ee 100644
@@ -40,7 +40,7 @@ Optional properties:
 Example for a Mali-T760:
 
 gpu at ffa30000 {
-	compatible = "rockchip,rk3288-mali", "arm,mali-t760", "arm,mali-midgard";
+	compatible = "rockchip,rk3288-mali", "arm,mali-t760";
 	reg = <0xffa30000 0x10000>;
 	interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>,
 		     <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>,
Signature · 1 line
2.11.0
author maintainer Applied
#1 lore raw

PATCH 1/2 dt-bindings: gpu: drop wrong compatible from midgard binding example

Am Montag, 10. Juli 2017, 14:12:26 CEST schrieb Heiko Stuebner:

Quoted 6 lines

The binding rightfully only specifies compatibles for actual implementations and not for the whole family. In the example an arm,mali-midgard slipped through from downstream devicetrees though. So drop that to not confuse people reading (or copying) that example.

applied as fix for 4.13 with Robs Ack

maintainer
#2 lore raw

PATCH 1/2 dt-bindings: gpu: drop wrong compatible from midgard binding example

In reply to Heiko Stuebner
Quoted 9 lines · Heiko Stuebner

The binding rightfully only specifies compatibles for actual implementations and not for the whole family. In the example an arm,mali-midgard slipped through from downstream devicetrees though. So drop that to not confuse people reading (or copying) that example.

---
 Documentation/devicetree/bindings/gpu/arm,mali-midgard.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

I'm assuming this will go thru same route arm,mali-midgard.txt got added.

Rob

author maintainer
#3 lore raw

PATCH 2/2 ARM: dts: rockchip: remove arm, mali-midgard compatible from rk3288

In reply to Heiko Stuebner

The binding specifies the actual implementations only (mali-t760 for example) but not the arm,mali-midgard used in some vendor kernels. So drop that compatible property from the rk3288 where it had slipped in.

---
 arch/arm/boot/dts/rk3288.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/rk3288.dtsi +1 -1
index cb1d415d1201..e99d7ff4c939 100644
@@ -1135,7 +1135,7 @@
 	};
 
 	gpu: mali at ffa30000 {
-		compatible = "rockchip,rk3288-mali", "arm,mali-t760", "arm,mali-midgard";
+		compatible = "rockchip,rk3288-mali", "arm,mali-t760";
 		reg = <0xffa30000 0x10000>;
 		interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>,
 			     <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>,
Signature · 1 line
2.11.0
maintainer
#4 lore raw

PATCH 2/2 ARM: dts: rockchip: remove arm,mali-midgard compatible from rk3288

Quoted 14 lines · Heiko Stuebner

The binding specifies the actual implementations only (mali-t760 for example) but not the arm,mali-midgard used in some vendor kernels. So drop that compatible property from the rk3288 where it had slipped in.

---
 arch/arm/boot/dts/rk3288.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/rk3288.dtsi +0 -0
index cb1d415d1201..e99d7ff4c939 100644

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

Quoted 3 lines
arch/arm/boot/dts/rk3288.dtsi +0 -0
@@ -1135,7 +1135,7 @@
 	};
 
 	gpu: mali at ffa30000 {

This should also be gpu at ..., not mali.

Quoted 8 lines
arch/arm/boot/dts/rk3288.dtsi +1 -1
-		compatible = "rockchip,rk3288-mali", "arm,mali-t760", "arm,mali-midgard";
+		compatible = "rockchip,rk3288-mali", "arm,mali-t760";
 		reg = <0xffa30000 0x10000>;
 		interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>,
 			     <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>,
Signature · 1 line
2.11.0
#5 lore raw

PATCH 2/2 ARM: dts: rockchip: remove arm, mali-midgard compatible from rk3288

In reply to Heiko Stuebner

Heiko,

? 2017?07?10? 20:12, Heiko Stuebner ??:

Quoted 14 lines

The binding specifies the actual implementations only (mali-t760 for example) but not the arm,mali-midgard used in some vendor kernels. So drop that compatible property from the rk3288 where it had slipped in.

---
  arch/arm/boot/dts/rk3288.dtsi | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/rk3288.dtsi +0 -0
index cb1d415d1201..e99d7ff4c939 100644

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

Quoted 5 lines
arch/arm/boot/dts/rk3288.dtsi +1 -1
@@ -1135,7 +1135,7 @@
  	};
 
  	gpu: mali at ffa30000 {
-		compatible = "rockchip,rk3288-mali", "arm,mali-t760", "arm,mali-midgard";
+		compatible = "rockchip,rk3288-mali", "arm,mali-t760";

If we remove the "arm,mali-midgard", the mali driver maybe need update first.

From the lastest MALI driver on ARM supply, the compatible only two
property.
mali_kbase_core_linux.c
4163: { .compatible = "arm,malit6xx" },
4164: { .compatible = "arm,mali-midgard" },

That's odd with the two compatible, the driver should support the more.

-Caesar

Quoted 3 lines
arch/arm/boot/dts/rk3288.dtsi +0 -0
  		reg = <0xffa30000 0x10000>;
  		interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>,
  			     <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>,
author maintainer
#6 lore raw

PATCH 2/2 ARM: dts: rockchip: remove arm, mali-midgard compatible from rk3288

Hi Caesar,

Am Dienstag, 11. Juli 2017, 16:04:38 CEST schrieb Caesar Wang:

Quoted 26 lines

Heiko,

? 2017?07?10? 20:12, Heiko Stuebner ??:

Quoted 14 lines

The binding specifies the actual implementations only (mali-t760 for example) but not the arm,mali-midgard used in some vendor kernels. So drop that compatible property from the rk3288 where it had slipped in.

---
  arch/arm/boot/dts/rk3288.dtsi | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/rk3288.dtsi +0 -0
index cb1d415d1201..e99d7ff4c939 100644

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

Quoted 5 lines
arch/arm/boot/dts/rk3288.dtsi +1 -1
@@ -1135,7 +1135,7 @@
  	};
 
  	gpu: mali at ffa30000 {
-		compatible = "rockchip,rk3288-mali", "arm,mali-t760", "arm,mali-midgard";
+		compatible = "rockchip,rk3288-mali", "arm,mali-t760";

If we remove the "arm,mali-midgard", the mali driver maybe need update first.

Quoted 7 lines

From the lastest MALI driver on ARM supply, the compatible only two
property.
mali_kbase_core_linux.c
4163: { .compatible = "arm,malit6xx" },
4164: { .compatible = "arm,mali-midgard" },

That's odd with the two compatible, the driver should support the more.

Correct, the driver should be updated anyway. In general the official dt-binding (the one in the linux kernel) should be followed, not the random out-of-tree one distributed by vendor drivers :-) .

If you look for example at utgard (mali400 for example), the sane binding used in the kernel, differs a lot from the binding used by the vendor-driver as well (io-areas, irq-names etc).

In any case, as you use the mali vendor-driver with you vendor-tree, it should be possible to do both in sync (dt-change from mainline; driver change to use better compatibles).

Heiko

author maintainer Applied
#7 lore raw

PATCH 2/2 ARM: dts: rockchip: remove arm, mali-midgard compatible from rk3288

In reply to Heiko Stuebner

Am Montag, 10. Juli 2017, 14:12:27 CEST schrieb Heiko Stuebner:

Quoted 5 lines

The binding specifies the actual implementations only (mali-t760 for example) but not the arm,mali-midgard used in some vendor kernels. So drop that compatible property from the rk3288 where it had slipped in.

applied as fix for 4.13 after also fixing the node name to gpu at ... as spotted by Rob.