NXP S32G2/S32G3 Real Time Clock (RTC)
Schema identifier ($id): "http://devicetree.org/schemas/rtc/nxp,s32g-rtc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Bogdan Hamciuc <bogdan.hamciuc@nxp.com>", "Ciprian Marian Costea <ciprianmarian.costea@nxp.com>"
RTC hardware module present on S32G2/S32G3 SoCs is used as a wakeup source. It is not kept alive during system reset and it is not battery-powered.
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
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"nxp,s32g3-rtc"Item 2
Exact value (
const):"nxp,s32g2-rtc"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Array item rules (items) #
Item 1
ipg clock drives the access to the RTC iomapped registers
Item 2
Clock source for the RTC module. Can be selected between 4 different clock sources using an integrated hardware mux. On S32G2/S32G3 SoCs, 'source0' is the SIRC clock (~32KHz) and it is available during standby and runtime. 'source1' is reserved and cannot be used. 'source2' is the FIRC clock and it is only available during runtime providing a better resolution (~48MHz). 'source3' is an external RTC clock source which can be additionally added in hardware.
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"ipg"
Item 2
Allowed values (
enum):"source0","source1","source2","source3"
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
rtc@40060000 {
compatible = "nxp,s32g3-rtc",
"nxp,s32g2-rtc";
reg = <0x40060000 0x1000>;
interrupts = <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clks 54>, <&clks 55>;
clock-names = "ipg", "source0";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)