dt-bindings: rtc: epson,rx6110: Convert to DT Schema
Subsystems (2)
PATCH 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.
--- .../devicetree/bindings/rtc/epson,rx6110.txt | 39 ----------- .../devicetree/bindings/rtc/epson,rx6110.yaml | 69 +++++++++++++++++++ 2 files changed, 69 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 +69 -0
69 lines not on this page · raw message
Signature · 1 line
2.43.0
Quoted 76 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]>--- .../devicetree/bindings/rtc/epson,rx6110.txt | 39 ----------- .../devicetree/bindings/rtc/epson,rx6110.yaml | 69 +++++++++++++++++++ 2 files changed, 69 insertions(+), 39 deletions(-) delete mode 100644 Documentation/devicetree/bindings/rtc/epson,rx6110.txt create mode 100644 Documentation/devicetree/bindings/rtc/epson,rx6110.yamlDocumentation/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 +14
-0@@ -0,0 +1,69 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/rtc/epson,rx6110.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Epson RX6110 Real Time Clock + +description: | + 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. + +maintainers:
Documentation/devicetree/bindings/rtc/epson,rx6110.yaml line 24
Quoted 10 lines
Documentation/devicetree/bindings/rtc/epson,rx6110.yaml new file +10
-0+ - Alexandre Belloni <[email protected]> + +properties: + compatible: + const: epson,rx6110 + + reg: + maxItems: 1 + + # SPI-specific properties
Drop the obvious comment.
Documentation/devicetree/bindings/rtc/epson,rx6110.yaml line 35
Quoted 11 lines
Documentation/devicetree/bindings/rtc/epson,rx6110.yaml new file +11
-0+ 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
These spi properties should be replaced by a ref to /schemas/spi/spi-peripheral-props.yaml and become "spi-foo: true", unless you want to reword these descriptions
to make it clear that these are all mandatory.
pw-bot: changes-requested
Cheers,
Conor.
Quoted 5 lines
Documentation/devicetree/bindings/rtc/epson,rx6110.yaml new file +5
-0+ +required: + - compatible + - reg +
Documentation/devicetree/bindings/rtc/epson,rx6110.yaml line 50
Quoted 10 lines
Documentation/devicetree/bindings/rtc/epson,rx6110.yaml new file +10
-0+additionalProperties: false + +examples: + # I2C mode + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + rtc1: rtc@32 {
Drop the labels here, since they have no users.
Quoted 22 lines
Documentation/devicetree/bindings/rtc/epson,rx6110.yaml new file +19
-0+ compatible = "epson,rx6110"; + reg = <0x32>; + }; + }; + + # SPI mode + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + + rtc2: rtc@3 { + compatible = "epson,rx6110"; + reg = <3>; + spi-cs-high; + spi-cpha; + spi-cpol; + }; + };Signature · 1 line
2.43.0