Re: [RFC PATCH v2 2/2] dt-bindings: gpu: Add Imagination Technologies PowerVR GPU

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 13/04/2023 12:34, Sarah Walker wrote:
> Signed-off-by: Sarah Walker <sarah.walker@xxxxxxxxxx>

NAK, multiple problems.

Missing commit msg.

Please use scripts/get_maintainers.pl to get a list of necessary people
and lists to CC.  It might happen, that command when run on an older
kernel, gives you outdated entries.  Therefore please be sure you base
your patches on recent Linux kernel.

Missing tests - not CCed to proper lists.

> ---
>  .../devicetree/bindings/gpu/img,powervr.yaml  | 105 ++++++++++++++++++
>  1 file changed, 105 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/gpu/img,powervr.yaml
> 
> diff --git a/Documentation/devicetree/bindings/gpu/img,powervr.yaml b/Documentation/devicetree/bindings/gpu/img,powervr.yaml
> new file mode 100644
> index 000000000000..f722fd1d4e8f
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/gpu/img,powervr.yaml
> @@ -0,0 +1,105 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR MIT)
> +# Copyright (c) 2022 Imagination Technologies Ltd.
> +%YAML 1.2
> +---
> +$id: "http://devicetree.org/schemas/gpu/img-powervr.yaml#";
> +$schema: "http://devicetree.org/meta-schemas/core.yaml#";

Drop quotes.

> +
> +title: Imagination Technologies PowerVR GPU
> +
> +maintainers:
> +  - Sarah Walker <sarah.walker@xxxxxxxxxx>
> +
> +properties:
> +  compatible:
> +    oneOf:
> +      - items:
> +          - enum:
> +              - mediatek,mt8173-gpu
> +          - const: img,powervr-series6xt
> +      - items:
> +          - enum:
> +              - ti,am62-gpu
> +          - const: img,powervr-seriesaxe
> +
> +  reg:
> +    minItems: 1

Drop minItems.

> +    maxItems: 1
> +
> +  clocks:
> +    minItems: 1> +    maxItems: 3
> +
> +  clock-names:
> +    items:
> +      - const: core_clk
> +      - const: mem_clk
> +      - const: sys_clk

Drop _clk suffixes.

> +
> +  interrupts:
> +    items:
> +      - description: GPU interrupt
> +
> +  interrupt-names:
> +    items:
> +      - const: gpu
> +
> +  power-domains:
> +    maxItems: 1
> +
> +  operating-points-v2: true

No opp-table?

> +  power-supply: true
> +
> +  "#cooling-cells":
> +    const: 2
> +
> +required:
> +  - compatible
> +  - reg
> +  - clocks
> +  - clock-names
> +  - interrupts
> +  - interrupt-names
> +
> +allOf:
> +  - if:
> +      properties:
> +        compatible:
> +          contains:
> +            const: mediatek,mt8173-gpu
> +    then:
> +      properties:
> +        reg:
> +          minItems: 2
> +          maxItems: 2
> +  - if:
> +      properties:
> +        compatible:
> +          contains:
> +            const: img,powervr-series6xt
> +    then:
> +      properties:
> +        clocks:
> +          minItems: 3

This is really not tested... Misisng additionalProperties:false.

> +
> +examples:
> +  - |
> +    #include <dt-bindings/interrupt-controller/irq.h>
> +    #include <dt-bindings/interrupt-controller/arm-gic.h>
> +
> +    gpu@13000000 {
> +        compatible = "mediatek,mt8173-gpu", "img,powervr-series6xt";
> +        reg = <0 0x13000000 0 0xffff>, <0 0x13fff000 0 0x1000>;
> +        power-domains = <&scpsys MT8173_POWER_DOMAIN_MFG>;
> +        power-supply = <&da9211_vgpu_reg>;
> +        operating-points-v2 = <&gpu_opp_table>;
> +        clocks = <&gpu_ckgen 0>,
> +                 <&gpu_ckgen 1>,
> +                 <&gpu_ckgen 2>;
> +        clock-names = "core_clk",
> +                      "mem_clk",
> +                      "sys_clk";
> +        interrupts = <GIC_SPI 217 IRQ_TYPE_LEVEL_LOW>;
> +        interrupt-names = "gpu";
> +    };
> +

Stray blank line.

Best regards,
Krzysztof




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux