Skip to content

Commit 5ff89ef

Browse files
PiyushPatle26alexandrebelloni
authored andcommitted
dt-bindings: rtc: isl12026: convert to YAML schema
Convert the ISL12026 RTC binding from text format to YAML schema. Remove the legacy text binding. The new schema enables dtbs_check validation. Signed-off-by: Piyush Patle <piyushpatle228@gmail.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com> Link: https://patch.msgid.link/20260227185115.174997-1-piyushpatle228@gmail.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
1 parent 1066304 commit 5ff89ef

2 files changed

Lines changed: 59 additions & 28 deletions

File tree

Documentation/devicetree/bindings/rtc/isil,isl12026.txt

Lines changed: 0 additions & 28 deletions
This file was deleted.
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/rtc/isil,isl12026.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Intersil ISL12026 I2C RTC/EEPROM
8+
9+
maintainers:
10+
- Piyush Patle <piyushpatle228@gmail.com>
11+
12+
description:
13+
The ISL12026 is a combination RTC and EEPROM device connected via I2C.
14+
The RTC and control registers respond at address 0x6f, while the EEPROM
15+
array responds at address 0x57. The "reg" property refers to the RTC
16+
portion of the device.
17+
18+
allOf:
19+
- $ref: rtc.yaml#
20+
21+
properties:
22+
compatible:
23+
const: isil,isl12026
24+
25+
reg:
26+
maxItems: 1
27+
description: I2C address of the RTC portion (must be 0x6f)
28+
29+
isil,pwr-bsw:
30+
$ref: /schemas/types.yaml#/definitions/uint32
31+
enum: [ 0, 1 ]
32+
description:
33+
Value written to the PWR.BSW bit for proper device operation.
34+
35+
isil,pwr-sbib:
36+
$ref: /schemas/types.yaml#/definitions/uint32
37+
enum: [ 0, 1 ]
38+
description:
39+
Value written to the PWR.SBIB bit for proper device operation.
40+
41+
required:
42+
- compatible
43+
- reg
44+
45+
unevaluatedProperties: false
46+
47+
examples:
48+
- |
49+
i2c {
50+
#address-cells = <1>;
51+
#size-cells = <0>;
52+
53+
rtc@6f {
54+
compatible = "isil,isl12026";
55+
reg = <0x6f>;
56+
isil,pwr-bsw = <0>;
57+
isil,pwr-sbib = <1>;
58+
};
59+
};

0 commit comments

Comments
 (0)