NXP LPC1788 real-time clock
Schema identifier ($id): "http://devicetree.org/schemas/rtc/nxp,lpc1788-rtc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
The LPC1788 RTC provides calendar and clock functionality together with periodic tick and alarm interrupt support.
Maintainers (maintainers): "Javier Carrasco <javier.carrasco.cruz@gmail.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):rtc.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Item 2
Exact value (
const):"nxp,lpc1788-rtc"
Rule 2
Exact value (
const):"nxp,lpc1788-rtc"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Array item rules (items) #
Item 1
RTC clock
Item 2
Register clock
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"rtc"
Item 2
Exact value (
const):"reg"
interrupts — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "clocks", "clock-names", "interrupts"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/lpc18xx-ccu.h>
rtc@40046000 {
compatible = "nxp,lpc1788-rtc";
reg = <0x40046000 0x1000>;
clocks = <&creg_clk 0>, <&ccu1 CLK_CPU_BUS>;
clock-names = "rtc", "reg";
interrupts = <47>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)