Skip to content

Commit 2568b8b

Browse files
Nicolas Frattarolibbrezillon
authored andcommitted
dt-bindings: gpu: mali-valhall-csf: Add shader-present nvmem cell
On the MediaTek MT8196 SoC, the bitmask for which shader cores are present and functional is not the one in the Mali GPU's registers, but in an external efuse. Add the nvmem cell properties to describe such a setup, and make them required on MT8196. Reviewed-by: Rob Herring (Arm) <robh@kernel.org> Signed-off-by: Nicolas Frattaroli <nicolas.frattaroli@collabora.com> Link: https://patch.msgid.link/20251220-mt8196-shader-present-v2-1-45b1ff1dfab0@collabora.com Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
1 parent 1f61d73 commit 2568b8b

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

Documentation/devicetree/bindings/gpu/arm,mali-valhall-csf.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,14 @@ properties:
5151
- stacks
5252
- const: stacks
5353

54+
nvmem-cells:
55+
items:
56+
- description: bitmask of functional shader cores
57+
58+
nvmem-cell-names:
59+
items:
60+
- const: shader-present
61+
5462
mali-supply: true
5563

5664
operating-points-v2: true
@@ -108,6 +116,8 @@ allOf:
108116
properties:
109117
clocks:
110118
minItems: 3
119+
nvmem-cells: false
120+
nvmem-cell-names: false
111121
power-domains:
112122
maxItems: 1
113123
power-domain-names: false
@@ -133,6 +143,8 @@ allOf:
133143
- const: core
134144
- const: stacks
135145
required:
146+
- nvmem-cells
147+
- nvmem-cell-names
136148
- power-domains
137149

138150
examples:
@@ -179,6 +191,8 @@ examples:
179191
<GIC_SPI 605 IRQ_TYPE_LEVEL_HIGH 0>,
180192
<GIC_SPI 604 IRQ_TYPE_LEVEL_HIGH 0>;
181193
interrupt-names = "job", "mmu", "gpu";
194+
nvmem-cells = <&shader_present>;
195+
nvmem-cell-names = "shader-present";
182196
power-domains = <&gpufreq>;
183197
};
184198

0 commit comments

Comments
 (0)