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: mediatek: Convert mtk-wdt to json-schema

Convert the MediaTek watchdog bindings to schema.

The original binding only had 4 without a fallback but there is a reset
controller on the "mediatek,mt7986-wdt", "mediatek,mt8186-wdt",
"mediatek,mt8188-wdt" and "mediatek,mt8195-wdt" Since there is no reset
controller for the mt6589, we remove "mediatek,mt6589-wdt" as a
fallback.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Co-developed-by: Allen-KH Cheng <allen-kh.cheng@mediatek.com>
Signed-off-by: Allen-KH Cheng <allen-kh.cheng@mediatek.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
Link: https://lore.kernel.org/r/20221101090116.27130-6-allen-kh.cheng@mediatek.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>

authored by

AngeloGioacchino Del Regno and committed by
Wim Van Sebroeck
4d1363a4 bc731365

+78 -43
+78
Documentation/devicetree/bindings/watchdog/mediatek,mtk-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/mediatek,mtk-wdt.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: MediaTek SoCs Watchdog timer 8 + 9 + maintainers: 10 + - Matthias Brugger <matthias.bgg@gmail.com> 11 + 12 + description: 13 + The watchdog supports a pre-timeout interrupt that fires 14 + timeout-sec/2 before the expiry. 15 + 16 + allOf: 17 + - $ref: watchdog.yaml# 18 + 19 + properties: 20 + compatible: 21 + oneOf: 22 + - enum: 23 + - mediatek,mt2712-wdt 24 + - mediatek,mt6589-wdt 25 + - mediatek,mt7986-wdt 26 + - mediatek,mt8183-wdt 27 + - mediatek,mt8186-wdt 28 + - mediatek,mt8188-wdt 29 + - mediatek,mt8192-wdt 30 + - mediatek,mt8195-wdt 31 + - items: 32 + - enum: 33 + - mediatek,mt2701-wdt 34 + - mediatek,mt6582-wdt 35 + - mediatek,mt6797-wdt 36 + - mediatek,mt7622-wdt 37 + - mediatek,mt7623-wdt 38 + - mediatek,mt7629-wdt 39 + - mediatek,mt8516-wdt 40 + - const: mediatek,mt6589-wdt 41 + 42 + reg: 43 + maxItems: 1 44 + 45 + interrupts: 46 + items: 47 + - description: Watchdog pre-timeout (bark) interrupt 48 + 49 + mediatek,disable-extrst: 50 + description: Disable sending output reset signal 51 + type: boolean 52 + 53 + '#reset-cells': 54 + const: 1 55 + 56 + required: 57 + - compatible 58 + - reg 59 + 60 + unevaluatedProperties: false 61 + 62 + examples: 63 + - | 64 + #include <dt-bindings/interrupt-controller/arm-gic.h> 65 + 66 + soc { 67 + #address-cells = <2>; 68 + #size-cells = <2>; 69 + 70 + watchdog: watchdog@10007000 { 71 + compatible = "mediatek,mt8183-wdt"; 72 + reg = <0 0x10007000 0 0x100>; 73 + interrupts = <GIC_SPI 139 IRQ_TYPE_LEVEL_LOW>; 74 + mediatek,disable-extrst; 75 + timeout-sec = <10>; 76 + #reset-cells = <1>; 77 + }; 78 + };
-43
Documentation/devicetree/bindings/watchdog/mtk-wdt.txt
··· 1 - Mediatek SoCs Watchdog timer 2 - 3 - The watchdog supports a pre-timeout interrupt that fires timeout-sec/2 4 - before the expiry. 5 - 6 - Required properties: 7 - 8 - - compatible should contain: 9 - "mediatek,mt2701-wdt", "mediatek,mt6589-wdt": for MT2701 10 - "mediatek,mt2712-wdt": for MT2712 11 - "mediatek,mt6582-wdt", "mediatek,mt6589-wdt": for MT6582 12 - "mediatek,mt6589-wdt": for MT6589 13 - "mediatek,mt6797-wdt", "mediatek,mt6589-wdt": for MT6797 14 - "mediatek,mt7622-wdt", "mediatek,mt6589-wdt": for MT7622 15 - "mediatek,mt7623-wdt", "mediatek,mt6589-wdt": for MT7623 16 - "mediatek,mt7629-wdt", "mediatek,mt6589-wdt": for MT7629 17 - "mediatek,mt7986-wdt", "mediatek,mt6589-wdt": for MT7986 18 - "mediatek,mt8183-wdt": for MT8183 19 - "mediatek,mt8186-wdt", "mediatek,mt6589-wdt": for MT8186 20 - "mediatek,mt8188-wdt", "mediatek,mt6589-wdt": for MT8188 21 - "mediatek,mt8516-wdt", "mediatek,mt6589-wdt": for MT8516 22 - "mediatek,mt8192-wdt": for MT8192 23 - "mediatek,mt8195-wdt", "mediatek,mt6589-wdt": for MT8195 24 - 25 - - reg : Specifies base physical address and size of the registers. 26 - 27 - Optional properties: 28 - - mediatek,disable-extrst: disable send output reset signal 29 - - interrupts: Watchdog pre-timeout (bark) interrupt. 30 - - timeout-sec: contains the watchdog timeout in seconds. 31 - - #reset-cells: Should be 1. 32 - 33 - Example: 34 - 35 - watchdog: watchdog@10007000 { 36 - compatible = "mediatek,mt8183-wdt", 37 - "mediatek,mt6589-wdt"; 38 - mediatek,disable-extrst; 39 - reg = <0 0x10007000 0 0x100>; 40 - interrupts = <GIC_SPI 139 IRQ_TYPE_NONE>; 41 - timeout-sec = <10>; 42 - #reset-cells = <1>; 43 - };