Skip to content

Commit ffc0052

Browse files
Villemoesalexandrebelloni
authored andcommitted
dt-bindings: rtc: Move isil,isl12022 from trivial-rtc.yaml into own schema file
Move the isil,isl12022 RTC bindings from trivial-rtc.yaml into its own intersil,isl12022.yaml file, in preparation for adding more bindings. Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk> Link: https://lore.kernel.org/r/20230615105826.411953-3-linux@rasmusvillemoes.dk Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
1 parent 4d6af37 commit ffc0052

2 files changed

Lines changed: 45 additions & 2 deletions

File tree

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/rtc/intersil,isl12022.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Intersil ISL12022 Real-time Clock
8+
9+
maintainers:
10+
- Alexandre Belloni <alexandre.belloni@bootlin.com>
11+
12+
properties:
13+
compatible:
14+
const: isil,isl12022
15+
16+
reg:
17+
maxItems: 1
18+
19+
interrupts:
20+
maxItems: 1
21+
22+
required:
23+
- compatible
24+
- reg
25+
26+
allOf:
27+
- $ref: rtc.yaml#
28+
29+
unevaluatedProperties: false
30+
31+
examples:
32+
- |
33+
#include <dt-bindings/interrupt-controller/irq.h>
34+
i2c {
35+
#address-cells = <1>;
36+
#size-cells = <0>;
37+
38+
rtc@6f {
39+
compatible = "isil,isl12022";
40+
reg = <0x6f>;
41+
interrupts-extended = <&gpio1 5 IRQ_TYPE_LEVEL_LOW>;
42+
};
43+
};
44+
45+
...

Documentation/devicetree/bindings/rtc/trivial-rtc.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ properties:
4545
- isil,isl1208
4646
# Intersil ISL1218 Low Power RTC with Battery Backed SRAM
4747
- isil,isl1218
48-
# Intersil ISL12022 Real-time Clock
49-
- isil,isl12022
5048
# Real Time Clock Module with I2C-Bus
5149
- microcrystal,rv3029
5250
# Real Time Clock

0 commit comments

Comments
 (0)