Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: GPL-2.0
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/rtc/s3c-rtc.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: Samsung S3C, S5P and Exynos Real Time Clock controller
0008 
0009 maintainers:
0010   - Krzysztof Kozlowski <krzk@kernel.org>
0011 
0012 properties:
0013   compatible:
0014     oneOf:
0015       - enum:
0016           - samsung,s3c2410-rtc
0017           - samsung,s3c2416-rtc
0018           - samsung,s3c2443-rtc
0019           - samsung,s3c6410-rtc
0020       - const: samsung,exynos3250-rtc
0021         deprecated: true
0022 
0023   reg:
0024     maxItems: 1
0025 
0026   clocks:
0027     description:
0028       Must contain a list of phandle and clock specifier for the rtc
0029       clock and in the case of a s3c6410 compatible controller, also
0030       a source clock.
0031     minItems: 1
0032     maxItems: 2
0033 
0034   clock-names:
0035     description:
0036       Must contain "rtc" and for a s3c6410 compatible controller
0037       also "rtc_src".
0038     minItems: 1
0039     maxItems: 2
0040 
0041   interrupts:
0042     description:
0043       Two interrupt numbers to the cpu should be specified. First
0044       interrupt number is the rtc alarm interrupt and second interrupt number
0045       is the rtc tick interrupt. The number of cells representing a interrupt
0046       depends on the parent interrupt controller.
0047     minItems: 2
0048     maxItems: 2
0049 
0050 allOf:
0051   - $ref: rtc.yaml#
0052   - if:
0053       properties:
0054         compatible:
0055           contains:
0056             enum:
0057               - samsung,s3c6410-rtc
0058               - samsung,exynos3250-rtc
0059     then:
0060       properties:
0061         clocks:
0062           minItems: 2
0063           maxItems: 2
0064         clock-names:
0065           items:
0066             - const: rtc
0067             - const: rtc_src
0068     else:
0069       properties:
0070         clocks:
0071           minItems: 1
0072           maxItems: 1
0073         clock-names:
0074           items:
0075             - const: rtc
0076 
0077 unevaluatedProperties: false
0078 
0079 examples:
0080   - |
0081     #include <dt-bindings/clock/exynos5420.h>
0082     #include <dt-bindings/clock/samsung,s2mps11.h>
0083 
0084     rtc@10070000 {
0085         compatible = "samsung,s3c6410-rtc";
0086         reg = <0x10070000 0x100>;
0087         interrupts = <0 44 4>, <0 45 4>;
0088         clocks = <&clock CLK_RTC>,
0089                  <&s2mps11_osc S2MPS11_CLK_AP>;
0090         clock-names = "rtc", "rtc_src";
0091     };