dt-bindings: watchdog: davinci-wdt: convert txt to yaml
Subsystems (2)
PATCH v3 1/1 dt-bindings: watchdog: davinci-wdt: convert txt to yaml
Convert txt file to yaml.
Add maintainers list.
Mark clock as required property, by reviewer's suggestion. Add power-domains as optional property, by reviewer's suggestion.
---
Changes in 3 (according to review comments):
- Added Andrew Davis <[email protected]> into maintainers list.
- Added power-domains property.
v2 patch: https://lore.kernel.org/all/[email protected]/
.../bindings/watchdog/davinci-wdt.txt | 24 --------- .../bindings/watchdog/ti,davinci-wdt.yaml | 52 +++++++++++++++++++ 2 files changed, 52 insertions(+), 24 deletions(-) delete mode 100644 Documentation/devicetree/bindings/watchdog/davinci-wdt.txt create mode 100644 Documentation/devicetree/bindings/watchdog/ti,davinci-wdt.yaml
Documentation/devicetree/bindings/watchdog/davinci-wdt.txt deleted +0 -24
@@ -1,24 +0,0 @@ -Texas Instruments DaVinci/Keystone Watchdog Timer (WDT) Controller - -Required properties: -- compatible : Should be "ti,davinci-wdt", "ti,keystone-wdt" -- reg : Should contain WDT registers location and length - -Optional properties: -- timeout-sec : Contains the watchdog timeout in seconds -- clocks : the clock feeding the watchdog timer. - Needed if platform uses clocks. - See clock-bindings.txt - -Documentation: -Davinci DM646x - https://www.ti.com/lit/ug/spruer5b/spruer5b.pdf -Keystone - https://www.ti.com/lit/ug/sprugv5a/sprugv5a.pdf - -Examples: - -wdt: wdt@2320000 { - compatible = "ti,davinci-wdt"; - reg = <0x02320000 0x80>; - timeout-sec = <30>; - clocks = <&clkwdtimer0>; -};
Documentation/devicetree/bindings/watchdog/ti,davinci-wdt.yaml new file +52 -0
52 lines not on this page · raw message
Signature · 1 line
2.34.1
Hey,
Quoted 83 lines · Nik Bune
Convert txt file to yaml.
Add maintainers list.
Mark clock as required property, by reviewer's suggestion. Add power-domains as optional property, by reviewer's suggestion.Signed-off-by Nik Bune <[email protected]>---
Changes in 3 (according to review comments):
- Added Andrew Davis <[email protected]> into maintainers list.
- Added power-domains property.v2 patch: https://lore.kernel.org/all/[email protected]/
.../bindings/watchdog/davinci-wdt.txt | 24 --------- .../bindings/watchdog/ti,davinci-wdt.yaml | 52 +++++++++++++++++++ 2 files changed, 52 insertions(+), 24 deletions(-) delete mode 100644 Documentation/devicetree/bindings/watchdog/davinci-wdt.txt create mode 100644 Documentation/devicetree/bindings/watchdog/ti,davinci-wdt.yamlDocumentation/devicetree/bindings/watchdog/davinci-wdt.txt deleted +0
-24@@ -1,24 +0,0 @@ -Texas Instruments DaVinci/Keystone Watchdog Timer (WDT) Controller - -Required properties: -- compatible : Should be "ti,davinci-wdt", "ti,keystone-wdt" -- reg : Should contain WDT registers location and length - -Optional properties: -- timeout-sec : Contains the watchdog timeout in seconds -- clocks : the clock feeding the watchdog timer. - Needed if platform uses clocks. - See clock-bindings.txt - -Documentation: -Davinci DM646x - https://www.ti.com/lit/ug/spruer5b/spruer5b.pdf -Keystone - https://www.ti.com/lit/ug/sprugv5a/sprugv5a.pdf - -Examples: - -wdt: wdt@2320000 { - compatible = "ti,davinci-wdt"; - reg = <0x02320000 0x80>; - timeout-sec = <30>; - clocks = <&clkwdtimer0>; -};Documentation/devicetree/bindings/watchdog/ti,davinci-wdt.yaml new file +26
-0@@ -0,0 +1,52 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/watchdog/ti,davinci-wdt.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments DaVinci/Keystone Watchdog Timer (WDT) Controller + +description: | + Documentation: + Davinci DM646x - https://www.ti.com/lit/ug/spruer5b/spruer5b.pdf + Keystone - https://www.ti.com/lit/ug/sprugv5a/sprugv5a + +maintainers: + - Andrew Davis <[email protected]> + +allOf: + - $ref: watchdog.yaml# + +properties: + compatible: + enum: + - ti,davinci-wdt + - ti,keystone-wdt + + reg:
Documentation/devicetree/bindings/watchdog/ti,davinci-wdt.yaml line 36
Quoted 10 lines
Documentation/devicetree/bindings/watchdog/ti,davinci-wdt.yaml new file +10
-0+ maxItems: 1 + + clocks: + maxItems: 1 + + power-domains: + description: + A phandle and PM domain specifier as defined by bindings of + the power controller specified by phandle. + See Documentation/devicetree/bindings/power/power-domain.yaml for details.
I think you missed Rob's comment in reply to Andrew, about constraining and ordering the power-domains:
https://lore.kernel.org/all/[email protected]/
Cheers,
Conor.
Quoted 19 lines
Documentation/devicetree/bindings/watchdog/ti,davinci-wdt.yaml new file +16
-0+ +required: + - compatible + - reg + - clocks + +unevaluatedProperties: false + +examples: + - | + watchdog@2320000 { + compatible = "ti,davinci-wdt"; + reg = <0x02320000 0x80>; + timeout-sec = <30>; + clocks = <&clkwdtimer0>; + };Signature · 1 line
2.34.1
Hello!
Thank you for your review.
Quoted 102 lines · Conor Dooley
Hey,
Quoted 83 lines · Nik Bune
Convert txt file to yaml.
Add maintainers list.
Mark clock as required property, by reviewer's suggestion. Add power-domains as optional property, by reviewer's suggestion.Signed-off-by Nik Bune <[email protected]>---
Changes in 3 (according to review comments):
- Added Andrew Davis <[email protected]> into maintainers list.
- Added power-domains property.v2 patch: https://lore.kernel.org/all/[email protected]/
.../bindings/watchdog/davinci-wdt.txt | 24 --------- .../bindings/watchdog/ti,davinci-wdt.yaml | 52 +++++++++++++++++++ 2 files changed, 52 insertions(+), 24 deletions(-) delete mode 100644 Documentation/devicetree/bindings/watchdog/davinci-wdt.txt create mode 100644 Documentation/devicetree/bindings/watchdog/ti,davinci-wdt.yamlDocumentation/devicetree/bindings/watchdog/davinci-wdt.txt deleted +0
-24@@ -1,24 +0,0 @@ -Texas Instruments DaVinci/Keystone Watchdog Timer (WDT) Controller - -Required properties: -- compatible : Should be "ti,davinci-wdt", "ti,keystone-wdt" -- reg : Should contain WDT registers location and length - -Optional properties: -- timeout-sec : Contains the watchdog timeout in seconds -- clocks : the clock feeding the watchdog timer. - Needed if platform uses clocks. - See clock-bindings.txt - -Documentation: -Davinci DM646x - https://www.ti.com/lit/ug/spruer5b/spruer5b.pdf -Keystone - https://www.ti.com/lit/ug/sprugv5a/sprugv5a.pdf - -Examples: - -wdt: wdt@2320000 { - compatible = "ti,davinci-wdt"; - reg = <0x02320000 0x80>; - timeout-sec = <30>; - clocks = <&clkwdtimer0>; -};Documentation/devicetree/bindings/watchdog/ti,davinci-wdt.yaml new file +26
-0@@ -0,0 +1,52 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/watchdog/ti,davinci-wdt.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments DaVinci/Keystone Watchdog Timer (WDT) Controller + +description: | + Documentation: + Davinci DM646x - https://www.ti.com/lit/ug/spruer5b/spruer5b.pdf + Keystone - https://www.ti.com/lit/ug/sprugv5a/sprugv5a + +maintainers: + - Andrew Davis <[email protected]> + +allOf: + - $ref: watchdog.yaml# + +properties: + compatible: + enum: + - ti,davinci-wdt + - ti,keystone-wdt + + reg:Documentation/devicetree/bindings/watchdog/ti,davinci-wdt.yaml line 36
Quoted 10 lines
Documentation/devicetree/bindings/watchdog/ti,davinci-wdt.yaml new file +10
-0+ maxItems: 1 + + clocks: + maxItems: 1 + + power-domains: + description: + A phandle and PM domain specifier as defined by bindings of + the power controller specified by phandle. + See Documentation/devicetree/bindings/power/power-domain.yaml for details.I think you missed Rob's comment in reply to Andrew, about constraining and ordering the power-domains:
https://lore.kernel.org/all/[email protected]/
Quoted 2 lines
Cheers,
Conor.
I didn't get what should be done with respect to the comment above:
Should we wait for the response from Andrew,
or should we skip and remove the the power-domains definition for this binding, or add "maxItems: 1" to power-domains definition?
Thanks, Nik.
Quoted 20 lines
Quoted 20 lines
Documentation/devicetree/bindings/watchdog/ti,davinci-wdt.yaml new file +16
-1+ +required: + - compatible + - reg + - clocks + +unevaluatedProperties: false + +examples: + - | + watchdog@2320000 { + compatible = "ti,davinci-wdt"; + reg = <0x02320000 0x80>; + timeout-sec = <30>; + clocks = <&clkwdtimer0>; + }; --2.34.1
Quoted 10 lines · Nik Bune
Quoted 10 lines
Documentation/devicetree/bindings/watchdog/ti,davinci-wdt.yaml line 36
Quoted 5 lines
Documentation/devicetree/bindings/watchdog/ti,davinci-wdt.yaml new file +5
-0+ power-domains: + description: + A phandle and PM domain specifier as defined by bindings of + the power controller specified by phandle. + See Documentation/devicetree/bindings/power/power-domain.yaml for details.I think you missed Rob's comment in reply to Andrew, about constraining and ordering the power-domains:
https://lore.kernel.org/all/[email protected]/
Quoted 7 lines
Quoted 2 lines
Cheers,
Conor.I didn't get what should be done with respect to the comment above:
Should we wait for the response from Andrew,
or should we skip and remove the the power-domains definition for this binding, or add "maxItems: 1" to power-domains definition?
None of the options above allow to send the same code without maxItems. Sending new version without addressing feedback is basically ignoring the feedback and next time you will have annoyed reviewers...
Best regards,
Krzysztof
Hello!
Quoted 20 lines · Krzysztof Kozlowski
Quoted 10 lines · Nik Bune
Quoted 10 lines
Documentation/devicetree/bindings/watchdog/ti,davinci-wdt.yaml line 36
Quoted 5 lines
Documentation/devicetree/bindings/watchdog/ti,davinci-wdt.yaml new file +5
-0+ power-domains: + description: + A phandle and PM domain specifier as defined by bindings of + the power controller specified by phandle. + See Documentation/devicetree/bindings/power/power-domain.yaml for details.I think you missed Rob's comment in reply to Andrew, about constraining and ordering the power-domains:
https://lore.kernel.org/all/[email protected]/Quoted 7 lines
Quoted 2 lines
Cheers,
Conor.I didn't get what should be done with respect to the comment above:
Should we wait for the response from Andrew,
or should we skip and remove the the power-domains definition for this binding, or add "maxItems: 1" to power-domains definition?
Quoted 7 lines
None of the options above allow to send the same code without maxItems. Sending new version without addressing feedback is basically ignoring the feedback and next time you will have annoyed reviewers...
Best regards,
Krzysztof
I didn't ignore. v3 patch was sent 37 minutes before the Rob's comment to v2.
Kind regards, Nik.
Quoted 26 lines · Nik Bune
Hello!
Quoted 24 lines · Krzysztof Kozlowski
Quoted 10 lines · Nik Bune
Quoted 10 lines
Documentation/devicetree/bindings/watchdog/ti,davinci-wdt.yaml line 36
Quoted 5 lines
Documentation/devicetree/bindings/watchdog/ti,davinci-wdt.yaml new file +5
-0+ power-domains: + description: + A phandle and PM domain specifier as defined by bindings of + the power controller specified by phandle. + See Documentation/devicetree/bindings/power/power-domain.yaml for details.I think you missed Rob's comment in reply to Andrew, about constraining and ordering the power-domains:
https://lore.kernel.org/all/[email protected]/Quoted 7 lines
Quoted 2 lines
Cheers,
Conor.I didn't get what should be done with respect to the comment above:
Should we wait for the response from Andrew,
or should we skip and remove the the power-domains definition for this binding, or add "maxItems: 1" to power-domains definition?None of the options above allow to send the same code without maxItems. Sending new version without addressing feedback is basically ignoring the feedback and next time you will have annoyed reviewers...
Quoted 5 lines
Quoted 3 lines
Best regards,
KrzysztofI didn't ignore. v3 patch was sent 37 minutes before the Rob's comment to v2.
Ah, sorry, it's good then :). Rob's comment still applies, though.
Best regards,
Krzysztof