Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp924147rwb; Fri, 7 Oct 2022 06:04:52 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7wsGwYUGEBz+R+UHykfFdJlEtyyarKPyVIkwCPwBQRu771Nza5S9lzWE9iVvApXJLzLR1Q X-Received: by 2002:a17:906:dacd:b0:780:a90c:e144 with SMTP id xi13-20020a170906dacd00b00780a90ce144mr3975616ejb.153.1665147892009; Fri, 07 Oct 2022 06:04:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665147892; cv=none; d=google.com; s=arc-20160816; b=a3ZfxRj0BsURIvHhAUBO0rK0o+ZeMHSO8tIvQeorNyB/5EhKQhLlYqJxPLEd+TA1gB Or8o49zi41uAZbNTTnsLJTKKKABlpHHP2xCeeszWQ4ldmv2r+uCK4eIB4a+yyWI0AdWN ehro5WWNpG/W69z9tvCLLHcI65+vZv7nbNhnLdvKP72m3VEKsmLtYIKIqRkKZNpBj6xF B/LzxCbvNzySUkXA4NKA6gZktPoQdv50J3WIaPME94s/Fz2kxJiJ1HyqZ0/jusOgRv6L d/e+peTjFBv2Jbf3/8TW+6Haz7GYJrYPpQRDTszndZZ7D6XKyVuiwnQCGxmBU808KYIs WdWA== 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:sender:dkim-signature; bh=4pSvickso+xjP5saP8efXvMNhX5H+k95vAykSoJJVdY=; b=tM5l97DJmNzSDOM+Zs22OorMcsHUQbsSXF4PONeEfvc0Iu/R+vP8dcUMR5zSbsHa/K R7IzanitAGAqf+kojbFrZS/9k9Seo3Dp+qWtzBAU5s2EvHUDihop4oTYJ65kZQSeOCqo KQVDo1hspkca2YGUX4Kyh6r8UFRgewEk03nLPBZakVbZDHztwnPxPGbGlEZqRsdYVVUO veIaIgrD/APxShFSuvERLQ+4lf7r4v4Y2cw7JUZd4Nuwx+zZaEGsw8VWXSU/yoXS7wg3 Jvx1jIBe/yzhBubUYr0rj6MsaSIyUyt70inytjLlaHsgrgGbbPRdBtLhGD/CbcHdfj/9 R58A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Ua1xRLZ6; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o21-20020a170906975500b007721f88d3e0si2559653ejy.554.2022.10.07.06.04.25; Fri, 07 Oct 2022 06:04:51 -0700 (PDT) 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=Ua1xRLZ6; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229724AbiJGMxq (ORCPT + 99 others); Fri, 7 Oct 2022 08:53:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46256 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229737AbiJGMxn (ORCPT ); Fri, 7 Oct 2022 08:53:43 -0400 Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7809FBBE3B; Fri, 7 Oct 2022 05:53:42 -0700 (PDT) Received: by mail-pj1-x102e.google.com with SMTP id x1-20020a17090ab00100b001fda21bbc90so7137787pjq.3; Fri, 07 Oct 2022 05:53:42 -0700 (PDT) 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 :sender:from:to:cc:subject:date:message-id:reply-to; bh=4pSvickso+xjP5saP8efXvMNhX5H+k95vAykSoJJVdY=; b=Ua1xRLZ6TqGxaLz7s2IFEr6t8pX3xNBkZ+Icpsp00BbaZd90vT1eLOmtLWzuNOocla PwW9V/FztBVwY/C1Dm7nM1s4kMq8pjOfc6lyDmP2aZWH+Puzuf2ijZWtA0Um+IsZPPgv 0pDUep6oidImMzpDMjdFBtSLtFUHavAX4R7OIh+znxHbsP8flX/tR+ShB06GDL1WcyP7 dy1zylcDFwtohDWRUAaS8/DxZ4xC90jpYsip2fZtrmrK0UVH7hvPM4G/bDI3cr68X0Ud IRCsGv913wxPi/JOzzEOF5H5Kr+wvOUh7BGkEQPL3LvgI8E5Fejin3CtQlN2r4DE4UdP Szbw== 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 :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=4pSvickso+xjP5saP8efXvMNhX5H+k95vAykSoJJVdY=; b=diSsQx+fhFeEqOmSJpvloL33f6V1bCEPmqwC0U4IvfeWX8foNgy9uzBfaPPVI2Hz6v FyriACVkFzHu63NgvLbLMvmCsjWcH1j16Dh/D7oU6INk9CYs8Z4RAgZaWo7v9Yi1WcC2 mYLgG2NQ2F4BArjTPC7oEScvYUhVltILLO0KMpNstb0uE3TC/oed2MmN46ArE4JojRqv lijY0rCrojrn/t8X7k2nqOY1EEzHFJTVFtIBv6jYPVmzgeH1cOPquL72xqLHhLCRpOMW 25mjgPttB8nn5IWCCStci1tyIlA2jXtx2NQ0uAX/R+lR6rX613Wra/Wy8Xlhri3xm0S/ 7uqA== X-Gm-Message-State: ACrzQf1/fpTYCrjCnt1a/upgI8PkNTR9zNVF+o7Aj31u2nzElvYllDQo KwO3OqSPGabCzd34UQCItq0= X-Received: by 2002:a17:90a:e7ce:b0:20a:c658:c183 with SMTP id kb14-20020a17090ae7ce00b0020ac658c183mr5361370pjb.5.1665147221992; Fri, 07 Oct 2022 05:53:41 -0700 (PDT) Received: from ?IPV6:2600:1700:e321:62f0:329c:23ff:fee3:9d7c? ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id c1-20020a056a00008100b00562657a7b11sm1547574pfj.8.2022.10.07.05.53.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 07 Oct 2022 05:53:41 -0700 (PDT) Sender: Guenter Roeck Message-ID: <65d83f3e-b0ce-c199-c653-c948b9f015b5@roeck-us.net> Date: Fri, 7 Oct 2022 05:53:38 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH v2 5/8] dt-bindings: watchdog: mediatek: Convert mtk-wdt to json-schema Content-Language: en-US To: Allen-KH Cheng , Wim Van Sebroeck , Krzysztof Kozlowski , Matthias Brugger , Rob Herring , nfraprado@collabora.com Cc: angelogioacchino.delregno@collabora.com, Project_Global_Chrome_Upstream_Group@mediatek.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org References: <20221007093437.12228-1-allen-kh.cheng@mediatek.com> <20221007093437.12228-6-allen-kh.cheng@mediatek.com> From: Guenter Roeck In-Reply-To: <20221007093437.12228-6-allen-kh.cheng@mediatek.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, 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 10/7/22 02:34, 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" 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: Guenter Roeck > --- > .../bindings/watchdog/mediatek,mtk-wdt.yaml | 77 +++++++++++++++++++ > .../devicetree/bindings/watchdog/mtk-wdt.txt | 42 ---------- > 2 files changed, 77 insertions(+), 42 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..6805fbeace11 > --- /dev/null > +++ b/Documentation/devicetree/bindings/watchdog/mediatek,mtk-wdt.yaml > @@ -0,0 +1,77 @@ > +# 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,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: 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 762c62e428ef..000000000000 > --- a/Documentation/devicetree/bindings/watchdog/mtk-wdt.txt > +++ /dev/null > @@ -1,42 +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,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>; > -};