xref: /freebsd/sys/contrib/device-tree/Bindings/media/allwinner,sun8i-a83t-de2-rotate.yaml (revision 7ef62cebc2f965b0f640263e179276928885e33d)
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/media/allwinner,sun8i-a83t-de2-rotate.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Allwinner A83T DE2 Rotate
8
9maintainers:
10  - Jernej Skrabec <jernej.skrabec@siol.net>
11  - Chen-Yu Tsai <wens@csie.org>
12  - Maxime Ripard <mripard@kernel.org>
13
14description: |-
15  The Allwinner A83T and A64 have a rotation core used for
16  rotating and flipping images.
17
18properties:
19  compatible:
20    oneOf:
21      - const: allwinner,sun8i-a83t-de2-rotate
22      - items:
23          - const: allwinner,sun50i-a64-de2-rotate
24          - const: allwinner,sun8i-a83t-de2-rotate
25
26  reg:
27    maxItems: 1
28
29  interrupts:
30    maxItems: 1
31
32  clocks:
33    items:
34      - description: Rotate interface clock
35      - description: Rotate module clock
36
37  clock-names:
38    items:
39      - const: bus
40      - const: mod
41
42  resets:
43    maxItems: 1
44
45required:
46  - compatible
47  - reg
48  - interrupts
49  - clocks
50
51additionalProperties: false
52
53examples:
54  - |
55    #include <dt-bindings/interrupt-controller/arm-gic.h>
56    #include <dt-bindings/clock/sun8i-de2.h>
57    #include <dt-bindings/reset/sun8i-de2.h>
58
59    rotate: rotate@1020000 {
60        compatible = "allwinner,sun8i-a83t-de2-rotate";
61        reg = <0x1020000 0x10000>;
62        interrupts = <GIC_SPI 92 IRQ_TYPE_LEVEL_HIGH>;
63        clocks = <&display_clocks CLK_BUS_ROT>,
64                 <&display_clocks CLK_ROT>;
65        clock-names = "bus",
66                      "mod";
67        resets = <&display_clocks RST_ROT>;
68    };
69
70...
71