0001 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/media/allwinner,sun8i-h3-deinterlace.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Allwinner H3 Deinterlace Device Tree Bindings
0008
0009 maintainers:
0010 - Jernej Skrabec <jernej.skrabec@siol.net>
0011 - Chen-Yu Tsai <wens@csie.org>
0012 - Maxime Ripard <mripard@kernel.org>
0013
0014 description: |-
0015 The Allwinner H3 and later has a deinterlace core used for
0016 deinterlacing interlaced video content.
0017
0018 properties:
0019 compatible:
0020 oneOf:
0021 - const: allwinner,sun8i-h3-deinterlace
0022 - items:
0023 - const: allwinner,sun8i-r40-deinterlace
0024 - const: allwinner,sun8i-h3-deinterlace
0025 - items:
0026 - const: allwinner,sun50i-a64-deinterlace
0027 - const: allwinner,sun8i-h3-deinterlace
0028
0029 reg:
0030 maxItems: 1
0031
0032 interrupts:
0033 maxItems: 1
0034
0035 clocks:
0036 items:
0037 - description: Deinterlace interface clock
0038 - description: Deinterlace module clock
0039 - description: Deinterlace DRAM clock
0040
0041 clock-names:
0042 items:
0043 - const: bus
0044 - const: mod
0045 - const: ram
0046
0047 resets:
0048 maxItems: 1
0049
0050 interconnects:
0051 maxItems: 1
0052
0053 interconnect-names:
0054 const: dma-mem
0055
0056 required:
0057 - compatible
0058 - reg
0059 - interrupts
0060 - clocks
0061
0062 additionalProperties: false
0063
0064 examples:
0065 - |
0066 #include <dt-bindings/interrupt-controller/arm-gic.h>
0067 #include <dt-bindings/clock/sun8i-h3-ccu.h>
0068 #include <dt-bindings/reset/sun8i-h3-ccu.h>
0069
0070 deinterlace: deinterlace@1400000 {
0071 compatible = "allwinner,sun8i-h3-deinterlace";
0072 reg = <0x01400000 0x20000>;
0073 clocks = <&ccu CLK_BUS_DEINTERLACE>,
0074 <&ccu CLK_DEINTERLACE>,
0075 <&ccu CLK_DRAM_DEINTERLACE>;
0076 clock-names = "bus", "mod", "ram";
0077 resets = <&ccu RST_BUS_DEINTERLACE>;
0078 interrupts = <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>;
0079 interconnects = <&mbus 9>;
0080 interconnect-names = "dma-mem";
0081 };
0082
0083 ...