dt-bindings: rtc: epson,rx6110: Convert to DT Schema
Subsystems (2)
PATCH v5 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 v4:
- Replace conditional SPI mode properties with dependencies
- Simplify description formatting and wrap lines at 80 chars
Link to v4:https://lore.kernel.org/all/[email protected]/
Changes since v3:
- Add conditional validation for SPI mode properties using anyOf
Link to v3:https://lore.kernel.org/all/[email protected]/
Changes since v2:
- Reference rtc.yaml for common RTC properties
- Add conditional validation for SPI mode properties
Link to v2:https://lore.kernel.org/all/[email protected]/
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.txt | 39 ----------- .../devicetree/bindings/rtc/epson,rx6110.yaml | 68 +++++++++++++++++++ 2 files changed, 68 insertions(+), 39 deletions(-) delete mode 100644 Documentation/devicetree/bindings/rtc/epson,rx6110.txt create mode 100644 Documentation/devicetree/bindings/rtc/epson,rx6110.yaml
Documentation/devicetree/bindings/rtc/epson,rx6110.txt deleted +0 -39
@@ -1,39 +0,0 @@ -Epson RX6110 Real Time Clock -============================ - -The Epson RX6110 can be used with SPI or I2C busses. The kind of -bus depends on the SPISEL pin and can not be configured via software. - -I2C mode --------- - -Required properties: - - compatible: should be: "epson,rx6110" - - reg : the I2C address of the device for I2C - -Example: - - rtc: rtc@32 { - compatible = "epson,rx6110" - reg = <0x32>; - }; - -SPI mode --------- - -Required properties: - - compatible: should be: "epson,rx6110" - - reg: chip select number - - spi-cs-high: RX6110 needs chipselect high - - spi-cpha: RX6110 works with SPI shifted clock phase - - spi-cpol: RX6110 works with SPI inverse clock polarity - -Example: - - rtc: rtc@3 { - compatible = "epson,rx6110" - reg = <3> - spi-cs-high; - spi-cpha; - spi-cpol; - };
Documentation/devicetree/bindings/rtc/epson,rx6110.yaml new file +68 -0
68 lines not on this page · raw message
Signature · 1 line
2.43.0
Quoted 5 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]>---
Best regards,
Krzysztof
Quoted 2 lines · Udaya Kiran Challa
Convert the Epson RX6110 Real Time Clock devicetree binding from the legacy text format to DT schema.
Applied, thanks!
[1/1] dt-bindings: rtc: epson,rx6110: Convert to DT Schema
https://git.kernel.org/abelloni/c/c7ab7504631d
Best regards,
Signature · 3 lines
Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com