Skip to contentSkip to conversation

dt-bindings: gpu: mali-bifrost: Add Rockchip PX30

PATCH In review Heiko Stuebner 1 participant 4 messages Dec 8, 2019 – Dec 16, 2019

Subsystems (4)
lore
Share & tools
lore

Heiko Stuebner

author maintainer
#0 lore raw

PATCH 1/3 dt-bindings: gpu: mali-bifrost: Add Rockchip PX30

From: Heiko Stuebner <[email protected]>

Define a compatible string for the Mali Bifrost GPU found in Rockchip's PX30 SoCs.

---
 Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml +1 -0
index 0c426e371e71..4ea6a8789699 100644
@@ -18,6 +18,7 @@ properties:
       - enum:
           - amlogic,meson-g12a-mali
           - realtek,rtd1619-mali
+          - rockchip,px30-mali
       - const: arm,mali-bifrost # Mali Bifrost GPU model/revision is fully discoverable
 
   reg:
Signature · 1 line
2.24.0
author maintainer
#1 lore raw

PATCH 2/3 arm64: dts: rockchip: add the gpu for px30

From: Heiko Stuebner <[email protected]>

The px30 contains a Mali Bifrost gpu, so add the necessary core node for it with interrupts and powerdomains.

---
 arch/arm64/boot/dts/rockchip/px30.dtsi | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
arch/arm64/boot/dts/rockchip/px30.dtsi +19 -0
index 9a0f77ea4a78..c31423f36192 100644
@@ -210,6 +210,12 @@ map0 {
 					cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
 					contribution = <4096>;
 				};
+
+				map1 {
+					trip = <&target>;
+					cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
+					contribution = <4096>;
+				};
 			};
 		};
 
@@ -924,6 +930,19 @@ emmc: dwmmc@ff390000 {
 		status = "disabled";
 	};
 
+	gpu: gpu@ff400000 {
+		compatible = "rockchip,px30-mali", "arm,mali-bifrost";
+		reg = <0x0 0xff400000 0x0 0x4000>;
+		interrupts = <GIC_SPI 47 IRQ_TYPE_LEVEL_HIGH>,
+			     <GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH>,
+			     <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
+		interrupt-names = "job", "mmu", "gpu";
+		clocks = <&cru SCLK_GPU>;
+		#cooling-cells = <2>;
+		power-domains = <&power PX30_PD_GPU>;
+		status = "disabled";
+	};
+
 	vopb: vop@ff460000 {
 		compatible = "rockchip,px30-vop-big";
 		reg = <0x0 0xff460000 0x0 0xefc>;
Signature · 1 line
2.24.0
author maintainer
#2 lore raw

PATCH 3/3 arm64: dts: rockchip: enable the gpu on px30-evb

In reply to Heiko Stuebner

From: Heiko Stuebner <[email protected]>

The px30 has a Mali Bifrost gpu, so enable it on the evb board and connect it with its supplying regulator.

---
 arch/arm64/boot/dts/rockchip/px30-evb.dts | 5 +++++
 1 file changed, 5 insertions(+)
arch/arm64/boot/dts/rockchip/px30-evb.dts +5 -0
index f2fcca21c04d..180995a590c1 100644
@@ -132,6 +132,11 @@ &gmac {
 	status = "okay";
 };
 
+&gpu {
+	mali-supply = <&vdd_log>;
+	status = "okay";
+};
+
 &i2c0 {
 	status = "okay";
 
Signature · 1 line
2.24.0