Dallas DS1307 and compatible RTC

Schema identifier ($id): "http://devicetree.org/schemas/rtc/rtc-ds1307.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Alexandre Belloni <alexandre.belloni@bootlin.com>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "dallas,ds1307", "dallas,ds1308", "dallas,ds1337", "dallas,ds1338", "dallas,ds1339", "dallas,ds1388", "dallas,ds1340", "dallas,ds1341", "maxim,ds3231", "st,m41t0", "st,m41t00", "st,m41t11", "microchip,mcp7940x", "microchip,mcp7941x", "pericom,pt7c4338", "epson,rx8025", "isil,isl12057", "epson,rx8130"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "st,m41t00"

Item 2

Exact value (const): "dallas,ds1338"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

interrupt-names — not listed as required here #

Maximum number of items (maxItems): 2

#clock-cells — not listed as required here #

Exact value (const): 1

clock-output-names — not listed as required here #

From common clock binding to override the default output clock name.

wakeup-source — not listed as required here #

Enables wake up of host system on alarm.

vcc-supply — not listed as required here #

true — No constraints added by this property rule.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): rtc.yaml

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "dallas,ds1339", "dallas,ds1340", "dallas,ds1388"

When the condition matches (then) #

Properties and child nodes (properties)

trickle-resistor-ohms — not listed as required here

Selected resistor for trickle charger. Should be specified if trickle charger should be enabled.

Allowed values (enum): 250, 2000, 4000

trickle-diode-disable — not listed as required here

Do not use internal trickle charger diode. Should be given if internal trickle charger diode should be disabled (superseded by aux-voltage-chargeable)

Deprecated (deprecated): true

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "reg"

Examples (examples) #

i2c {
  #address-cells = <1>;
  #size-cells = <0>;

  rtc@68 {
    compatible = "dallas,ds1337";
    reg = <0x68>;
    interrupt-parent = <&gpio4>;
    interrupts = <20 0>;
    trickle-resistor-ohms = <250>;
  };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Edit this page