0001 # SPDX-License-Identifier: GPL-2.0
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/rtc/rtc-ds1307.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Dallas DS1307 and compatible RTC
0008
0009 maintainers:
0010 - Alexandre Belloni <alexandre.belloni@bootlin.com>
0011
0012 properties:
0013 compatible:
0014 oneOf:
0015 - enum:
0016 - dallas,ds1307
0017 - dallas,ds1308
0018 - dallas,ds1337
0019 - dallas,ds1338
0020 - dallas,ds1339
0021 - dallas,ds1388
0022 - dallas,ds1340
0023 - dallas,ds1341
0024 - maxim,ds3231
0025 - st,m41t0
0026 - st,m41t00
0027 - st,m41t11
0028 - microchip,mcp7940x
0029 - microchip,mcp7941x
0030 - pericom,pt7c4338
0031 - epson,rx8025
0032 - isil,isl12057
0033 - epson,rx8130
0034
0035 - items:
0036 - enum:
0037 - st,m41t00
0038 - const: dallas,ds1338
0039
0040 reg:
0041 maxItems: 1
0042
0043 interrupts:
0044 minItems: 1
0045 maxItems: 2
0046
0047 interrupt-names:
0048 maxItems: 2
0049
0050 "#clock-cells":
0051 const: 1
0052
0053 clock-output-names:
0054 description: From common clock binding to override the default output clock name.
0055
0056 wakeup-source:
0057 description: Enables wake up of host system on alarm.
0058
0059 vcc-supply: true
0060
0061 allOf:
0062 - $ref: rtc.yaml
0063 - if:
0064 properties:
0065 compatible:
0066 contains:
0067 enum:
0068 - dallas,ds1339
0069 - dallas,ds1340
0070 - dallas,ds1388
0071 then:
0072 properties:
0073 trickle-resistor-ohms:
0074 description: Selected resistor for trickle charger. Should be specified if trickle
0075 charger should be enabled.
0076 enum: [ 250, 2000, 4000 ]
0077
0078 trickle-diode-disable:
0079 description: Do not use internal trickle charger diode. Should be given if internal
0080 trickle charger diode should be disabled (superseded by aux-voltage-chargeable)
0081 deprecated: true
0082
0083 unevaluatedProperties: false
0084
0085 required:
0086 - compatible
0087 - reg
0088
0089 examples:
0090 - |
0091 i2c {
0092 #address-cells = <1>;
0093 #size-cells = <0>;
0094
0095 rtc@68 {
0096 compatible = "dallas,ds1337";
0097 reg = <0x68>;
0098 interrupt-parent = <&gpio4>;
0099 interrupts = <20 0>;
0100 trickle-resistor-ohms = <250>;
0101 };
0102 };