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

dt-bindings: watchdog: Convert i.MX to json-schema

Convert the i.MX watchdog binding to DT schema format using json-schema.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Rob Herring <robh@kernel.org>

authored by

Anson Huang and committed by
Rob Herring
81e41fec 2c504460

+54 -24
-24
Documentation/devicetree/bindings/watchdog/fsl-imx-wdt.txt
··· 1 - * Freescale i.MX Watchdog Timer (WDT) Controller 2 - 3 - Required properties: 4 - - compatible : Should be "fsl,<soc>-wdt" 5 - - reg : Should contain WDT registers location and length 6 - - interrupts : Should contain WDT interrupt 7 - 8 - Optional properties: 9 - - big-endian: If present the watchdog device's registers are implemented 10 - in big endian mode, otherwise in native mode(same with CPU), for more 11 - detail please see: Documentation/devicetree/bindings/regmap/regmap.txt. 12 - - fsl,ext-reset-output: If present the watchdog device is configured to 13 - assert its external reset (WDOG_B) instead of issuing a software reset. 14 - - timeout-sec : Contains the watchdog timeout in seconds 15 - 16 - Examples: 17 - 18 - wdt@73f98000 { 19 - compatible = "fsl,imx51-wdt", "fsl,imx21-wdt"; 20 - reg = <0x73f98000 0x4000>; 21 - interrupts = <58>; 22 - big-endian; 23 - timeout-sec = <20>; 24 - };
+54
Documentation/devicetree/bindings/watchdog/fsl-imx-wdt.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/watchdog/fsl-imx-wdt.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Freescale i.MX Watchdog Timer (WDT) Controller 8 + 9 + maintainers: 10 + - Anson Huang <Anson.Huang@nxp.com> 11 + 12 + allOf: 13 + - $ref: "watchdog.yaml#" 14 + 15 + properties: 16 + compatible: 17 + enum: 18 + - fsl,imx21-wdt 19 + 20 + reg: 21 + maxItems: 1 22 + 23 + interrupts: 24 + maxItems: 1 25 + 26 + clocks: 27 + maxItems: 1 28 + 29 + fsl,ext-reset-output: 30 + $ref: /schemas/types.yaml#/definitions/flag 31 + description: | 32 + If present, the watchdog device is configured to assert its 33 + external reset (WDOG_B) instead of issuing a software reset. 34 + 35 + required: 36 + - compatible 37 + - interrupts 38 + - reg 39 + 40 + unevaluatedProperties: false 41 + 42 + examples: 43 + - | 44 + #include <dt-bindings/interrupt-controller/arm-gic.h> 45 + #include <dt-bindings/clock/imx6qdl-clock.h> 46 + 47 + watchdog@20bc000 { 48 + compatible = "fsl,imx21-wdt"; 49 + reg = <0x020bc000 0x4000>; 50 + interrupts = <0 80 IRQ_TYPE_LEVEL_HIGH>; 51 + clocks = <&clks IMX6QDL_CLK_IPG>; 52 + }; 53 + 54 + ...