Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3384887rwb; Tue, 8 Nov 2022 04:05:33 -0800 (PST) X-Google-Smtp-Source: AMsMyM7vX7Pzd9LhXJi1rOF8fvbTcoSjnAgE1Zd4cC9l88Xksp4kBMtacRXokT+Ui9ySSfuueU04 X-Received: by 2002:aa7:cd58:0:b0:462:d797:483d with SMTP id v24-20020aa7cd58000000b00462d797483dmr56776722edw.343.1667909133276; Tue, 08 Nov 2022 04:05:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667909133; cv=none; d=google.com; s=arc-20160816; b=qe5yiKz1Ry6NItVA6fsY4ceECEJ10W/wB/T2zg/uAkN4MF4hFIxW60wBS2fhLzleCs 0h//WoExcoogXwIsyT8fP7E644btFO5rUkbMyBa1wp/9J4ekQkqi9YLt9e9x38v1AJj7 LQMoFPvf7GTL0kyIvB5O2WtV/OgU2o6Db+JTv080uh4IpHKYr3Pv/70RlppkZrSAI5rd V+WFCkFy+5gbWWH/98t7FiU/U5em/CjBwC9KzgaCG+asBuuBvdXmg0ygK4vb44M5JRSb 0fglQViEYpspWfMYS5iOs4BUPewKauUrrx/2W+Zk5st+LovpsaDC2+LfLqpqNGc/IqZ+ KcfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=9wgDgYd1bcD2X3cXZ1z07yxsiiTFNqx0DuA084H8Mro=; b=l9lttK759ABgQ07aEHoGEwSYBN6KWk/G5aT00COHHUELkkkQslvNoSPYpIagAdpcOe 3gidfM10E+/s4BqUS4BzU77f4ws4BSYfEuMBNPvS1oGfwQaEh3zGfk2pf3wGVC77ZtJY +azd4RHvinzol3FKaqOZwk7GU5rP6Y4qmwifxnw1f3vvP8A0mm1s6IxXo+WkE5pfOE8s sNU/Z7GapH2LS2KcMglUnwFhcCSufKoaaLdNndXI/FFOblSIj0TtPa4lUmDQIvlETFJr ezWjVzG5l5RDUZuR7qrGLdIdsze3sAhpD5q2OAKGDwIje6s0vJSJncAoC5TvUIpkbABA JkeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=eNqLMraT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qa12-20020a170907868c00b0079194d8b1f6si13837933ejc.892.2022.11.08.04.05.10; Tue, 08 Nov 2022 04:05:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=eNqLMraT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233719AbiKHKvA (ORCPT + 89 others); Tue, 8 Nov 2022 05:51:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39278 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233952AbiKHKur (ORCPT ); Tue, 8 Nov 2022 05:50:47 -0500 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B333450AA; Tue, 8 Nov 2022 02:50:46 -0800 (PST) Received: by mail-wr1-x430.google.com with SMTP id bk15so20269894wrb.13; Tue, 08 Nov 2022 02:50:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=9wgDgYd1bcD2X3cXZ1z07yxsiiTFNqx0DuA084H8Mro=; b=eNqLMraTJqOnuy1E2um08aqIiu4kDjD/wkQK8Hbwd75LqGM7kDyh/7lGkWaiVnSP+6 GxD4FbleKLkQJ5uCk7Rqyyxs28WZHoXtPdhW8ZxFNXPo3Cbf+419dC3QD4aO/IcxYVbZ cnmQKTB4bgBW4VvU9J1ZQrTjzdohmAJjxnsBtwHmb2fWoub8YdO45fYI6EK9xWlK840X w3HSC2gDQThGrjOY9fYHtDZkK/tCEhSoEvO0gHhYUfP25dBVF6vPyQOPiMXfDoY4zvNE BPRlQjmy5OQWtrrS+/vJgssK3kjmp2rZ3ofKPZZ7SqnwyLEu5SLDZ+bqWT7o3t8STSMN CZ+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=9wgDgYd1bcD2X3cXZ1z07yxsiiTFNqx0DuA084H8Mro=; b=2mvfLVuIA1MlwyMi3TIPLJi6aYEFPnY7b9r5KSjJz1dtvQc2n/vd5yDOE2yKJ9IjIX N3kZnPi4NkrFiavl1ofRHq9uQGrLkXt9Tqf7rigrCby6J1RBhwcFGK/psEF/SMgVZ/te zh2Nm5jfyWMb7krxkqNOpyqt52dCwYfDAIZ1F3oxJebghk81t2fqdawPMxkNulFhyupg gfuhCQqLNEbpQ0+hMiyzj8H8xABxExZalmoHMrCXvpNGxrZ6gnvajNW1SNCzgQ9KsIJI uMyrYktk5VUFJ+YJSMBpptasNqKM9Hqpz4aNNfB9dXklf++a2GOZMKJXO6dFC4g+PtlI tFLQ== X-Gm-Message-State: ACrzQf0UIIvL/I+Xwaed1Q94LiPRQoElHC6iirzRP1jteOQphsGd7jiI Ch7YG+CX0PQl7cx2UJAYl9M= X-Received: by 2002:adf:e3c1:0:b0:236:6d5d:ffa2 with SMTP id k1-20020adfe3c1000000b002366d5dffa2mr34600529wrm.557.1667904644591; Tue, 08 Nov 2022 02:50:44 -0800 (PST) Received: from [192.168.1.131] ([207.188.167.132]) by smtp.gmail.com with ESMTPSA id k4-20020a5d6e84000000b00236722ebe66sm9982506wrz.75.2022.11.08.02.50.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 08 Nov 2022 02:50:42 -0800 (PST) Message-ID: <585a9cbb-4df4-1c06-ecfa-3b9442f1a5e2@gmail.com> Date: Tue, 8 Nov 2022 11:50:41 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.1 Subject: Re: [PATCH v5 5/7] dt-bindings: watchdog: mediatek: Convert mtk-wdt to json-schema Content-Language: en-US To: Allen-KH Cheng , Wim Van Sebroeck , Guenter Roeck , Krzysztof Kozlowski , Rob Herring Cc: nfraprado@collabora.com, angelogioacchino.delregno@collabora.com, Project_Global_Chrome_Upstream_Group@mediatek.com, devicetree@vger.kernel.org, linux-watchdog@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org References: <20221108033209.22751-1-allen-kh.cheng@mediatek.com> <20221108033209.22751-6-allen-kh.cheng@mediatek.com> From: Matthias Brugger In-Reply-To: <20221108033209.22751-6-allen-kh.cheng@mediatek.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/11/2022 04:32, Allen-KH Cheng wrote: > From: AngeloGioacchino Del Regno > > 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 > Co-developed-by: Allen-KH Cheng > Signed-off-by: Allen-KH Cheng > Reviewed-by: Rob Herring > Reviewed-by: Guenter Roeck > Reviewed-by: NĂ­colas F. R. A. Prado As I'm put as the maintainer: Acked-by: Matthias Brugger Shall I take that through my tree or shall it go through the watchdog tree? Regards, Matthias > --- > .../bindings/watchdog/mediatek,mtk-wdt.yaml | 78 +++++++++++++++++++ > .../devicetree/bindings/watchdog/mtk-wdt.txt | 43 ---------- > 2 files changed, 78 insertions(+), 43 deletions(-) > create mode 100644 Documentation/devicetree/bindings/watchdog/mediatek,mtk-wdt.yaml > delete mode 100644 Documentation/devicetree/bindings/watchdog/mtk-wdt.txt > > diff --git a/Documentation/devicetree/bindings/watchdog/mediatek,mtk-wdt.yaml b/Documentation/devicetree/bindings/watchdog/mediatek,mtk-wdt.yaml > new file mode 100644 > index 000000000000..b3d2273f323b > --- /dev/null > +++ b/Documentation/devicetree/bindings/watchdog/mediatek,mtk-wdt.yaml > @@ -0,0 +1,78 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/watchdog/mediatek,mtk-wdt.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: MediaTek SoCs Watchdog timer > + > +maintainers: > + - Matthias Brugger > + > +description: > + The watchdog supports a pre-timeout interrupt that fires > + timeout-sec/2 before the expiry. > + > +allOf: > + - $ref: watchdog.yaml# > + > +properties: > + compatible: > + oneOf: > + - enum: > + - mediatek,mt2712-wdt > + - mediatek,mt6589-wdt > + - mediatek,mt7986-wdt > + - mediatek,mt8183-wdt > + - mediatek,mt8186-wdt > + - mediatek,mt8188-wdt > + - mediatek,mt8192-wdt > + - mediatek,mt8195-wdt > + - items: > + - enum: > + - mediatek,mt2701-wdt > + - mediatek,mt6582-wdt > + - mediatek,mt6797-wdt > + - mediatek,mt7622-wdt > + - mediatek,mt7623-wdt > + - mediatek,mt7629-wdt > + - mediatek,mt8516-wdt > + - const: mediatek,mt6589-wdt > + > + reg: > + maxItems: 1 > + > + interrupts: > + items: > + - description: Watchdog pre-timeout (bark) interrupt > + > + mediatek,disable-extrst: > + description: Disable sending output reset signal > + type: boolean > + > + '#reset-cells': > + const: 1 > + > +required: > + - compatible > + - reg > + > +unevaluatedProperties: false > + > +examples: > + - | > + #include > + > + soc { > + #address-cells = <2>; > + #size-cells = <2>; > + > + watchdog@10007000 { > + compatible = "mediatek,mt8183-wdt"; > + reg = <0 0x10007000 0 0x100>; > + interrupts = ; > + mediatek,disable-extrst; > + timeout-sec = <10>; > + #reset-cells = <1>; > + }; > + }; > diff --git a/Documentation/devicetree/bindings/watchdog/mtk-wdt.txt b/Documentation/devicetree/bindings/watchdog/mtk-wdt.txt > deleted file mode 100644 > index b900c85d4560..000000000000 > --- a/Documentation/devicetree/bindings/watchdog/mtk-wdt.txt > +++ /dev/null > @@ -1,43 +0,0 @@ > -Mediatek SoCs Watchdog timer > - > -The watchdog supports a pre-timeout interrupt that fires timeout-sec/2 > -before the expiry. > - > -Required properties: > - > -- compatible should contain: > - "mediatek,mt2701-wdt", "mediatek,mt6589-wdt": for MT2701 > - "mediatek,mt2712-wdt": for MT2712 > - "mediatek,mt6582-wdt", "mediatek,mt6589-wdt": for MT6582 > - "mediatek,mt6589-wdt": for MT6589 > - "mediatek,mt6797-wdt", "mediatek,mt6589-wdt": for MT6797 > - "mediatek,mt7622-wdt", "mediatek,mt6589-wdt": for MT7622 > - "mediatek,mt7623-wdt", "mediatek,mt6589-wdt": for MT7623 > - "mediatek,mt7629-wdt", "mediatek,mt6589-wdt": for MT7629 > - "mediatek,mt7986-wdt", "mediatek,mt6589-wdt": for MT7986 > - "mediatek,mt8183-wdt": for MT8183 > - "mediatek,mt8186-wdt", "mediatek,mt6589-wdt": for MT8186 > - "mediatek,mt8188-wdt", "mediatek,mt6589-wdt": for MT8188 > - "mediatek,mt8516-wdt", "mediatek,mt6589-wdt": for MT8516 > - "mediatek,mt8192-wdt": for MT8192 > - "mediatek,mt8195-wdt", "mediatek,mt6589-wdt": for MT8195 > - > -- reg : Specifies base physical address and size of the registers. > - > -Optional properties: > -- mediatek,disable-extrst: disable send output reset signal > -- interrupts: Watchdog pre-timeout (bark) interrupt. > -- timeout-sec: contains the watchdog timeout in seconds. > -- #reset-cells: Should be 1. > - > -Example: > - > -watchdog: watchdog@10007000 { > - compatible = "mediatek,mt8183-wdt", > - "mediatek,mt6589-wdt"; > - mediatek,disable-extrst; > - reg = <0 0x10007000 0 0x100>; > - interrupts = ; > - timeout-sec = <10>; > - #reset-cells = <1>; > -};