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/rtc/ingenic,rtc.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: Ingenic SoCs Real-Time Clock DT bindings
0008 
0009 maintainers:
0010   - Paul Cercueil <paul@crapouillou.net>
0011 
0012 allOf:
0013   - $ref: rtc.yaml#
0014 
0015 properties:
0016   compatible:
0017     oneOf:
0018       - enum:
0019           - ingenic,jz4740-rtc
0020           - ingenic,jz4760-rtc
0021       - items:
0022           - const: ingenic,jz4725b-rtc
0023           - const: ingenic,jz4740-rtc
0024       - items:
0025           - enum:
0026               - ingenic,jz4770-rtc
0027               - ingenic,jz4780-rtc
0028           - const: ingenic,jz4760-rtc
0029 
0030   reg:
0031     maxItems: 1
0032 
0033   interrupts:
0034     maxItems: 1
0035 
0036   clocks:
0037     maxItems: 1
0038 
0039   clock-names:
0040     const: rtc
0041 
0042   system-power-controller:
0043     description: |
0044       Indicates that the RTC is responsible for powering OFF
0045       the system.
0046     type: boolean
0047 
0048   ingenic,reset-pin-assert-time-ms:
0049     minimum: 0
0050     maximum: 125
0051     default: 60
0052     description: |
0053       Reset pin low-level assertion time after wakeup
0054       (assuming RTC clock at 32 kHz)
0055 
0056   ingenic,min-wakeup-pin-assert-time-ms:
0057     minimum: 0
0058     maximum: 2000
0059     default: 100
0060     description: |
0061       Minimum wakeup pin assertion time
0062       (assuming RTC clock at 32 kHz)
0063 
0064 required:
0065   - compatible
0066   - reg
0067   - interrupts
0068   - clocks
0069   - clock-names
0070 
0071 unevaluatedProperties: false
0072 
0073 examples:
0074   - |
0075     #include <dt-bindings/clock/ingenic,jz4740-cgu.h>
0076     rtc_dev: rtc@10003000 {
0077       compatible = "ingenic,jz4740-rtc";
0078       reg = <0x10003000 0x40>;
0079 
0080       interrupt-parent = <&intc>;
0081       interrupts = <15>;
0082 
0083       clocks = <&cgu JZ4740_CLK_RTC>;
0084       clock-names = "rtc";
0085     };