Skip to contentSkip to conversation

dt-bindings: rtc: epson,rx6110: Convert to DT Schema

PATCH Superseded Udaya Kiran Challa 2 participants 2 messages May 9

Subsystems (2)

v2 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 dt-bindings: rtc: epson,rx6110: Convert to DT Schema

Convert the Epson RX6110 Real Time Clock devicetree binding from the legacy text format to DT schema.

---
Changelog:
Changes since v1:
- Reuse common SPI peripheral properties
- Drop redundant SPI-specific comment
- Remove unused labels from examples

Link to v1:https://lore.kernel.org/all/[email protected]/

---
 .../devicetree/bindings/rtc/epson,rx6110.yaml | 23 +++++++------------
 1 file changed, 8 insertions(+), 15 deletions(-)
Documentation/devicetree/bindings/rtc/epson,rx6110.yaml +8 -15
index 32d15a014f91..b51d39ef75e4 100644
@@ -14,6 +14,9 @@ description: |
 maintainers:
   - Alexandre Belloni <[email protected]>
 
+allOf:
+  - $ref: /schemas/spi/spi-peripheral-props.yaml#
+
 properties:
   compatible:
     const: epson,rx6110
@@ -21,24 +24,14 @@ properties:
   reg:
     maxItems: 1
 
-  # SPI-specific properties
-  spi-cs-high:
-    type: boolean
-    description: RX6110 needs chipselect high
-
-  spi-cpha:
-    type: boolean
-    description: RX6110 works with SPI shifted clock phase
-
-  spi-cpol:
-    type: boolean
-    description: RX6110 works with SPI inverse clock polarity
+  spi-cpha: true
+  spi-cpol: true
 
 required:
   - compatible
   - reg
 
-additionalProperties: false
+unevaluatedProperties: false
 
 examples:
   # I2C mode
@@ -47,7 +40,7 @@ examples:
       #address-cells = <1>;
       #size-cells = <0>;
 
-      rtc1: rtc@32 {
+      rtc@32 {
         compatible = "epson,rx6110";
         reg = <0x32>;
       };
@@ -59,7 +52,7 @@ examples:
       #address-cells = <1>;
       #size-cells = <0>;
 
-      rtc2: rtc@3 {
+      rtc@3 {
         compatible = "epson,rx6110";
         reg = <3>;
         spi-cs-high;
Signature · 1 line
2.43.0
#1 lore raw
Quoted 4 lines · Udaya Kiran Challa

Convert the Epson RX6110 Real Time Clock devicetree binding from the legacy text format to DT schema.

Quoted 8 lines

---
Changelog:
Changes since v1:
- Reuse common SPI peripheral properties
- Drop redundant SPI-specific comment
- Remove unused labels from examples

Link to v1:https://lore.kernel.org/all/[email protected]/

Seemingly there are 2 v2s of this.
pw-bot: not-applicable