Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/timer/ingenic,sysost.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: Bindings for SYSOST in Ingenic XBurst family SoCs
0008 
0009 maintainers:
0010   - 周琰杰 (Zhou Yanjie) <zhouyanjie@wanyeetech.com>
0011 
0012 description:
0013   The SYSOST in an Ingenic SoC provides one 64bit timer for clocksource
0014   and one or more 32bit timers for clockevent.
0015 
0016 properties:
0017   "#clock-cells":
0018     const: 1
0019 
0020   compatible:
0021     enum:
0022       - ingenic,x1000-ost
0023       - ingenic,x2000-ost
0024 
0025   reg:
0026     maxItems: 1
0027 
0028   clocks:
0029     maxItems: 1
0030 
0031   clock-names:
0032     const: ost
0033 
0034   interrupts:
0035     maxItems: 1
0036 
0037 required:
0038   - "#clock-cells"
0039   - compatible
0040   - reg
0041   - clocks
0042   - clock-names
0043   - interrupts
0044 
0045 additionalProperties: false
0046 
0047 examples:
0048   - |
0049     #include <dt-bindings/clock/ingenic,x1000-cgu.h>
0050 
0051     ost: timer@12000000 {
0052         compatible = "ingenic,x1000-ost";
0053         reg = <0x12000000 0x3c>;
0054 
0055         #clock-cells = <1>;
0056 
0057         clocks = <&cgu X1000_CLK_OST>;
0058         clock-names = "ost";
0059 
0060         interrupt-parent = <&cpuintc>;
0061         interrupts = <3>;
0062     };
0063 ...