Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
0002 
0003 %YAML 1.2
0004 ---
0005 $id: "http://devicetree.org/schemas/media/allwinner,sun50i-h6-vpu-g2.yaml#"
0006 $schema: "http://devicetree.org/meta-schemas/core.yaml#"
0007 
0008 title: Hantro G2 VPU codec implemented on Allwinner H6 SoC
0009 
0010 maintainers:
0011   - Jernej Skrabec <jernej.skrabec@gmail.com>
0012 
0013 description:
0014   Hantro G2 video decode accelerator present on Allwinner H6 SoC.
0015 
0016 properties:
0017   compatible:
0018     const: allwinner,sun50i-h6-vpu-g2
0019 
0020   reg:
0021     maxItems: 1
0022 
0023   interrupts:
0024     maxItems: 1
0025 
0026   clocks:
0027     items:
0028       - description: Bus Clock
0029       - description: Module Clock
0030 
0031   clock-names:
0032     items:
0033       - const: bus
0034       - const: mod
0035 
0036   resets:
0037     maxItems: 1
0038 
0039 required:
0040   - compatible
0041   - reg
0042   - interrupts
0043   - clocks
0044   - clock-names
0045   - resets
0046 
0047 additionalProperties: false
0048 
0049 examples:
0050   - |
0051     #include <dt-bindings/interrupt-controller/arm-gic.h>
0052     #include <dt-bindings/clock/sun50i-h6-ccu.h>
0053     #include <dt-bindings/reset/sun50i-h6-ccu.h>
0054 
0055     video-codec-g2@1c00000 {
0056         compatible = "allwinner,sun50i-h6-vpu-g2";
0057         reg = <0x01c00000 0x1000>;
0058         interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>;
0059         clocks = <&ccu CLK_BUS_VP9>, <&ccu CLK_VP9>;
0060         clock-names = "bus", "mod";
0061         resets = <&ccu RST_BUS_VP9>;
0062     };
0063 
0064 ...