* [PATCH 1/3] dt-bindings: gpu: mali-bifrost: Add Rockchip PX30
@ 2019-12-08 14:55 Heiko Stuebner
2019-12-08 14:55 ` [PATCH 2/3] arm64: dts: rockchip: add the gpu for px30 Heiko Stuebner
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Heiko Stuebner @ 2019-12-08 14:55 UTC (permalink / raw)
To: linux-rockchip
Cc: mark.rutland, devicetree, heiko, Heiko Stuebner, linux-kernel,
robh+dt, linux-arm-kernel, christoph.muellner
From: Heiko Stuebner <heiko.stuebner@theobroma-systems.com>
Define a compatible string for the Mali Bifrost GPU found in
Rockchip's PX30 SoCs.
Signed-off-by: Heiko Stuebner <heiko.stuebner@theobroma-systems.com>
---
Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml b/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml
index 0c426e371e71..4ea6a8789699 100644
--- a/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml
+++ b/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml
@@ -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:
--
2.24.0
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/3] arm64: dts: rockchip: add the gpu for px30
2019-12-08 14:55 [PATCH 1/3] dt-bindings: gpu: mali-bifrost: Add Rockchip PX30 Heiko Stuebner
@ 2019-12-08 14:55 ` Heiko Stuebner
2019-12-08 14:55 ` [PATCH 3/3] arm64: dts: rockchip: enable the gpu on px30-evb Heiko Stuebner
2019-12-16 9:35 ` [PATCH 1/3] dt-bindings: gpu: mali-bifrost: Add Rockchip PX30 Heiko Stuebner
2 siblings, 0 replies; 4+ messages in thread
From: Heiko Stuebner @ 2019-12-08 14:55 UTC (permalink / raw)
To: linux-rockchip
Cc: mark.rutland, devicetree, heiko, Heiko Stuebner, linux-kernel,
robh+dt, linux-arm-kernel, christoph.muellner
From: Heiko Stuebner <heiko.stuebner@theobroma-systems.com>
The px30 contains a Mali Bifrost gpu, so add the necessary core node
for it with interrupts and powerdomains.
Signed-off-by: Heiko Stuebner <heiko.stuebner@theobroma-systems.com>
---
arch/arm64/boot/dts/rockchip/px30.dtsi | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/arch/arm64/boot/dts/rockchip/px30.dtsi b/arch/arm64/boot/dts/rockchip/px30.dtsi
index 9a0f77ea4a78..c31423f36192 100644
--- a/arch/arm64/boot/dts/rockchip/px30.dtsi
+++ b/arch/arm64/boot/dts/rockchip/px30.dtsi
@@ -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>;
--
2.24.0
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 3/3] arm64: dts: rockchip: enable the gpu on px30-evb
2019-12-08 14:55 [PATCH 1/3] dt-bindings: gpu: mali-bifrost: Add Rockchip PX30 Heiko Stuebner
2019-12-08 14:55 ` [PATCH 2/3] arm64: dts: rockchip: add the gpu for px30 Heiko Stuebner
@ 2019-12-08 14:55 ` Heiko Stuebner
2019-12-16 9:35 ` [PATCH 1/3] dt-bindings: gpu: mali-bifrost: Add Rockchip PX30 Heiko Stuebner
2 siblings, 0 replies; 4+ messages in thread
From: Heiko Stuebner @ 2019-12-08 14:55 UTC (permalink / raw)
To: linux-rockchip
Cc: mark.rutland, devicetree, heiko, Heiko Stuebner, linux-kernel,
robh+dt, linux-arm-kernel, christoph.muellner
From: Heiko Stuebner <heiko.stuebner@theobroma-systems.com>
The px30 has a Mali Bifrost gpu, so enable it on the evb board
and connect it with its supplying regulator.
Signed-off-by: Heiko Stuebner <heiko.stuebner@theobroma-systems.com>
---
arch/arm64/boot/dts/rockchip/px30-evb.dts | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/arch/arm64/boot/dts/rockchip/px30-evb.dts b/arch/arm64/boot/dts/rockchip/px30-evb.dts
index f2fcca21c04d..180995a590c1 100644
--- a/arch/arm64/boot/dts/rockchip/px30-evb.dts
+++ b/arch/arm64/boot/dts/rockchip/px30-evb.dts
@@ -132,6 +132,11 @@ &gmac {
status = "okay";
};
+&gpu {
+ mali-supply = <&vdd_log>;
+ status = "okay";
+};
+
&i2c0 {
status = "okay";
--
2.24.0
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/3] dt-bindings: gpu: mali-bifrost: Add Rockchip PX30
2019-12-08 14:55 [PATCH 1/3] dt-bindings: gpu: mali-bifrost: Add Rockchip PX30 Heiko Stuebner
2019-12-08 14:55 ` [PATCH 2/3] arm64: dts: rockchip: add the gpu for px30 Heiko Stuebner
2019-12-08 14:55 ` [PATCH 3/3] arm64: dts: rockchip: enable the gpu on px30-evb Heiko Stuebner
@ 2019-12-16 9:35 ` Heiko Stuebner
2 siblings, 0 replies; 4+ messages in thread
From: Heiko Stuebner @ 2019-12-16 9:35 UTC (permalink / raw)
To: linux-rockchip
Cc: mark.rutland, devicetree, linux-kernel, robh+dt,
linux-arm-kernel, christoph.muellner
Am Sonntag, 8. Dezember 2019, 15:55:06 CET schrieb Heiko Stuebner:
> From: Heiko Stuebner <heiko.stuebner@theobroma-systems.com>
>
> Define a compatible string for the Mali Bifrost GPU found in
> Rockchip's PX30 SoCs.
>
> Signed-off-by: Heiko Stuebner <heiko.stuebner@theobroma-systems.com>
applied all 3 for 5.6
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-12-16 9:35 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-08 14:55 [PATCH 1/3] dt-bindings: gpu: mali-bifrost: Add Rockchip PX30 Heiko Stuebner
2019-12-08 14:55 ` [PATCH 2/3] arm64: dts: rockchip: add the gpu for px30 Heiko Stuebner
2019-12-08 14:55 ` [PATCH 3/3] arm64: dts: rockchip: enable the gpu on px30-evb Heiko Stuebner
2019-12-16 9:35 ` [PATCH 1/3] dt-bindings: gpu: mali-bifrost: Add Rockchip PX30 Heiko Stuebner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).