dt-bindings: watchdog: Convert stm32 watchdog bindings to json-schema
Subsystems (3)
PATCH 1/1 dt-bindings: watchdog: Convert stm32 watchdog bindings to json-schema
Convert the STM32 watchdog binding to DT schema format using json-schema
--- .../devicetree/bindings/watchdog/st,stm32-iwdg.txt | 26 ----------- .../bindings/watchdog/st,stm32-iwdg.yaml | 54 ++++++++++++++++++++++ 2 files changed, 54 insertions(+), 26 deletions(-) delete mode 100644 Documentation/devicetree/bindings/watchdog/st,stm32-iwdg.txt create mode 100644 Documentation/devicetree/bindings/watchdog/st,stm32-iwdg.yaml
Documentation/devicetree/bindings/watchdog/st,stm32-iwdg.txt deleted +0 -26
@@ -1,26 +0,0 @@ -STM32 Independent WatchDoG (IWDG) ---------------------------------- - -Required properties: -- compatible: Should be either: - - "st,stm32-iwdg" - - "st,stm32mp1-iwdg" -- reg: Physical base address and length of the registers set for the device -- clocks: Reference to the clock entry lsi. Additional pclk clock entry - is required only for st,stm32mp1-iwdg. -- clock-names: Name of the clocks used. - "lsi" for st,stm32-iwdg - "lsi", "pclk" for st,stm32mp1-iwdg - -Optional Properties: -- timeout-sec: Watchdog timeout value in seconds. - -Example: - -iwdg: watchdog@40003000 { - compatible = "st,stm32-iwdg"; - reg = <0x40003000 0x400>; - clocks = <&clk_lsi>; - clock-names = "lsi"; - timeout-sec = <32>; -};
Documentation/devicetree/bindings/watchdog/st,stm32-iwdg.yaml new file +54 -0
54 lines not on this page · raw message
Signature · 7 lines
2.15.0 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Hi Benjamin
Quoted 48 lines · Benjamin Gaignard
Convert the STM32 watchdog binding to DT schema format using json-schema
Signed-off-by Benjamin Gaignard <[email protected]>--- .../devicetree/bindings/watchdog/st,stm32-iwdg.txt | 26 ----------- .../bindings/watchdog/st,stm32-iwdg.yaml | 54 ++++++++++++++++++++++ 2 files changed, 54 insertions(+), 26 deletions(-)delete mode 100644
Documentation/devicetree/bindings/watchdog/st,stm32-iwdg.txtcreate mode 100644Documentation/devicetree/bindings/watchdog/st,stm32-iwdg.yamlDocumentation/devicetree/bindings/watchdog/st,stm32-iwdg.txt deleted +0
-26@@ -1,26 +0,0 @@ -STM32 Independent WatchDoG (IWDG) ---------------------------------- - -Required properties: -- compatible: Should be either: - - "st,stm32-iwdg" - - "st,stm32mp1-iwdg" -- reg: Physical base address and length of the registers set for the device -- clocks: Reference to the clock entry lsi. Additional pclk clock entry - is required only for st,stm32mp1-iwdg. -- clock-names: Name of the clocks used. - "lsi" for st,stm32-iwdg - "lsi", "pclk" for st,stm32mp1-iwdg - -Optional Properties: -- timeout-sec: Watchdog timeout value in seconds. - -Example: - -iwdg: watchdog@40003000 { - compatible = "st,stm32-iwdg"; - reg = <0x40003000 0x400>; - clocks = <&clk_lsi>; - clock-names = "lsi"; - timeout-sec = <32>; -};Documentation/devicetree/bindings/watchdog/st,stm32-iwdg.yaml new file +0
-0
Documentation/devicetree/bindings/watchdog/st,stm32-iwdg.yaml line 10
Quoted 10 lines
Documentation/devicetree/bindings/watchdog/st,stm32-iwdg.yaml new file +10
-0@@ -0,0 +1,54 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/watchdog/st,stm32-iwdg.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: STMicroelectronics STM32 Independent WatchDoG (IWDG) bindings + +maintainers: + - Yannick Fertre <[email protected]>
Yannick is still working on this driver ?
Quoted 35 lines
Documentation/devicetree/bindings/watchdog/st,stm32-iwdg.yaml new file +34
-0+ +allOf: + - $ref: "watchdog.yaml#" + +properties: + compatible: + enum: + - st,stm32-iwdg + - st,stm32mp1-iwdg + + reg: + maxItems: 1 + + clocks: + items: + - description: Low speed clock + - description: Optional peripheral clock + minItems: 1 + maxItems: 2 + + clock-names: + items: + enums: [ lsi, pclk ] + minItems: 1 + maxItems: 2 + +required: + - compatible + - reg + - clocks + - clock-names + +examples: + - |
Documentation/devicetree/bindings/watchdog/st,stm32-iwdg.yaml line 54
Quoted 10 lines
Documentation/devicetree/bindings/watchdog/st,stm32-iwdg.yaml new file +10
-0+ #include <dt-bindings/clock/stm32mp1-clks.h> + watchdog@5a002000 { + compatible = "st,stm32mp1-iwdg"; + reg = <0x5a002000 0x400>; + clocks = <&rcc IWDG2>, <&rcc CK_LSI>; + clock-names = "pclk", "lsi"; + timeout-sec = <32>; + }; + +...
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Quoted 63 lines · Alexandre Torgue
Hi Benjamin
Quoted 60 lines · Benjamin Gaignard
Convert the STM32 watchdog binding to DT schema format using json-schema
Signed-off-by Benjamin Gaignard <[email protected]>---
.../devicetree/bindings/watchdog/st,stm32-iwdg.txt| 26 ----------- .../bindings/watchdog/st,stm32-iwdg.yaml | 54
++++++++++++++++++++++2 files changed, 54 insertions(+), 26 deletions(-)delete mode 100644
Documentation/devicetree/bindings/watchdog/st,stm32-iwdg.txtcreate mode 100644Documentation/devicetree/bindings/watchdog/st,stm32-iwdg.yaml(quoted diff) +0
-0
a/Documentation/devicetree/bindings/watchdog/st,stm32-iwdg.txtb/Documentation/devicetree/bindings/watchdog/st,stm32-iwdg.txtdeleted file mode 100644
index d8f4430b0a13..000000000000Documentation/devicetree/bindings/watchdog/st,stm32-iwdg.txt deleted +0
-8@@ -1,26 +0,0 @@ -STM32 Independent WatchDoG (IWDG) ---------------------------------- - -Required properties: -- compatible: Should be either: - - "st,stm32-iwdg" - - "st,stm32mp1-iwdg" -- reg: Physical base address and length of the registers set for thedevice
-- clocks: Reference to the clock entry lsi. Additional pclk clock entry - is required only for st,stm32mp1-iwdg.
-- clock-names: Name of the clocks used.
- "lsi" for st,stm32-iwdg
- "lsi", "pclk" for st,stm32mp1-iwdgDocumentation/devicetree/bindings/watchdog/st,stm32-iwdg.txt deleted +0
-13- -Optional Properties: -- timeout-sec: Watchdog timeout value in seconds. - -Example: - -iwdg: watchdog@40003000 { - compatible = "st,stm32-iwdg"; - reg = <0x40003000 0x400>; - clocks = <&clk_lsi>; - clock-names = "lsi"; - timeout-sec = <32>; -};(quoted diff) +0
-0
a/Documentation/devicetree/bindings/watchdog/st,stm32-iwdg.yamlb/Documentation/devicetree/bindings/watchdog/st,stm32-iwdg.yamlnew file mode 100644
index 000000000000..edec96d53e6bDocumentation/devicetree/bindings/watchdog/st,stm32-iwdg.yaml new file +4
-0@@ -0,0 +1,54 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/watchdog/st,stm32-iwdg.yaml#
Quoted 8 lines
Documentation/devicetree/bindings/watchdog/st,stm32-iwdg.yaml line 10
Quoted 6 lines
Documentation/devicetree/bindings/watchdog/st,stm32-iwdg.yaml new file +6
-0+$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: STMicroelectronics STM32 Independent WatchDoG (IWDG) bindings + +maintainers: + - Yannick Fertre <[email protected]>Yannick is still working on this driver ?
That is a good question.
Rob, can we use the STM32 dedicated mailing list address for this mainteners field ?
maintainers:
- linux STM32 <[email protected]>
Regards,
Benjamin
Quoted 38 lines
Quoted 38 lines
Documentation/devicetree/bindings/watchdog/st,stm32-iwdg.yaml new file +37
-0+ +allOf: + - $ref: "watchdog.yaml#" + +properties: + compatible: + enum: + - st,stm32-iwdg + - st,stm32mp1-iwdg + + reg: + maxItems: 1 + + clocks: + items: + - description: Low speed clock + - description: Optional peripheral clock + minItems: 1 + maxItems: 2 + + clock-names: + items: + enums: [ lsi, pclk ] + minItems: 1 + maxItems: 2 + +required: + - compatible + - reg + - clocks + - clock-names + +examples: + - | + #include <dt-bindings/clock/stm32mp1-clks.h> + watchdog@5a002000 { + compatible = "st,stm32mp1-iwdg";
Quoted 8 lines
Documentation/devicetree/bindings/watchdog/st,stm32-iwdg.yaml line 54
Quoted 8 lines
Documentation/devicetree/bindings/watchdog/st,stm32-iwdg.yaml new file +7
-0+ reg = <0x5a002000 0x400>; + clocks = <&rcc IWDG2>, <&rcc CK_LSI>; + clock-names = "pclk", "lsi"; + timeout-sec = <32>; + }; + +...
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Guenter Roeck
maintainerQuoted 74 lines · Benjamin GAIGNARD
Quoted 63 lines · Alexandre Torgue
Hi Benjamin
Quoted 60 lines · Benjamin Gaignard
Convert the STM32 watchdog binding to DT schema format using json-schema
Signed-off-by Benjamin Gaignard <[email protected]>--- .../devicetree/bindings/watchdog/st,stm32-iwdg.txt | 26 ----------- .../bindings/watchdog/st,stm32-iwdg.yaml | 54 ++++++++++++++++++++++ 2 files changed, 54 insertions(+), 26 deletions(-)delete mode 100644
Documentation/devicetree/bindings/watchdog/st,stm32-iwdg.txt
create mode 100644Documentation/devicetree/bindings/watchdog/st,stm32-iwdg.yamldiff --git
a/Documentation/devicetree/bindings/watchdog/st,stm32-iwdg.txtb/Documentation/devicetree/bindings/watchdog/st,stm32-iwdg.txtdeleted file mode 100644
index d8f4430b0a13..000000000000Documentation/devicetree/bindings/watchdog/st,stm32-iwdg.txt deleted +0
-8@@ -1,26 +0,0 @@ -STM32 Independent WatchDoG (IWDG) ---------------------------------- - -Required properties: -- compatible: Should be either: - - "st,stm32-iwdg" - - "st,stm32mp1-iwdg" -- reg: Physical base address and length of the registers set for thedevice
-- clocks: Reference to the clock entry lsi. Additional pclk clock entry - is required only for st,stm32mp1-iwdg.
-- clock-names: Name of the clocks used.
- "lsi" for st,stm32-iwdg
- "lsi", "pclk" for st,stm32mp1-iwdgDocumentation/devicetree/bindings/watchdog/st,stm32-iwdg.txt deleted +0
-13- -Optional Properties: -- timeout-sec: Watchdog timeout value in seconds. - -Example: - -iwdg: watchdog@40003000 { - compatible = "st,stm32-iwdg"; - reg = <0x40003000 0x400>; - clocks = <&clk_lsi>; - clock-names = "lsi"; - timeout-sec = <32>; -};diff --git
a/Documentation/devicetree/bindings/watchdog/st,stm32-iwdg.yamlb/Documentation/devicetree/bindings/watchdog/st,stm32-iwdg.yamlnew file mode 100644
index 000000000000..edec96d53e6bDocumentation/devicetree/bindings/watchdog/st,stm32-iwdg.yaml new file +4
-0@@ -0,0 +1,54 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/watchdog/st,stm32-iwdg.yaml#Quoted 8 lines
Documentation/devicetree/bindings/watchdog/st,stm32-iwdg.yaml line 10
Quoted 6 lines
Documentation/devicetree/bindings/watchdog/st,stm32-iwdg.yaml new file +6
-0+$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: STMicroelectronics STM32 Independent WatchDoG (IWDG) bindings + +maintainers: + - Yannick Fertre <[email protected]>Yannick is still working on this driver ?
Quoted 9 lines
That is a good question.
Rob, can we use the STM32 dedicated mailing list address for this mainteners field ?
maintainers:
- linux STM32 <[email protected]>
I'd rather wonder who is going to maintain this secondary distributed maintainers list, but I guess that is a different question.
Guenter
Quoted 50 lines
Regards,
Benjamin
Quoted 46 lines
Quoted 46 lines
Documentation/devicetree/bindings/watchdog/st,stm32-iwdg.yaml new file +44
-0+ +allOf: + - $ref: "watchdog.yaml#" + +properties: + compatible: + enum: + - st,stm32-iwdg + - st,stm32mp1-iwdg + + reg: + maxItems: 1 + + clocks: + items: + - description: Low speed clock + - description: Optional peripheral clock + minItems: 1 + maxItems: 2 + + clock-names: + items: + enums: [ lsi, pclk ] + minItems: 1 + maxItems: 2 + +required: + - compatible + - reg + - clocks + - clock-names + +examples: + - | + #include <dt-bindings/clock/stm32mp1-clks.h> + watchdog@5a002000 { + compatible = "st,stm32mp1-iwdg"; + reg = <0x5a002000 0x400>; + clocks = <&rcc IWDG2>, <&rcc CK_LSI>; + clock-names = "pclk", "lsi"; + timeout-sec = <32>; + }; + +...
Quoted 81 lines · Guenter Roeck
Quoted 79 lines · Benjamin GAIGNARD
Quoted 63 lines · Alexandre Torgue
Hi Benjamin
Quoted 60 lines · Benjamin Gaignard
Convert the STM32 watchdog binding to DT schema format using json-schema
Signed-off-by Benjamin Gaignard <[email protected]>--- .../devicetree/bindings/watchdog/st,stm32-iwdg.txt | 26 ----------- .../bindings/watchdog/st,stm32-iwdg.yaml | 54 ++++++++++++++++++++++ 2 files changed, 54 insertions(+), 26 deletions(-)delete mode 100644
Documentation/devicetree/bindings/watchdog/st,stm32-iwdg.txt
create mode 100644Documentation/devicetree/bindings/watchdog/st,stm32-iwdg.yamldiff --git
a/Documentation/devicetree/bindings/watchdog/st,stm32-iwdg.txtb/Documentation/devicetree/bindings/watchdog/st,stm32-iwdg.txtdeleted file mode 100644
index d8f4430b0a13..000000000000Documentation/devicetree/bindings/watchdog/st,stm32-iwdg.txt deleted +0
-8@@ -1,26 +0,0 @@ -STM32 Independent WatchDoG (IWDG) ---------------------------------- - -Required properties: -- compatible: Should be either: - - "st,stm32-iwdg" - - "st,stm32mp1-iwdg" -- reg: Physical base address and length of the registers set for thedevice
-- clocks: Reference to the clock entry lsi. Additional pclk clock entryDocumentation/devicetree/bindings/watchdog/st,stm32-iwdg.txt deleted +0
-17- is required only for st,stm32mp1-iwdg. -- clock-names: Name of the clocks used. - "lsi" for st,stm32-iwdg - "lsi", "pclk" for st,stm32mp1-iwdg - -Optional Properties: -- timeout-sec: Watchdog timeout value in seconds. - -Example: - -iwdg: watchdog@40003000 { - compatible = "st,stm32-iwdg"; - reg = <0x40003000 0x400>; - clocks = <&clk_lsi>; - clock-names = "lsi"; - timeout-sec = <32>; -};diff --git
a/Documentation/devicetree/bindings/watchdog/st,stm32-iwdg.yamlb/Documentation/devicetree/bindings/watchdog/st,stm32-iwdg.yamlnew file mode 100644
index 000000000000..edec96d53e6bDocumentation/devicetree/bindings/watchdog/st,stm32-iwdg.yaml new file +4
-0@@ -0,0 +1,54 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/watchdog/st,stm32-iwdg.yaml#Quoted 8 lines
Documentation/devicetree/bindings/watchdog/st,stm32-iwdg.yaml line 10
Quoted 6 lines
Documentation/devicetree/bindings/watchdog/st,stm32-iwdg.yaml new file +6
-0+$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: STMicroelectronics STM32 Independent WatchDoG (IWDG) bindings + +maintainers: + - Yannick Fertre <[email protected]>Yannick is still working on this driver ?
That is a good question.
Rob, can we use the STM32 dedicated mailing list address for this mainteners field ?
Quoted 9 lines
Quoted 4 lines
maintainers:
- linux STM32 <[email protected]>
I'd rather wonder who is going to maintain this secondary distributed maintainers list, but I guess that is a different question.
Gentle ping to reviewers on this patch.
Thanks,
Benjamin
Quoted 58 lines
Guenter
Quoted 42 lines
Regards,
Benjamin
Quoted 38 lines
Quoted 38 lines
Documentation/devicetree/bindings/watchdog/st,stm32-iwdg.yaml new file +37
-0+ +allOf: + - $ref: "watchdog.yaml#" + +properties: + compatible: + enum: + - st,stm32-iwdg + - st,stm32mp1-iwdg + + reg: + maxItems: 1 + + clocks: + items: + - description: Low speed clock + - description: Optional peripheral clock + minItems: 1 + maxItems: 2 + + clock-names: + items: + enums: [ lsi, pclk ] + minItems: 1 + maxItems: 2 + +required: + - compatible + - reg + - clocks + - clock-names + +examples: + - | + #include <dt-bindings/clock/stm32mp1-clks.h> + watchdog@5a002000 { + compatible = "st,stm32mp1-iwdg";Quoted 8 lines
Quoted 8 lines
Documentation/devicetree/bindings/watchdog/st,stm32-iwdg.yaml line 54
Quoted 8 lines
Documentation/devicetree/bindings/watchdog/st,stm32-iwdg.yaml new file +7
-0+ reg = <0x5a002000 0x400>; + clocks = <&rcc IWDG2>, <&rcc CK_LSI>; + clock-names = "pclk", "lsi"; + timeout-sec = <32>; + }; + +..._______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel