Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: GPL-2.0
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/media/allwinner,sun4i-a10-ir.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: Allwinner A10 Infrared Controller Device Tree Bindings
0008 
0009 maintainers:
0010   - Chen-Yu Tsai <wens@csie.org>
0011   - Maxime Ripard <mripard@kernel.org>
0012 
0013 allOf:
0014   - $ref: "rc.yaml#"
0015 
0016 properties:
0017   compatible:
0018     oneOf:
0019       - const: allwinner,sun4i-a10-ir
0020       - const: allwinner,sun5i-a13-ir
0021       - const: allwinner,sun6i-a31-ir
0022       - items:
0023           - enum:
0024               - allwinner,sun8i-a83t-ir
0025               - allwinner,sun8i-r40-ir
0026               - allwinner,sun50i-a64-ir
0027               - allwinner,sun50i-h6-ir
0028               - allwinner,sun50i-h616-ir
0029           - const: allwinner,sun6i-a31-ir
0030 
0031   reg:
0032     maxItems: 1
0033 
0034   interrupts:
0035     maxItems: 1
0036 
0037   clocks:
0038     items:
0039       - description: Bus Clock
0040       - description: Module Clock
0041 
0042   clock-names:
0043     items:
0044       - const: apb
0045       - const: ir
0046 
0047   resets:
0048     maxItems: 1
0049 
0050   clock-frequency:
0051     default: 8000000
0052     description:
0053       IR Receiver clock frequency, in Hertz.
0054 
0055 required:
0056   - compatible
0057   - reg
0058   - interrupts
0059   - clocks
0060   - clock-names
0061 
0062 unevaluatedProperties: false
0063 
0064 examples:
0065   - |
0066       ir0: ir@1c21800 {
0067           compatible = "allwinner,sun4i-a10-ir";
0068           clocks = <&apb0_gates 6>, <&ir0_clk>;
0069           clock-names = "apb", "ir";
0070           clock-frequency = <3000000>;
0071           resets = <&apb0_rst 1>;
0072           interrupts = <0 5 1>;
0073           reg = <0x01C21800 0x40>;
0074           linux,rc-map-name = "rc-rc6-mce";
0075       };
0076 
0077 ...