forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/Documentation/devicetree/bindings/arm/mali-bifrost.txt
....@@ -1,6 +1,6 @@
11 # SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note
22 #
3
-# (C) COPYRIGHT 2013-2021 ARM Limited. All rights reserved.
3
+# (C) COPYRIGHT 2013-2022 ARM Limited. All rights reserved.
44 #
55 # This program is free software and is provided to you under the terms of the
66 # GNU General Public License version 2 as published by the Free Software
....@@ -41,8 +41,7 @@
4141 - mali-supply : Phandle to the top level regulator for the Mali device.
4242 Refer to
4343 Documentation/devicetree/bindings/regulator/regulator.txt for details.
44
-- shadercores-supply : Phandle to shader cores regulator for the Mali device.
45
- This is optional.
44
+- mem-supply : Phandle to memory regulator for the Mali device. This is optional.
4645 - operating-points-v2 : Refer to Documentation/devicetree/bindings/power/mali-opp.txt
4746 for details.
4847 - quirks_gpu : Used to write to the JM_CONFIG or CSF_CONFIG register.
....@@ -114,6 +113,9 @@
114113 Valid values are between 0 to 0x3F (including).
115114 - l2-size : Override L2 cache size on GPU that supports it
116115 - l2-hash : Override L2 hash function on GPU that supports it
116
+- l2-hash-values : Override L2 hash function using provided hash values, on GPUs that supports it.
117
+ It is mutually exclusive with 'l2-hash'. Only one or the other must be
118
+ used in a supported GPU.
117119 - arbiter_if : Phandle to the arbif platform device, used to provide KBASE with an interface
118120 to the Arbiter. This is required when using arbitration; setting to a non-NULL
119121 value will enable arbitration.
....@@ -123,10 +125,11 @@
123125 - #cooling-cells
124126 - operating-points-v2 (no dvfs in kbase with arbitration)
125127 - system-coherency with a value of 1 (no full coherency with arbitration)
128
+- int_id_override: list of <ID Setting[7:0]> tuples defining the IDs needed to be
129
+ set and the setting coresponding to the SYSC_ALLOC register.
126130
127131
128
-
129
-Example for a Mali GPU with 1 clock and no regulators:
132
+Example for a Mali GPU with 1 clock and 1 regulator:
130133
131134 gpu@0xfc010000 {
132135 compatible = "arm,malit602", "arm,malit60x", "arm,malit6xx", "arm,mali-midgard";
....@@ -152,7 +155,7 @@
152155
153156 idvs-group-size = <0x7>;
154157 l2-size = /bits/ 8 <0x10>;
155
- l2-hash = /bits/ 8 <0x04>;
158
+ l2-hash = /bits/ 8 <0x04>; /* or l2-hash-values = <0x12345678 0x8765 0xAB>; */
156159 };
157160
158161 gpu_opp_table: opp_table0 {
....@@ -198,7 +201,7 @@
198201 clocks = <&clk_mali 0>, <&clk_mali 1>;
199202 clock-names = "clk_mali", "shadercores";
200203 mali-supply = <&supply0_3v3>;
201
- shadercores-supply = <&supply1_3v3>;
204
+ mem-supply = <&supply1_3v3>;
202205 system-coherency = <31>;
203206 operating-points-v2 = <&gpu_opp_table>;
204207 };
....@@ -225,3 +228,14 @@
225228 opp-core-mask = /bits/ 64 <0x3>;
226229 };
227230 };
231
+
232
+Example for a Mali GPU supporting PBHA configuration via DTB (default):
233
+
234
+gpu@0xfc010000 {
235
+ ...
236
+ pbha {
237
+ int_id_override = <2 0x32>, <9 0x05>, <16 0x32>;
238
+ propagate_bits = <0x03>;
239
+ };
240
+ ...
241
+};