Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp2977779rwe; Sun, 16 Apr 2023 09:05:49 -0700 (PDT) X-Google-Smtp-Source: AKy350YqWushx6l9AAtI8kt/6k95lKeik425UH8tlz4WIeDc3aSQdnRIyJJ3eSNYNg/qu8DFXNrS X-Received: by 2002:a17:902:e849:b0:1a6:a7dd:1739 with SMTP id t9-20020a170902e84900b001a6a7dd1739mr9558886plg.21.1681661149164; Sun, 16 Apr 2023 09:05:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681661149; cv=none; d=google.com; s=arc-20160816; b=vDBAMMXsQ0MADcUHMlQetHO5eRZDipoCXBkCJSysrnGoigZ3ytwE7CPgW6Rh/9ObXM 3/zT3u5HHm2SF4rBBaRUPv6Oi1DdxW5hdm2/jcm/NEh5hXQzzfa0bd09Jz8+v6GsaDYF z2K0wLYX2nP762mXc4xaL1AOK/3N2n8XaIWJYS0MqG8ehCe69HVVs6l2vbGZzdhJ19jm 0tM4qEbEXu+BaMf2vkTl/XbtK8ZX1k+Udr7A6f3wotnMRYVNOHBhBjFOe51KdJ5m2I8f fvEQbE1PwNUrvpnZSzsdZnPYFJ3ZQon14Nn8Gu1kY+eQA8mQxbeYvavSg4hyoBHai7gV 6brw== 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:to:content-language:subject:user-agent:mime-version:date :message-id:sender:dkim-signature; bh=DvyJQrP9UkgoEpM6LF6RSI8qFgLSE064i5p1rN/mkpE=; b=UMlTsZ9gxNuKtHjZV7Yt+3aUo2s3Brphy10I0X48LDYS8Bn61V+9mMD98JmezmyNul p1OGkU2891bHjiSNODK27Tox9cPNkzfZEZMEKtiDtd6wDBHxGICCriF+cpT7KB/h1hUP 4J8cHL6fLtOaT0WRkVecoeDLTRmEcpabcznF8CoiNBdsr+Klcw64jO/6INakzrYgpEMD ldlb8XweuTGKaLkwv/VYaB08qBjM56IXoB9IN7ulXxBbG7MSM5p/gwJgtNEMzp1HTdpB yH5cBAOcZ/bK31Am2drXu0B0Ye94QIpxWmVT6lOtTAtZAdMJSpFABW/A0t7BCBplP6N/ 8LIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="Rjsd/vPU"; 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 n4-20020a6546c4000000b0050faaed4f76si9582394pgr.751.2023.04.16.09.05.35; Sun, 16 Apr 2023 09:05:49 -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=20221208 header.b="Rjsd/vPU"; 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 S230041AbjDPQEi (ORCPT + 99 others); Sun, 16 Apr 2023 12:04:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229446AbjDPQEg (ORCPT ); Sun, 16 Apr 2023 12:04:36 -0400 Received: from mail-io1-xd2e.google.com (mail-io1-xd2e.google.com [IPv6:2607:f8b0:4864:20::d2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1BC002112; Sun, 16 Apr 2023 09:04:35 -0700 (PDT) Received: by mail-io1-xd2e.google.com with SMTP id ca18e2360f4ac-760ecf3424bso10200839f.2; Sun, 16 Apr 2023 09:04:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681661074; x=1684253074; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=DvyJQrP9UkgoEpM6LF6RSI8qFgLSE064i5p1rN/mkpE=; b=Rjsd/vPUp+rVHOA9ZNdASN/VeVhhpBT8mHqDUVjdzxLmV/a1BWixL2FLTm6oojhRCI XPAGEfkBWiUacifIUGd3enaORGfFOkM+2MyxLQJUulLnLXvQf5LYMGHm3GsqG64S0vHL 4DssqHiN4f1xshttWtVgzgqRRVtsFWvvPbHtkxbDFAug4XF+PNq3zKFgSfFEzowJR+Ev 7ohaeeKrHIb1h7YeE5L7rX6pcZYf6GKdwiMTgfc1bnvl4ObqUTrKPet9NQOT4ZVc+JGF pFKm0EI+AX8fBQTommDAyGn52ZZk3DnXSX1/Hyz83svG6/GcwKZv11IWw6O/xsvZate9 VcCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681661074; x=1684253074; h=content-transfer-encoding:in-reply-to:from:references: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=DvyJQrP9UkgoEpM6LF6RSI8qFgLSE064i5p1rN/mkpE=; b=AFyixYMHIzoLhqHtt/WmkqC9FjSRT9ikJjUmvcnpg1d7+dPBVheCw1iCIoJHWUUlWy Tm4IRUyu7lgPWYeVY8Taa9TfsJ5t2IYXi9wrAHXLhFJFVAwTKrIBUP6tfmwqzsRiwbT3 nEx5w4ifcUM+Jh3llMXt6suPK2LWP84XpBBOmTi2TbQEEIQUAl8DjpjoRra90GDv2p+k xAsHVgKRLNZFYsOx7XTwkHvnAXZj6X7DS6S+7bJUUJy0uerVUnf6B+oOqxeMiTrq/6Op Rur8/fIAlED97GqCX0bz8U46L9dGVESwvi0QjAtHft6IXfvnDfqBHWGmxkt7MSEZcTyM 6ixg== X-Gm-Message-State: AAQBX9fG8RamAraYF8SaY8Y6rbN05JgWg4RDCc90tg/DiF2hjEMOPsp9 71wiJ00Sdko+2D76QNqrYq4= X-Received: by 2002:a92:90b:0:b0:328:52d1:6415 with SMTP id y11-20020a92090b000000b0032852d16415mr8855471ilg.15.1681661074352; Sun, 16 Apr 2023 09:04:34 -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 h9-20020a056638338900b003c4f35c21absm2603277jav.137.2023.04.16.09.04.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 16 Apr 2023 09:04:33 -0700 (PDT) Sender: Guenter Roeck Message-ID: <16d3bb91-af02-2504-1a8b-7805a2d30bb4@roeck-us.net> Date: Sun, 16 Apr 2023 09:04:28 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH 1/6] dt-bindings: watchdog: drop duplicated GPIO watchdog bindings Content-Language: en-US To: Krzysztof Kozlowski , Wim Van Sebroeck , Rob Herring , Krzysztof Kozlowski , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Julius Werner , Evan Benn , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea , Florian Fainelli , Broadcom internal kernel review list , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Matthias Brugger , AngeloGioacchino Del Regno , Andy Gross , Bjorn Andersson , Konrad Dybcio , Sander Vanheule , Maxime Coquelin , Alexandre Torgue , Nobuhiro Iwamatsu , Geert Uytterhoeven , Magnus Damm , Fu Wei , Viresh Kumar , Eugen Hristev , Justin Chen , =?UTF-8?B?77+9ZWNraQ==?= , Linus Walleij , Corentin Labbe , Anson Huang , Robert Marko , Sergio Paracuellos , Sai Prakash Ranjan , Wolfram Sang , Jamie Iles , Yannick Fertre , Christophe Roullier , Shubhrajyoti Datta , Srinivas Neeli , linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-renesas-soc@vger.kernel.org References: <20230415095112.51257-1-krzysztof.kozlowski@linaro.org> From: Guenter Roeck In-Reply-To: <20230415095112.51257-1-krzysztof.kozlowski@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 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, T_SCC_BODY_TEXT_LINE,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 4/15/23 02:51, Krzysztof Kozlowski wrote: > Two conversions to DT schema of GPIO watchdog binding happened and came > through different trees. Merge them into one: > 1. Combine maintainers, > 2. Use more descriptive property descriptions and constraints from > gpio-wdt.yaml, > 3. Switch to unevaluatedProperties:false, to allow generic watchdog > properties. > > Signed-off-by: Krzysztof Kozlowski For the series: Reviewed-by: Guenter Roeck On a side note, the e-mail addresses in patchwork are messed up for patches sent by you. As result, I can not reply to your e-mails after pulling a patch from patchwork. This means that some replies get lost if I did not keep the original e-mail. That is how it looks like after I pull one of your patches from patchwork: To: +=?unknown-8bit?q?Wim_Van_Sebroeck_=3Cwim=40linux-watchdog=2Eorg=3E=2C_Gu?==?unknown-8bit?q?enter_Roeck_=3Clinux=40roeck-us=2Enet=3E=2C_Rob_Herring_?==?unknown-8bit?q?=3Crobh+dt=40kernel=2Eorg=3E=2C_Krzysztof_Kozlowski_=3Ckrz?==?unknown-8bit?q?yszt +of=2Ekozlowski+dt=40linaro=2Eorg=3E=2C_Neil_Armstrong_?==?unknown-8bit?q?=3Cneil=2Earmstrong=40linaro=2Eorg=3E=2C_Kevin_Hilman_=3Ck?==?unknown-8bit?q?hilman=40baylibre=2Ecom=3E=2C_Jerome_Brunet_=3Cjbrunet=40b?==?unknown-8bit?q?aylibre=2Ecom=3E=2C_ +Martin_Blumenstingl_=3Cmartin=2Eblumen?==?unknown-8bit?q?stingl=40googlemail=2Ecom=3E=2C_Julius_Werner_=3Cjwerner?==?unknown-8bit?q?=40chromium=2Eorg=3E=2C_Evan_Benn_=3Cevanbenn=40chromium?==?unknown-8bit?q?=2Eorg=3E=2C_Nicolas_Ferre_=3Cnicolas=2E +ferre=40microchip?==?unknown-8bit?q?=2Ecom=3E=2C_Alexandre_Belloni_=3Calexandre=2Ebelloni=40bo?==?unknown-8bit?q?otlin=2Ecom=3E=2C_Claudiu_Beznea_=3Cclaudiu=2Ebeznea=40mic?==?unknown-8bit?q?rochip=2Ecom=3E=2C_Florian_Fainelli_=3Cf=2Efainelli=40gma +i?==?unknown-8bit?q?l= Guenter > --- > .../bindings/watchdog/gpio-wdt.yaml | 55 ------------------- > .../bindings/watchdog/linux,wdt-gpio.yaml | 17 +++++- > 2 files changed, 15 insertions(+), 57 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/watchdog/gpio-wdt.yaml > > diff --git a/Documentation/devicetree/bindings/watchdog/gpio-wdt.yaml b/Documentation/devicetree/bindings/watchdog/gpio-wdt.yaml > deleted file mode 100644 > index 155dc7965e9b..000000000000 > --- a/Documentation/devicetree/bindings/watchdog/gpio-wdt.yaml > +++ /dev/null > @@ -1,55 +0,0 @@ > -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > -%YAML 1.2 > ---- > -$id: http://devicetree.org/schemas/watchdog/gpio-wdt.yaml# > -$schema: http://devicetree.org/meta-schemas/core.yaml# > - > -title: GPIO controlled watchdog > - > -maintainers: > - - Robert Marko > - > -properties: > - compatible: > - const: linux,wdt-gpio > - > - gpios: > - maxItems: 1 > - description: GPIO connected to the WDT reset pin > - > - hw_algo: > - $ref: /schemas/types.yaml#/definitions/string > - description: Algorithm used by the driver > - oneOf: > - - description: > - Either a high-to-low or a low-to-high transition clears the WDT counter. > - The watchdog timer is disabled when GPIO is left floating or connected > - to a three-state buffer. > - const: toggle > - - description: > - Low or high level starts counting WDT timeout, the opposite level > - disables the WDT. > - Active level is determined by the GPIO flags. > - const: level > - > - hw_margin_ms: > - $ref: /schemas/types.yaml#/definitions/uint32 > - description: Maximum time to reset watchdog circuit (in milliseconds) > - minimum: 2 > - maximum: 65535 > - > - always-running: > - type: boolean > - description: > - If the watchdog timer cannot be disabled, add this flag to have the driver > - keep toggling the signal without a client. > - It will only cease to toggle the signal when the device is open and the > - timeout elapsed. > - > -required: > - - compatible > - - gpios > - - hw_algo > - - hw_margin_ms > - > -unevaluatedProperties: false > diff --git a/Documentation/devicetree/bindings/watchdog/linux,wdt-gpio.yaml b/Documentation/devicetree/bindings/watchdog/linux,wdt-gpio.yaml > index 50af79af6416..499f1b7e03f9 100644 > --- a/Documentation/devicetree/bindings/watchdog/linux,wdt-gpio.yaml > +++ b/Documentation/devicetree/bindings/watchdog/linux,wdt-gpio.yaml > @@ -8,6 +8,7 @@ title: GPIO-controlled Watchdog > > maintainers: > - Guenter Roeck > + - Robert Marko > > properties: > compatible: > @@ -19,11 +20,23 @@ properties: > > hw_algo: > description: The algorithm used by the driver. > - enum: [ level, toggle ] > + oneOf: > + - description: > + Either a high-to-low or a low-to-high transition clears the WDT counter. > + The watchdog timer is disabled when GPIO is left floating or connected > + to a three-state buffer. > + const: toggle > + - description: > + Low or high level starts counting WDT timeout, the opposite level > + disables the WDT. > + Active level is determined by the GPIO flags. > + const: level > > hw_margin_ms: > description: Maximum time to reset watchdog circuit (milliseconds). > $ref: /schemas/types.yaml#/definitions/uint32 > + minimum: 2 > + maximum: 65535 > > always-running: > type: boolean > @@ -42,7 +55,7 @@ required: > allOf: > - $ref: watchdog.yaml# > > -additionalProperties: false > +unevaluatedProperties: false > > examples: > - |