Skip to content

Commit adab39e

Browse files
Stanislav Jakubekalexandrebelloni
authored andcommitted
dt-bindings: rtc: sprd,sc2731-rtc: convert to YAML
Convert the Spreadtrum SC2731 RTC bindings to DT schema. Rename file to match compatible. Signed-off-by: Stanislav Jakubek <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/ZolsyEC8eeJWNIb6@standask-GA-A55M-S2HP Signed-off-by: Alexandre Belloni <[email protected]>
1 parent 04dcadb commit adab39e

File tree

2 files changed

+49
-26
lines changed

2 files changed

+49
-26
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/rtc/sprd,sc2731-rtc.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Spreadtrum SC2731 Real Time Clock
8+
9+
maintainers:
10+
- Orson Zhai <[email protected]>
11+
- Baolin Wang <[email protected]>
12+
- Chunyan Zhang <[email protected]>
13+
14+
properties:
15+
compatible:
16+
const: sprd,sc2731-rtc
17+
18+
reg:
19+
maxItems: 1
20+
21+
interrupts:
22+
maxItems: 1
23+
24+
required:
25+
- compatible
26+
- reg
27+
- interrupts
28+
29+
allOf:
30+
- $ref: rtc.yaml#
31+
32+
unevaluatedProperties: false
33+
34+
examples:
35+
- |
36+
#include <dt-bindings/interrupt-controller/irq.h>
37+
38+
pmic {
39+
#address-cells = <1>;
40+
#size-cells = <0>;
41+
42+
rtc@280 {
43+
compatible = "sprd,sc2731-rtc";
44+
reg = <0x280>;
45+
interrupt-parent = <&sc2731_pmic>;
46+
interrupts = <2 IRQ_TYPE_LEVEL_HIGH>;
47+
};
48+
};
49+
...

Documentation/devicetree/bindings/rtc/sprd,sc27xx-rtc.txt

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)