1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2c66ec88fSEmmanuel Vadot%YAML 1.2
3c66ec88fSEmmanuel Vadot---
4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/media/allwinner,sun8i-h3-deinterlace.yaml#
5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6c66ec88fSEmmanuel Vadot
7*7ef62cebSEmmanuel Vadottitle: Allwinner H3 Deinterlace
8c66ec88fSEmmanuel Vadot
9c66ec88fSEmmanuel Vadotmaintainers:
10c66ec88fSEmmanuel Vadot  - Jernej Skrabec <jernej.skrabec@siol.net>
11c66ec88fSEmmanuel Vadot  - Chen-Yu Tsai <wens@csie.org>
12c66ec88fSEmmanuel Vadot  - Maxime Ripard <mripard@kernel.org>
13c66ec88fSEmmanuel Vadot
14c66ec88fSEmmanuel Vadotdescription: |-
15c66ec88fSEmmanuel Vadot  The Allwinner H3 and later has a deinterlace core used for
16c66ec88fSEmmanuel Vadot  deinterlacing interlaced video content.
17c66ec88fSEmmanuel Vadot
18c66ec88fSEmmanuel Vadotproperties:
19c66ec88fSEmmanuel Vadot  compatible:
20c66ec88fSEmmanuel Vadot    oneOf:
21c66ec88fSEmmanuel Vadot      - const: allwinner,sun8i-h3-deinterlace
22c66ec88fSEmmanuel Vadot      - items:
235def4c47SEmmanuel Vadot          - const: allwinner,sun8i-r40-deinterlace
245def4c47SEmmanuel Vadot          - const: allwinner,sun8i-h3-deinterlace
255def4c47SEmmanuel Vadot      - items:
26c66ec88fSEmmanuel Vadot          - const: allwinner,sun50i-a64-deinterlace
27c66ec88fSEmmanuel Vadot          - const: allwinner,sun8i-h3-deinterlace
28c66ec88fSEmmanuel Vadot
29c66ec88fSEmmanuel Vadot  reg:
30c66ec88fSEmmanuel Vadot    maxItems: 1
31c66ec88fSEmmanuel Vadot
32c66ec88fSEmmanuel Vadot  interrupts:
33c66ec88fSEmmanuel Vadot    maxItems: 1
34c66ec88fSEmmanuel Vadot
35c66ec88fSEmmanuel Vadot  clocks:
36c66ec88fSEmmanuel Vadot    items:
37c66ec88fSEmmanuel Vadot      - description: Deinterlace interface clock
38c66ec88fSEmmanuel Vadot      - description: Deinterlace module clock
39c66ec88fSEmmanuel Vadot      - description: Deinterlace DRAM clock
40c66ec88fSEmmanuel Vadot
41c66ec88fSEmmanuel Vadot  clock-names:
42c66ec88fSEmmanuel Vadot    items:
43c66ec88fSEmmanuel Vadot      - const: bus
44c66ec88fSEmmanuel Vadot      - const: mod
45c66ec88fSEmmanuel Vadot      - const: ram
46c66ec88fSEmmanuel Vadot
47c66ec88fSEmmanuel Vadot  resets:
48c66ec88fSEmmanuel Vadot    maxItems: 1
49c66ec88fSEmmanuel Vadot
50c66ec88fSEmmanuel Vadot  interconnects:
51c66ec88fSEmmanuel Vadot    maxItems: 1
52c66ec88fSEmmanuel Vadot
53c66ec88fSEmmanuel Vadot  interconnect-names:
54c66ec88fSEmmanuel Vadot    const: dma-mem
55c66ec88fSEmmanuel Vadot
56c66ec88fSEmmanuel Vadotrequired:
57c66ec88fSEmmanuel Vadot  - compatible
58c66ec88fSEmmanuel Vadot  - reg
59c66ec88fSEmmanuel Vadot  - interrupts
60c66ec88fSEmmanuel Vadot  - clocks
61c66ec88fSEmmanuel Vadot
62c66ec88fSEmmanuel VadotadditionalProperties: false
63c66ec88fSEmmanuel Vadot
64c66ec88fSEmmanuel Vadotexamples:
65c66ec88fSEmmanuel Vadot  - |
66c66ec88fSEmmanuel Vadot    #include <dt-bindings/interrupt-controller/arm-gic.h>
67c66ec88fSEmmanuel Vadot    #include <dt-bindings/clock/sun8i-h3-ccu.h>
68c66ec88fSEmmanuel Vadot    #include <dt-bindings/reset/sun8i-h3-ccu.h>
69c66ec88fSEmmanuel Vadot
70c66ec88fSEmmanuel Vadot    deinterlace: deinterlace@1400000 {
71c66ec88fSEmmanuel Vadot        compatible = "allwinner,sun8i-h3-deinterlace";
72c66ec88fSEmmanuel Vadot        reg = <0x01400000 0x20000>;
73c66ec88fSEmmanuel Vadot        clocks = <&ccu CLK_BUS_DEINTERLACE>,
74c66ec88fSEmmanuel Vadot                 <&ccu CLK_DEINTERLACE>,
75c66ec88fSEmmanuel Vadot                 <&ccu CLK_DRAM_DEINTERLACE>;
76c66ec88fSEmmanuel Vadot        clock-names = "bus", "mod", "ram";
77c66ec88fSEmmanuel Vadot        resets = <&ccu RST_BUS_DEINTERLACE>;
78c66ec88fSEmmanuel Vadot        interrupts = <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>;
79c66ec88fSEmmanuel Vadot        interconnects = <&mbus 9>;
80c66ec88fSEmmanuel Vadot        interconnect-names = "dma-mem";
81c66ec88fSEmmanuel Vadot    };
82c66ec88fSEmmanuel Vadot
83c66ec88fSEmmanuel Vadot...
84