0001 # SPDX-License-Identifier: GPL-2.0
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/rtc/rtc.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: RTC Generic Binding
0008
0009 maintainers:
0010 - Alexandre Belloni <alexandre.belloni@bootlin.com>
0011
0012 description: |
0013 This document describes generic bindings which can be used to
0014 describe Real Time Clock devices in a device tree.
0015
0016 properties:
0017 $nodename:
0018 pattern: "^rtc(@.*|-[0-9a-f])*$"
0019
0020 aux-voltage-chargeable:
0021 $ref: /schemas/types.yaml#/definitions/uint32
0022 enum: [0, 1]
0023 description: |
0024 Tells whether the battery/supercap of the RTC (if any) is
0025 chargeable or not:
0026 0: not chargeable
0027 1: chargeable
0028
0029 quartz-load-femtofarads:
0030 description:
0031 The capacitive load of the quartz(x-tal), expressed in femto
0032 Farad (fF). The default value shall be listed (if optional),
0033 and likewise all valid values.
0034
0035 start-year:
0036 $ref: /schemas/types.yaml#/definitions/uint32
0037 description:
0038 If provided, the default hardware range supported by the RTC is
0039 shifted so the first usable year is the specified one.
0040
0041 trickle-diode-disable:
0042 $ref: /schemas/types.yaml#/definitions/flag
0043 description:
0044 Do not use internal trickle charger diode. Should be given if
0045 internal trickle charger diode should be disabled.
0046 deprecated: true
0047
0048 trickle-resistor-ohms:
0049 description:
0050 Selected resistor for trickle charger. Should be given
0051 if trickle charger should be enabled.
0052
0053 trickle-voltage-millivolt:
0054 description:
0055 Selected voltage for trickle charger. Should be given
0056 if trickle charger should be enabled and the trickle voltage is different
0057 from the RTC main power supply.
0058
0059 wakeup-source:
0060 $ref: /schemas/types.yaml#/definitions/flag
0061 description:
0062 Enables wake up of host system on alarm.
0063
0064 reset-source:
0065 $ref: /schemas/types.yaml#/definitions/flag
0066 description:
0067 The RTC is able to reset the machine.
0068
0069 additionalProperties: true
0070
0071 ...