Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 
0003 %YAML 1.2
0004 ---
0005 $id: "http://devicetree.org/schemas/media/amlogic,meson-ir-tx.yaml#"
0006 $schema: "http://devicetree.org/meta-schemas/core.yaml#"
0007 
0008 title: Amlogic Meson IR transmitter
0009 
0010 maintainers:
0011   - Viktor Prutyanov <viktor.prutyanov@phystech.edu>
0012 
0013 description: |
0014   Some Amlogic SoCs such as A311D and T950D4 have IR transmitter
0015   (also called blaster) controller onboard. It is capable of
0016   sending IR signals with arbitrary carrier frequency and duty cycle.
0017 
0018 properties:
0019   compatible:
0020     oneOf:
0021       - const: amlogic,meson-ir-tx
0022       - items:
0023           - const: amlogic,meson-g12a-ir-tx
0024           - const: amlogic,meson-ir-tx
0025 
0026   reg:
0027     maxItems: 1
0028 
0029   interrupts:
0030     maxItems: 1
0031 
0032   clocks:
0033     maxItems: 2
0034 
0035   clock-names:
0036     items:
0037       - const: sysclk
0038       - const: xtal
0039 
0040 required:
0041   - compatible
0042   - reg
0043   - interrupts
0044   - clocks
0045   - clock-names
0046 
0047 additionalProperties: false
0048 
0049 examples:
0050   - |
0051     #include <dt-bindings/interrupt-controller/irq.h>
0052     #include <dt-bindings/clock/g12a-clkc.h>
0053 
0054     ir@ff80014c {
0055       compatible = "amlogic,meson-g12a-ir-tx", "amlogic,meson-ir-tx";
0056       reg = <0xff80014c 0x10>;
0057       interrupts = <0 198 IRQ_TYPE_EDGE_RISING>;
0058       clocks = <&clkc CLKID_CLK81>, <&xtal>;
0059       clock-names = "sysclk", "xtal";
0060     };