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

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: watchdog: ti,davinci-wdt: convert to dtschema

Convert txt bindings of TI's DaVinci/Keystone Watchdog Timer Controller
to dtschema to allow for validation.

While at it,
- Change the order of the compatibles.
- Add "power-domains" to represent that the power domain maybe managed by
TI-SCI controller if found on the SoC (for example, Keystone based K2G).

w.r.t. to the txt binding to stay in sync with existing DTS.

Signed-off-by: Kousik Sanagavarapu <five231003@gmail.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20240727050736.4756-3-five231003@gmail.com
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>

authored by

Kousik Sanagavarapu and committed by
Rob Herring (Arm)
efd85f68 0e743f17

+55 -24
-24
Documentation/devicetree/bindings/watchdog/davinci-wdt.txt
··· 1 - Texas Instruments DaVinci/Keystone Watchdog Timer (WDT) Controller 2 - 3 - Required properties: 4 - - compatible : Should be "ti,davinci-wdt", "ti,keystone-wdt" 5 - - reg : Should contain WDT registers location and length 6 - 7 - Optional properties: 8 - - timeout-sec : Contains the watchdog timeout in seconds 9 - - clocks : the clock feeding the watchdog timer. 10 - Needed if platform uses clocks. 11 - See clock-bindings.txt 12 - 13 - Documentation: 14 - Davinci DM646x - https://www.ti.com/lit/ug/spruer5b/spruer5b.pdf 15 - Keystone - https://www.ti.com/lit/ug/sprugv5a/sprugv5a.pdf 16 - 17 - Examples: 18 - 19 - wdt: wdt@2320000 { 20 - compatible = "ti,davinci-wdt"; 21 - reg = <0x02320000 0x80>; 22 - timeout-sec = <30>; 23 - clocks = <&clkwdtimer0>; 24 - };
+55
Documentation/devicetree/bindings/watchdog/ti,davinci-wdt.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/ti,davinci-wdt.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: TI DaVinci/Keystone Watchdog Timer Controller 8 + 9 + maintainers: 10 + - Kousik Sanagavarapu <five231003@gmail.com> 11 + 12 + description: | 13 + TI's Watchdog Timer Controller for DaVinci and Keystone Processors. 14 + 15 + Datasheets 16 + 17 + Davinci DM646x - https://www.ti.com/lit/ug/spruer5b/spruer5b.pdf 18 + Keystone - https://www.ti.com/lit/ug/sprugv5a/sprugv5a.pdf 19 + 20 + allOf: 21 + - $ref: watchdog.yaml# 22 + 23 + properties: 24 + compatible: 25 + oneOf: 26 + - items: 27 + - const: ti,keystone-wdt 28 + - const: ti,davinci-wdt 29 + - items: 30 + - const: ti,davinci-wdt 31 + 32 + reg: 33 + maxItems: 1 34 + 35 + power-domains: 36 + maxItems: 1 37 + 38 + clocks: 39 + maxItems: 1 40 + 41 + required: 42 + - compatible 43 + - reg 44 + 45 + unevaluatedProperties: false 46 + 47 + examples: 48 + - | 49 + wdt: watchdog@22f0080 { 50 + compatible = "ti,keystone-wdt", "ti,davinci-wdt"; 51 + reg = <0x022f0080 0x80>; 52 + clocks = <&clkwdtimer0>; 53 + }; 54 + 55 + ...