Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 1 | # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) |
| 2 | |
| 3 | %YAML 1.2 |
| 4 | --- |
| 5 | $id: http://devicetree.org/schemas/media/allwinner,sun50i-h6-vpu-g2.yaml# |
| 6 | $schema: http://devicetree.org/meta-schemas/core.yaml# |
| 7 | |
| 8 | title: Hantro G2 VPU codec implemented on Allwinner H6 SoC |
| 9 | |
| 10 | maintainers: |
| 11 | - Jernej Skrabec <jernej.skrabec@gmail.com> |
| 12 | |
| 13 | description: |
| 14 | Hantro G2 video decode accelerator present on Allwinner H6 SoC. |
| 15 | |
| 16 | properties: |
| 17 | compatible: |
| 18 | const: allwinner,sun50i-h6-vpu-g2 |
| 19 | |
| 20 | reg: |
| 21 | maxItems: 1 |
| 22 | |
| 23 | interrupts: |
| 24 | maxItems: 1 |
| 25 | |
| 26 | clocks: |
| 27 | items: |
| 28 | - description: Bus Clock |
| 29 | - description: Module Clock |
| 30 | |
| 31 | clock-names: |
| 32 | items: |
| 33 | - const: bus |
| 34 | - const: mod |
| 35 | |
| 36 | resets: |
| 37 | maxItems: 1 |
| 38 | |
| 39 | iommus: |
| 40 | maxItems: 1 |
| 41 | |
| 42 | required: |
| 43 | - compatible |
| 44 | - reg |
| 45 | - interrupts |
| 46 | - clocks |
| 47 | - clock-names |
| 48 | - resets |
| 49 | - iommus |
| 50 | |
| 51 | additionalProperties: false |
| 52 | |
| 53 | examples: |
| 54 | - | |
| 55 | #include <dt-bindings/interrupt-controller/arm-gic.h> |
| 56 | #include <dt-bindings/clock/sun50i-h6-ccu.h> |
| 57 | #include <dt-bindings/reset/sun50i-h6-ccu.h> |
| 58 | |
| 59 | video-codec-g2@1c00000 { |
| 60 | compatible = "allwinner,sun50i-h6-vpu-g2"; |
| 61 | reg = <0x01c00000 0x1000>; |
| 62 | interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>; |
| 63 | clocks = <&ccu CLK_BUS_VP9>, <&ccu CLK_VP9>; |
| 64 | clock-names = "bus", "mod"; |
| 65 | resets = <&ccu RST_BUS_VP9>; |
| 66 | iommus = <&iommu 5>; |
| 67 | }; |
| 68 | |
| 69 | ... |