* [PATCH] ARM: dts: sun8i-h3: add opp table for mali gpu
@ 2020-03-28 9:16 Qiang Yu
2020-03-30 17:53 ` Maxime Ripard
0 siblings, 1 reply; 2+ messages in thread
From: Qiang Yu @ 2020-03-28 9:16 UTC (permalink / raw)
To: devicetree, linux-sunxi
Cc: Mark Rutland, lima, Maxime Ripard, Chen-Yu Tsai, Rob Herring,
Qiang Yu, linux-arm-kernel, Icenowy Zheng
OPP table vaule is get from orangepi lichee linux-3.4
kernel driver.
Signed-off-by: Qiang Yu <yuq825@gmail.com>
---
arch/arm/boot/dts/sun8i-h3.dtsi | 20 ++++++++++++++++++--
1 file changed, 18 insertions(+), 2 deletions(-)
diff --git a/arch/arm/boot/dts/sun8i-h3.dtsi b/arch/arm/boot/dts/sun8i-h3.dtsi
index 20217e2ca4d3..53ef9a18e953 100644
--- a/arch/arm/boot/dts/sun8i-h3.dtsi
+++ b/arch/arm/boot/dts/sun8i-h3.dtsi
@@ -128,6 +128,23 @@
<GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
};
+ gpu_opp_table: gpu-opp-table {
+ compatible = "operating-points-v2";
+
+ opp-120000000 {
+ opp-hz = /bits/ 64 <120000000>;
+ };
+ opp-312000000 {
+ opp-hz = /bits/ 64 <312000000>;
+ };
+ opp-432000000 {
+ opp-hz = /bits/ 64 <432000000>;
+ };
+ opp-576000000 {
+ opp-hz = /bits/ 64 <576000000>;
+ };
+ };
+
soc {
deinterlace: deinterlace@1400000 {
compatible = "allwinner,sun8i-h3-deinterlace";
@@ -205,8 +222,7 @@
clock-names = "bus", "core";
resets = <&ccu RST_BUS_GPU>;
- assigned-clocks = <&ccu CLK_GPU>;
- assigned-clock-rates = <384000000>;
+ operating-points-v2 = <&gpu_opp_table>;
};
ths: thermal-sensor@1c25000 {
--
2.17.1
_______________________________________________
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] 2+ messages in thread
* Re: [PATCH] ARM: dts: sun8i-h3: add opp table for mali gpu
2020-03-28 9:16 [PATCH] ARM: dts: sun8i-h3: add opp table for mali gpu Qiang Yu
@ 2020-03-30 17:53 ` Maxime Ripard
0 siblings, 0 replies; 2+ messages in thread
From: Maxime Ripard @ 2020-03-30 17:53 UTC (permalink / raw)
To: Qiang Yu
Cc: Mark Rutland, devicetree, lima, Chen-Yu Tsai, linux-sunxi,
Rob Herring, linux-arm-kernel, Icenowy Zheng
[-- Attachment #1.1: Type: text/plain, Size: 352 bytes --]
Hi,
On Sat, Mar 28, 2020 at 05:16:32PM +0800, Qiang Yu wrote:
> OPP table vaule is get from orangepi lichee linux-3.4
> kernel driver.
>
> Signed-off-by: Qiang Yu <yuq825@gmail.com>
Thanks!
I've fixed up the value typo, sorted the opp table according to its
node name, and added some new lines after each OPP node. This will be
part of 5.8.
Maxime
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
[-- Attachment #2: Type: text/plain, Size: 176 bytes --]
_______________________________________________
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] 2+ messages in thread
end of thread, other threads:[~2020-03-30 17:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-28 9:16 [PATCH] ARM: dts: sun8i-h3: add opp table for mali gpu Qiang Yu
2020-03-30 17:53 ` Maxime Ripard
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).