Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: watchdog: Convert stm32 watchdog bindings to json-schema

Convert the STM32 watchdog binding to DT schema format using json-schema

Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com>
Signed-off-by: Rob Herring <robh@kernel.org>

authored by

Benjamin Gaignard and committed by
Rob Herring
606f53b0 0fa4f770

+57 -26
-26
Documentation/devicetree/bindings/watchdog/st,stm32-iwdg.txt
··· 1 - STM32 Independent WatchDoG (IWDG) 2 - --------------------------------- 3 - 4 - Required properties: 5 - - compatible: Should be either: 6 - - "st,stm32-iwdg" 7 - - "st,stm32mp1-iwdg" 8 - - reg: Physical base address and length of the registers set for the device 9 - - clocks: Reference to the clock entry lsi. Additional pclk clock entry 10 - is required only for st,stm32mp1-iwdg. 11 - - clock-names: Name of the clocks used. 12 - "lsi" for st,stm32-iwdg 13 - "lsi", "pclk" for st,stm32mp1-iwdg 14 - 15 - Optional Properties: 16 - - timeout-sec: Watchdog timeout value in seconds. 17 - 18 - Example: 19 - 20 - iwdg: watchdog@40003000 { 21 - compatible = "st,stm32-iwdg"; 22 - reg = <0x40003000 0x400>; 23 - clocks = <&clk_lsi>; 24 - clock-names = "lsi"; 25 - timeout-sec = <32>; 26 - };
+57
Documentation/devicetree/bindings/watchdog/st,stm32-iwdg.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/watchdog/st,stm32-iwdg.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: STMicroelectronics STM32 Independent WatchDoG (IWDG) bindings 8 + 9 + maintainers: 10 + - Yannick Fertre <yannick.fertre@st.com> 11 + - Christophe Roullier <christophe.roullier@st.com> 12 + 13 + allOf: 14 + - $ref: "watchdog.yaml#" 15 + 16 + properties: 17 + compatible: 18 + enum: 19 + - st,stm32-iwdg 20 + - st,stm32mp1-iwdg 21 + 22 + reg: 23 + maxItems: 1 24 + 25 + clocks: 26 + items: 27 + - description: Low speed clock 28 + - description: Optional peripheral clock 29 + minItems: 1 30 + maxItems: 2 31 + 32 + clock-names: 33 + items: 34 + enum: 35 + - lsi 36 + - pclk 37 + minItems: 1 38 + maxItems: 2 39 + 40 + required: 41 + - compatible 42 + - reg 43 + - clocks 44 + - clock-names 45 + 46 + examples: 47 + - | 48 + #include <dt-bindings/clock/stm32mp1-clks.h> 49 + watchdog@5a002000 { 50 + compatible = "st,stm32mp1-iwdg"; 51 + reg = <0x5a002000 0x400>; 52 + clocks = <&rcc IWDG2>, <&rcc CK_LSI>; 53 + clock-names = "pclk", "lsi"; 54 + timeout-sec = <32>; 55 + }; 56 + 57 + ...