brintos

brintos / linux-shallow public Read only

0
0
Text · 3.1 KiB · f5898b0 Raw
139 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)2# Copyright (c) 2023 Imagination Technologies Ltd.3# Copyright (C) 2024 Texas Instruments Incorporated - https://www.ti.com/4%YAML 1.25---6$id: http://devicetree.org/schemas/gpu/img,powervr-sgx.yaml#7$schema: http://devicetree.org/meta-schemas/core.yaml#8 9title: Imagination Technologies PowerVR SGX GPUs10 11maintainers:12  - Frank Binns <frank.binns@imgtec.com>13 14properties:15  compatible:16    oneOf:17      - items:18          - enum:19              - ti,omap3430-gpu # Rev 12120              - ti,omap3630-gpu # Rev 12521          - const: img,powervr-sgx53022      - items:23          - enum:24              - ingenic,jz4780-gpu # Rev 13025              - ti,omap4430-gpu # Rev 12026          - const: img,powervr-sgx54027      - items:28          - enum:29              - allwinner,sun6i-a31-gpu # MP2 Rev 11530              - ti,omap4470-gpu # MP1 Rev 11231              - ti,omap5432-gpu # MP2 Rev 10532              - ti,am5728-gpu # MP2 Rev 11633              - ti,am6548-gpu # MP1 Rev 11734          - const: img,powervr-sgx54435 36  reg:37    maxItems: 138 39  interrupts:40    maxItems: 141 42  clocks:43    minItems: 144    maxItems: 345 46  clock-names:47    minItems: 148    items:49      - const: core50      - const: mem51      - const: sys52 53  power-domains:54    maxItems: 155 56required:57  - compatible58  - reg59  - interrupts60 61allOf:62  - if:63      properties:64        compatible:65          contains:66            const: ti,am6548-gpu67    then:68      required:69        - power-domains70    else:71      properties:72        power-domains: false73  - if:74      properties:75        compatible:76          contains:77            enum:78              - allwinner,sun6i-a31-gpu79              - ingenic,jz4780-gpu80    then:81      required:82        - clocks83        - clock-names84    else:85      properties:86        clocks: false87        clock-names: false88  - if:89      properties:90        compatible:91          contains:92            const: allwinner,sun6i-a31-gpu93    then:94      properties:95        clocks:96          minItems: 297          maxItems: 298        clock-names:99          minItems: 2100          maxItems: 2101  - if:102      properties:103        compatible:104          contains:105            const: ingenic,jz4780-gpu106    then:107      properties:108        clocks:109          maxItems: 1110        clock-names:111          maxItems: 1112 113additionalProperties: false114 115examples:116  - |117    #include <dt-bindings/interrupt-controller/irq.h>118    #include <dt-bindings/interrupt-controller/arm-gic.h>119    #include <dt-bindings/soc/ti,sci_pm_domain.h>120 121    gpu@7000000 {122        compatible = "ti,am6548-gpu", "img,powervr-sgx544";123        reg = <0x7000000 0x10000>;124        interrupts = <GIC_SPI 162 IRQ_TYPE_LEVEL_HIGH>;125        power-domains = <&k3_pds 65 TI_SCI_PD_EXCLUSIVE>;126    };127 128  - |129    #include <dt-bindings/interrupt-controller/irq.h>130    #include <dt-bindings/interrupt-controller/arm-gic.h>131 132    gpu: gpu@1c40000 {133        compatible = "allwinner,sun6i-a31-gpu", "img,powervr-sgx544";134        reg = <0x01c40000 0x10000>;135        interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>;136        clocks = <&ccu 1>, <&ccu 2>;137        clock-names = "core", "mem";138    };139