dt-bindings: rtc: epson,rx6110: Convert to DT Schema
Subsystems (2)
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.
Signed-off-by Udaya Kiran Challa <[email protected]>
---
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
@@ -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
Quoted 4 lines · Udaya Kiran Challa
Convert the Epson RX6110 Real Time Clock devicetree binding from the legacy text format to DT schema.
Signed-off-by Udaya Kiran Challa <[email protected]>
Quoted 8 lines
---
Changelog:
Changes since v1:
- Reuse common SPI peripheral properties
- Drop redundant SPI-specific comment
- Remove unused labels from examples
Seemingly there are 2 v2s of this.
pw-bot: not-applicable