Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp825177rwi; Wed, 26 Oct 2022 07:41:30 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4nr5D5HN3dawiDxsypQISBhNe7j/0ZKEEX1fssF7jthZ0nGucx7SybllM+VlOK9q/G5k+h X-Received: by 2002:a50:ec99:0:b0:462:2c1c:8764 with SMTP id e25-20020a50ec99000000b004622c1c8764mr7133087edr.325.1666795289863; Wed, 26 Oct 2022 07:41:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666795289; cv=none; d=google.com; s=arc-20160816; b=cvgFfc9ZkIQuMCqezXxmSR/DSlsRJkLzA5zXBrCIrezYAYA0fMDdPIz01Q+aMbLeeI f+qowSryybCKlXY9xPD1bCCQcDm0rR3xZqrS5Cx5nqhLJASLaZbsZ/hSNlpOUNvkiN/A ynFEYhLc0rp73Mw/yiIaRWHyDHI48u+R/9ZavdxMyQXhnigHpcxFZyLkz3WCXCgcV5Lb h0T2i1NRw4u+b5DJfQ1bcGoVHp0bnxk2TatFWBEFGakLCkx+dtqXGby0O0n/QJ/Qr4eI 0jLY7GW7DuENPwDF0eOjyrqezu8hvxKT9EXyRAUdH+2KTeua1Bf/SIlxLg5497dR1Twf AUIQ== 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=pGbHuCEYdpPdrNmRy3KRJXWEMPpe/Yl4yYbiL7G5pI4=; b=rESCZ8NnwvA/0d1ZyBif5Og8LqgDTzaLZNvWEmYdwbuWCz30PGRkxT/VNa5Iq9a3gn 3RUQZG3pvt9m/trrfDeCYcMcSW1zrd1R1rxiu9PkR5+zrgxI7hGCngnfaTNgNNd0Mjav 1OTkv952qnn7mdurNWNSgK5A3xm0f834/YZhG00ee+dFJ3SzN9IFLmesK7HZ6/cDJc+2 xsy8mSuwUmVAfBur0f7kozdbu1WNP4Tj5I9Xyaub6eNK1Ekd34ni8r5yT9eckngCmymJ omTjoQTX9udpZ7XIBuGHtYE+N58yUjaY0stMdkzz5Fr9NQOHL93GCLfnJn+F9KJ0tBQn YYFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="aI3SgU/o"; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hr29-20020a1709073f9d00b00781599eb7dbsi6968430ejc.573.2022.10.26.07.40.57; Wed, 26 Oct 2022 07:41:29 -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=@linaro.org header.s=google header.b="aI3SgU/o"; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234178AbiJZOMT (ORCPT + 99 others); Wed, 26 Oct 2022 10:12:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233485AbiJZOMQ (ORCPT ); Wed, 26 Oct 2022 10:12:16 -0400 Received: from mail-qt1-x830.google.com (mail-qt1-x830.google.com [IPv6:2607:f8b0:4864:20::830]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8F6A106E0F for ; Wed, 26 Oct 2022 07:12:15 -0700 (PDT) Received: by mail-qt1-x830.google.com with SMTP id hh9so9912645qtb.13 for ; Wed, 26 Oct 2022 07:12:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=pGbHuCEYdpPdrNmRy3KRJXWEMPpe/Yl4yYbiL7G5pI4=; b=aI3SgU/o1B2M/H6X1N1ybICwefhQuyMnMU+xDhAda4rQ9GF9Hn7lTutEP2dSljFwDm LNGUaLiXZkIFCetzK0stTLFVY5xkl+5x4+O2aE1xzGKzPEnjThfdaH5mdD8wRlGQF3Ar zdLQGyIpYGveQVdB3InsYbQgbhjDfjY9o6Op7+cXJ8NDgmla2LaU4k/EJ8GfvJ1Kvdjp kNzeeCsxiTkNZoTXEydWORLk54L2rnVam0Iv3Cm8mkk8TevcoUuWl8R1ODrD4aoAa/Bz BgtAulbiOtieEdpBIEDG1iZQdBLcOsEXG7Rc1H1V+bRFaL3Tct4sayaA68UEvuJbRN/M lTqQ== 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=pGbHuCEYdpPdrNmRy3KRJXWEMPpe/Yl4yYbiL7G5pI4=; b=sh36eQaGYf3O55KuR0ZuoOZHsOJ/Ddl8McFTIvPKeEO9fwGXaoDJNSDATpnUMs9VpI NJlk2r4J1vyZveSvh8ftxz9PjwKosrsrM6LO+4uOaMClA12Je2iKVeBPtWdaXoFn/PmO 7aOYABKBb2tSbQxHqI6UtnJk1DVzw3VOmHZ8O1n+DNnBNpB345dgEq2R2tPx/sZm4sF3 h8s4UWSzamn4JgwzWRi5KJhF+MSv4CAvgS+GyzrOr+13wrl5JM5GW8pnGo7reh+de22P xUgzAJskALPN0yoar2PVM3shRq/d+i48VNqPFD1hZa1A5nXHg06Q5hzs0GhPdk7BCBR3 d6hA== X-Gm-Message-State: ACrzQf18JOLeDtOWTRgWascbdHm/ybTAFPTmZMb+A2AICxhj+fgT2S2w zRyFmKQ74IoACBiEwGxmIntbjw== X-Received: by 2002:ac8:5cc6:0:b0:3a4:e3a6:5dd5 with SMTP id s6-20020ac85cc6000000b003a4e3a65dd5mr5599860qta.468.1666793535009; Wed, 26 Oct 2022 07:12:15 -0700 (PDT) Received: from [192.168.1.11] ([64.57.193.93]) by smtp.gmail.com with ESMTPSA id de30-20020a05620a371e00b006e99290e83fsm2417302qkb.107.2022.10.26.07.12.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 26 Oct 2022 07:12:14 -0700 (PDT) Message-ID: <91e83eeb-24b5-4602-c132-c23a2fb5d756@linaro.org> Date: Wed, 26 Oct 2022 10:12:12 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.0 Subject: Re: [PATCH v2 2/3] dt-bindings: watchdog: fsl-imx: document suspend in wait mode Content-Language: en-US To: Andrej Picej , linux-watchdog@vger.kernel.org, Alexander Stein Cc: wim@linux-watchdog.org, linux@roeck-us.net, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, Anson.Huang@nxp.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20221025072533.2980154-1-andrej.picej@norik.com> <20221025072533.2980154-3-andrej.picej@norik.com> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 26/10/2022 02:38, Andrej Picej wrote: > On 25. 10. 22 15:48, Krzysztof Kozlowski wrote: >> On 25/10/2022 03:25, Andrej Picej wrote: >>> Property "fsl,suspend-in-wait" suspends watchdog in "WAIT" mode which >>> corresponds to Linux's Suspend-to-Idle S0 mode. If this property is not >>> set and the device is put into Suspend-to-Idle mode, the watchdog >>> triggers a reset after 128 seconds. >>> >>> Signed-off-by: Andrej Picej >>> Reviewed-by: Fabio Estevam >>> --- >>> Changes in v2: >>> - add a commit message, >>> - add a list of devices which support this functionality >>> --- >>> .../bindings/watchdog/fsl-imx-wdt.yaml | 22 +++++++++++++++++++ >>> 1 file changed, 22 insertions(+) >>> >>> diff --git a/Documentation/devicetree/bindings/watchdog/fsl-imx-wdt.yaml b/Documentation/devicetree/bindings/watchdog/fsl-imx-wdt.yaml >>> index fb7695515be1..9289de97859b 100644 >>> --- a/Documentation/devicetree/bindings/watchdog/fsl-imx-wdt.yaml >>> +++ b/Documentation/devicetree/bindings/watchdog/fsl-imx-wdt.yaml >>> @@ -55,6 +55,28 @@ properties: >>> If present, the watchdog device is configured to assert its >>> external reset (WDOG_B) instead of issuing a software reset. >>> >>> + fsl,suspend-in-wait: >>> + $ref: /schemas/types.yaml#/definitions/flag >>> + description: | >>> + If present, the watchdog device is suspended in WAIT mode >>> + (Suspend-to-Idle). Only supported on following devices: >>> + - "fsl,imx25-wdt", >> >> You need to define such allow/disallow in allOf:if:then, instead. Like >> example-schema is doing for foo-supply, just disallow it for some types >> or use "if: not: ..." > > Sorry missed that. So something like that should be added?: > >> allOf: >> - if: >> not: >> properties: >> compatible: >> contains: >> enum: >> - fsl,imx25-wdt >> - fsl,imx35-wdt >> - fsl,imx50-wdt >> - fsl,imx51-wdt >> - fsl,imx53-wdt >> - fsl,imx6q-wdt >> - fsl,imx6sl-wdt >> - fsl,imx6sll-wdt >> - fsl,imx6sx-wdt >> - fsl,imx6ul-wdt >> - fsl,imx7d-wdt >> - fsl,imx8mm-wdt >> - fsl,imx8mn-wdt >> - fsl,imx8mp-wdt >> - fsl,imx8mq-wdt >> - fsl,vf610-wdt Yes. >> then: >> properties: >> fsl,suspend-in-wait: false > > And I'm assuming I can then remove the supported devices list from > property description. Yes. > > Are you fine with this, so we don't have to split the compatible list > like Alexander suggested? Basically we have the same list of WDW > supported devices in the driver. I don't know to what you refer. Best regards, Krzysztof