mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 03:44:45 +01:00
dt-bindings: rtc: add schema for NXP S32G2/S32G3 SoCs
RTC tracks clock time during system suspend and it is used as a wakeup source on S32G2/S32G3 architecture. RTC from S32G2/S32G3 is not battery-powered and it is not kept alive during system reset. Co-developed-by: Bogdan-Gabriel Roman <bogdan-gabriel.roman@nxp.com> Signed-off-by: Bogdan-Gabriel Roman <bogdan-gabriel.roman@nxp.com> Co-developed-by: Ghennadi Procopciuc <ghennadi.procopciuc@nxp.com> Signed-off-by: Ghennadi Procopciuc <ghennadi.procopciuc@nxp.com> Signed-off-by: Ciprian Marian Costea <ciprianmarian.costea@oss.nxp.com> Reviewed-by: Rob Herring (Arm) <robh@kernel.org> Link: https://lore.kernel.org/r/20250403103346.3064895-2-ciprianmarian.costea@oss.nxp.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
This commit is contained in:
parent
bf1c27c6d5
commit
8568d8b4da
1 changed files with 72 additions and 0 deletions
72
Documentation/devicetree/bindings/rtc/nxp,s32g-rtc.yaml
Normal file
72
Documentation/devicetree/bindings/rtc/nxp,s32g-rtc.yaml
Normal file
|
|
@ -0,0 +1,72 @@
|
|||
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
|
||||
%YAML 1.2
|
||||
---
|
||||
$id: http://devicetree.org/schemas/rtc/nxp,s32g-rtc.yaml#
|
||||
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
||||
|
||||
title: NXP S32G2/S32G3 Real Time Clock (RTC)
|
||||
|
||||
maintainers:
|
||||
- Bogdan Hamciuc <bogdan.hamciuc@nxp.com>
|
||||
- Ciprian Marian Costea <ciprianmarian.costea@nxp.com>
|
||||
|
||||
description:
|
||||
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.
|
||||
|
||||
allOf:
|
||||
- $ref: rtc.yaml#
|
||||
|
||||
properties:
|
||||
compatible:
|
||||
oneOf:
|
||||
- enum:
|
||||
- nxp,s32g2-rtc
|
||||
- items:
|
||||
- const: nxp,s32g3-rtc
|
||||
- const: nxp,s32g2-rtc
|
||||
|
||||
reg:
|
||||
maxItems: 1
|
||||
|
||||
interrupts:
|
||||
maxItems: 1
|
||||
|
||||
clocks:
|
||||
items:
|
||||
- description: ipg clock drives the access to the RTC iomapped registers
|
||||
- description: 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:
|
||||
items:
|
||||
- const: ipg
|
||||
- enum: [ source0, source1, source2, source3 ]
|
||||
|
||||
required:
|
||||
- compatible
|
||||
- reg
|
||||
- interrupts
|
||||
- clocks
|
||||
- clock-names
|
||||
|
||||
additionalProperties: false
|
||||
|
||||
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";
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue