Describe the Mali CSF GPU on CIX Sky1. It uses core and stacks clocks, an external reset and a GPU power domain.
Add the compatible string, resource requirements and an example. Require the system-cache allocation policies needed by the Sky1 integration. Signed-off-by: Cunyuan Liu <[email protected]> --- .../bindings/gpu/arm,mali-valhall-csf.yaml | 55 +++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/Documentation/devicetree/bindings/gpu/arm,mali-valhall-csf.yaml b/Documentation/devicetree/bindings/gpu/arm,mali-valhall-csf.yaml index 4d50427edd87..0c558fc6c779 100644 --- a/Documentation/devicetree/bindings/gpu/arm,mali-valhall-csf.yaml +++ b/Documentation/devicetree/bindings/gpu/arm,mali-valhall-csf.yaml @@ -18,6 +18,7 @@ properties: oneOf: - items: - enum: + - cix,sky1-mali - mediatek,mt8196-mali - nxp,imx95-mali # G310 - rockchip,rk3588-mali @@ -51,6 +52,9 @@ properties: - stacks - const: stacks + resets: + maxItems: 1 + nvmem-cells: items: - description: bitmask of functional shader cores @@ -170,6 +174,35 @@ allOf: - nvmem-cells - nvmem-cell-names - power-domains + - if: + properties: + compatible: + contains: + const: cix,sky1-mali + then: + properties: + clocks: + minItems: 2 + maxItems: 2 + clock-names: + items: + - const: core + - const: stacks + power-domains: + maxItems: 1 + power-domain-names: false + mali-supply: false + sram-supply: false + nvmem-cells: false + nvmem-cell-names: false + required: + - clock-names + - resets + - power-domains + - arm,sysc-alloc + else: + properties: + resets: false examples: - | @@ -220,4 +253,26 @@ examples: power-domains = <&gpufreq>; }; + - | + #include <dt-bindings/clock/cix,sky1.h> + #include <dt-bindings/interrupt-controller/arm-gic.h> + #include <dt-bindings/reset/cix,sky1-s5-system-control.h> + + gpu@15010000 { + compatible = "cix,sky1-mali", "arm,mali-valhall-csf"; + reg = <0x15010000 0x480000>; + interrupts = <GIC_SPI 237 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 238 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 239 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "job", "mmu", "gpu"; + clocks = <&scmi_clk CLK_TREE_GPU_CLK_CORE>, + <&scmi_clk CLK_TREE_GPU_CLK_STACKS>; + clock-names = "core", "stacks"; + resets = <&s5_syscon SKY1_GPU_RESET_N>; + power-domains = <&smc_devpd 21>; + arm,sysc-alloc = <2 3 2>, <4 3 0>, <16 2 2>, + <17 2 3>, <18 2 5>, <21 2 3>, + <22 0 5>, <24 2 0>, <28 2 3>; + }; + ... -- 2.53.0
