Back to home page

OSCL-LXR

 
 

    


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-a83t-de2-rotate.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: Allwinner A83T DE2 Rotate 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 A83T and A64 have a rotation core used for
0016   rotating and flipping images.
0017 
0018 properties:
0019   compatible:
0020     oneOf:
0021       - const: allwinner,sun8i-a83t-de2-rotate
0022       - items:
0023           - const: allwinner,sun50i-a64-de2-rotate
0024           - const: allwinner,sun8i-a83t-de2-rotate
0025 
0026   reg:
0027     maxItems: 1
0028 
0029   interrupts:
0030     maxItems: 1
0031 
0032   clocks:
0033     items:
0034       - description: Rotate interface clock
0035       - description: Rotate module clock
0036 
0037   clock-names:
0038     items:
0039       - const: bus
0040       - const: mod
0041 
0042   resets:
0043     maxItems: 1
0044 
0045 required:
0046   - compatible
0047   - reg
0048   - interrupts
0049   - clocks
0050 
0051 additionalProperties: false
0052 
0053 examples:
0054   - |
0055     #include <dt-bindings/interrupt-controller/arm-gic.h>
0056     #include <dt-bindings/clock/sun8i-de2.h>
0057     #include <dt-bindings/reset/sun8i-de2.h>
0058 
0059     rotate: rotate@1020000 {
0060         compatible = "allwinner,sun8i-a83t-de2-rotate";
0061         reg = <0x1020000 0x10000>;
0062         interrupts = <GIC_SPI 92 IRQ_TYPE_LEVEL_HIGH>;
0063         clocks = <&display_clocks CLK_BUS_ROT>,
0064                  <&display_clocks CLK_ROT>;
0065         clock-names = "bus",
0066                       "mod";
0067         resets = <&display_clocks RST_ROT>;
0068     };
0069 
0070 ...