From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B782BC433F5 for ; Fri, 7 Oct 2022 12:53:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229627AbiJGMxr (ORCPT ); Fri, 7 Oct 2022 08:53:47 -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-Google-Smtp-Source: AMsMyM5yY0egVUtyRxt7kKLrVc2niCJmEChtOTkK8lcnf67hgWzfvKi+Vp3ZQFRQY8gY/KEC+p9zBg== 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 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>; > -};