Ingenic SoCs Real-Time Clock
Schema identifier ($id): "http://devicetree.org/schemas/rtc/ingenic,rtc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Paul Cercueil <paul@crapouillou.net>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):rtc.yaml#
Rule 2 #
Condition (
if) #This rule must not match (
not)Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"ingenic,jz4770-rtc","ingenic,jz4780-rtc"When the condition matches (
then) #Properties and child nodes (
properties)
#clock-cells— not listed as required here
false— Not permitted by this property rule.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"ingenic,jz4740-rtc","ingenic,jz4760-rtc"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"ingenic,jz4725b-rtc"Item 2
Exact value (
const):"ingenic,jz4740-rtc"
Rule 3
Array item rules (
items)Item 1
Allowed values (
enum):"ingenic,jz4770-rtc","ingenic,jz4780-rtc"Item 2
Exact value (
const):"ingenic,jz4760-rtc"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
clock-names — required here #
Exact value (const): "rtc"
#clock-cells — not listed as required here #
Exact value (const): 0
system-power-controller — not listed as required here #
Indicates that the RTC is responsible for powering OFF the system.
Value type (type): "boolean"
ingenic,reset-pin-assert-time-ms — not listed as required here #
Minimum value (minimum): 0
Maximum value (maximum): 125
Default value (default): 60
Reset pin low-level assertion time after wakeup (assuming RTC clock at 32 kHz)
ingenic,min-wakeup-pin-assert-time-ms — not listed as required here #
Minimum value (minimum): 0
Maximum value (maximum): 2000
Default value (default): 100
Minimum wakeup pin assertion time (assuming RTC clock at 32 kHz)
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/ingenic,jz4740-cgu.h>
rtc_dev: rtc@10003000 {
compatible = "ingenic,jz4740-rtc";
reg = <0x10003000 0x40>;
interrupt-parent = <&intc>;
interrupts = <15>;
clocks = <&cgu JZ4740_CLK_RTC>;
clock-names = "rtc";
};
#include <dt-bindings/clock/ingenic,jz4780-cgu.h>
rtc: rtc@10003000 {
compatible = "ingenic,jz4780-rtc", "ingenic,jz4760-rtc";
reg = <0x10003000 0x4c>;
interrupt-parent = <&intc>;
interrupts = <32>;
clocks = <&cgu JZ4780_CLK_RTCLK>;
clock-names = "rtc";
#clock-cells = <0>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)