dt-bindings: convert rtc/faraday,ftrtc01 to yaml
Subsystems (3)
PATCH 1/2 dt-bindings: convert rtc/faraday,ftrtc01 to yaml
Converts rtc/faraday,ftrtc01.txt to yaml.
This permits to detect some missing properties: reg, resets, interrupts
--- .../bindings/rtc/faraday,ftrtc010.txt | 28 --------- .../bindings/rtc/faraday,ftrtc010.yaml | 59 +++++++++++++++++++ 2 files changed, 59 insertions(+), 28 deletions(-) delete mode 100644 Documentation/devicetree/bindings/rtc/faraday,ftrtc010.txt create mode 100644 Documentation/devicetree/bindings/rtc/faraday,ftrtc010.yaml
Documentation/devicetree/bindings/rtc/faraday,ftrtc010.txt deleted +0 -28
@@ -1,28 +0,0 @@ -* Faraday Technology FTRTC010 Real Time Clock - -This RTC appears in for example the Storlink Gemini family of -SoCs. - -Required properties: -- compatible : Should be one of: - "faraday,ftrtc010" - "cortina,gemini-rtc", "faraday,ftrtc010" - -Optional properties: -- clocks: when present should contain clock references to the - PCLK and EXTCLK clocks. Faraday calls the later CLK1HZ and - says the clock should be 1 Hz, but implementers actually seem - to choose different clocks here, like Cortina who chose - 32768 Hz (a typical low-power clock). -- clock-names: should name the clocks "PCLK" and "EXTCLK" - respectively. - -Examples: - -rtc@45000000 { - compatible = "cortina,gemini-rtc"; - reg = <0x45000000 0x100>; - interrupts = <17 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&foo 0>, <&foo 1>; - clock-names = "PCLK", "EXTCLK"; -};
Documentation/devicetree/bindings/rtc/faraday,ftrtc010.yaml new file +59 -0
59 lines not on this page · raw message
Signature · 1 line
2.26.3
PATCH 2/2 ARM: dts: gemini: use the right rtc compatible
The rtc compatible was not following the dt-binding.
--- arch/arm/boot/dts/gemini.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/gemini.dtsi +1 -1
@@ -191,7 +191,7 @@ timer@43000000 { }; rtc@45000000 { - compatible = "cortina,gemini-rtc"; + compatible = "cortina,gemini-rtc", "faraday,ftrtc010"; reg = <0x45000000 0x100>; interrupts = <17 IRQ_TYPE_LEVEL_HIGH>; resets = <&syscon GEMINI_RESET_RTC>;
Signature · 1 line
2.26.3
Quoted 4 lines · Corentin Labbe
Converts
rtc/faraday,ftrtc01.txtto yaml.
This permits to detect some missing properties: reg, resets, interruptsSigned-off-by Corentin Labbe <[email protected]>
Thanks for doing this, LGTM
Yours,
Linus Walleij
Re: [PATCH 2/2] ARM: dts: gemini: use the right rtc compatible
In reply to Corentin LabbeQuoted 3 lines · Corentin Labbe
The rtc compatible was not following the dt-binding.
Signed-off-by Corentin Labbe <[email protected]>
Patch applied!
Yours,
Linus Walleij
Rob Herring
maintainerQuoted 29 lines · Corentin Labbe
Converts
rtc/faraday,ftrtc01.txtto yaml.
This permits to detect some missing properties: reg, resets, interruptsSigned-off-by Corentin Labbe <[email protected]>--- .../bindings/rtc/faraday,ftrtc010.txt | 28 --------- .../bindings/rtc/faraday,ftrtc010.yaml | 59 +++++++++++++++++++ 2 files changed, 59 insertions(+), 28 deletions(-) delete mode 100644 Documentation/devicetree/bindings/rtc/faraday,ftrtc010.txt create mode 100644 Documentation/devicetree/bindings/rtc/faraday,ftrtc010.yamlDocumentation/devicetree/bindings/rtc/faraday,ftrtc010.yaml new file +11
-0@@ -0,0 +1,59 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/rtc/faraday,ftrtc010.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Faraday Technology FTRTC010 Real Time Clock + +maintainers: + - Linus Walleij <[email protected]> +
Documentation/devicetree/bindings/rtc/faraday,ftrtc010.yaml line 21
Quoted 10 lines
Documentation/devicetree/bindings/rtc/faraday,ftrtc010.yaml new file +10
-0+description: | + This RTC appears in for example the Storlink Gemini family of SoCs. + +properties: + compatible: + oneOf: + - const: "faraday,ftrtc010" + - items: + - const: "cortina,gemini-rtc" + - const: "faraday,ftrtc010"
Drop quotes.
Quoted 7 lines
Documentation/devicetree/bindings/rtc/faraday,ftrtc010.yaml new file +7
-0+ + resets: + maxItems: 1 + + reg: + maxItems: 1 +
Documentation/devicetree/bindings/rtc/faraday,ftrtc010.yaml line 38
Quoted 10 lines
Documentation/devicetree/bindings/rtc/faraday,ftrtc010.yaml new file +10
-0+ interrupts: + maxItems: 1 + + clocks: + minItems: 2 + description: when present should contain clock references to the + PCLK and EXTCLK clocks. Faraday calls the later CLK1HZ and + says the clock should be 1 Hz, but implementers actually seem + to choose different clocks here, like Cortina who chose + 32768 Hz (a typical low-power clock).
Normal formatting is 2 space indent.
Split to use 'items' like PCI.
Quoted 24 lines
Documentation/devicetree/bindings/rtc/faraday,ftrtc010.yaml new file +21
-0+ + clock-names: + items: + - const: "PCLK" + - const: "EXTCLK" + +required: + - compatible + +additionalProperties: false + +examples: + - | + #include <dt-bindings/interrupt-controller/irq.h> + rtc@45000000 { + compatible = "cortina,gemini-rtc", "faraday,ftrtc010"; + reg = <0x45000000 0x100>; + interrupts = <17 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&foo 0>, <&foo 1>; + clock-names = "PCLK", "EXTCLK"; + };Signature · 1 line
2.26.3