Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: rtc: Convert apm,xgene-rtc to DT schema

Convert the APM XGene RTC binding to DT schema format. It's a
straight-forward conversion.

Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Link: https://lore.kernel.org/r/20250924222848.2949235-1-robh@kernel.org
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>

authored by

Rob Herring (Arm) and committed by
Alexandre Belloni
a6b4f791 a6de182d

+45 -28
+45
Documentation/devicetree/bindings/rtc/apm,xgene-rtc.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/rtc/apm,xgene-rtc.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: APM X-Gene Real Time Clock 8 + 9 + maintainers: 10 + - Khuong Dinh <khuong@os.amperecomputing.com> 11 + 12 + properties: 13 + compatible: 14 + const: apm,xgene-rtc 15 + 16 + reg: 17 + maxItems: 1 18 + 19 + interrupts: 20 + maxItems: 1 21 + 22 + '#clock-cells': 23 + const: 1 24 + 25 + clocks: 26 + maxItems: 1 27 + 28 + required: 29 + - compatible 30 + - reg 31 + - interrupts 32 + - '#clock-cells' 33 + - clocks 34 + 35 + additionalProperties: false 36 + 37 + examples: 38 + - | 39 + rtc@10510000 { 40 + compatible = "apm,xgene-rtc"; 41 + reg = <0x10510000 0x400>; 42 + interrupts = <0x0 0x46 0x4>; 43 + #clock-cells = <1>; 44 + clocks = <&rtcclk 0>; 45 + };
-28
Documentation/devicetree/bindings/rtc/xgene-rtc.txt
··· 1 - * APM X-Gene Real Time Clock 2 - 3 - RTC controller for the APM X-Gene Real Time Clock 4 - 5 - Required properties: 6 - - compatible : Should be "apm,xgene-rtc" 7 - - reg: physical base address of the controller and length of memory mapped 8 - region. 9 - - interrupts: IRQ line for the RTC. 10 - - #clock-cells: Should be 1. 11 - - clocks: Reference to the clock entry. 12 - 13 - Example: 14 - 15 - rtcclk: rtcclk { 16 - compatible = "fixed-clock"; 17 - #clock-cells = <1>; 18 - clock-frequency = <100000000>; 19 - clock-output-names = "rtcclk"; 20 - }; 21 - 22 - rtc: rtc@10510000 { 23 - compatible = "apm,xgene-rtc"; 24 - reg = <0x0 0x10510000 0x0 0x400>; 25 - interrupts = <0x0 0x46 0x4>; 26 - #clock-cells = <1>; 27 - clocks = <&rtcclk 0>; 28 - };