Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp3068002pxb; Thu, 10 Feb 2022 11:27:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJymJu68zOnbf9acytlPeR8qfmJBdkLqzkb6++BAdK7Alni0cVOUST59IdxdED074QG4bnSy X-Received: by 2002:aa7:c947:: with SMTP id h7mr9736013edt.447.1644521269744; Thu, 10 Feb 2022 11:27:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644521269; cv=none; d=google.com; s=arc-20160816; b=Mb9MAYX53Mbl/rf2Qt2ncKn8okOp/adTcd+9Bwx7n4LZqhYdqZd+mV3CKIa/KLG64f QRTm1K3aVjMbioT6Is0vuLTZtzcjfUZrZsASp2XJEGWAV5T5qHS4tie2yjhh8jUJT1B1 UryDebbODWxrKxIsCK7FhjQ1eKpMZmJzWHGV22qGDYso1hG4ztn5viWEfIYR7Kl+a9Z0 p/UQqqkpWYsnlPxJCIgK11CHKsHG7hZeZhKlilPxZsHBXVVcY3glp/tkgdHQ792TVCSq mfQcIsAmlJV7ywlrTSBuV+Td/A7O7e5tBfyL+xlnVfy1ntyxFF8guewqGINuolmp8job 5XEg== 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=lQAi25ad0WedYqAR8W5lfFiy2PNOb0q0WyI0GNyN3vw=; b=jwPtPDLMtYrmdDF8rVMfsN00FjWghb1HEYefH/32C46yoSkL8NoAukodCHv+KUF4xR zcf5/bjfiL8pLXJIcka0fRA1F0N3uYQu17Dql08vQ3gRDoIE/UweUIQPKQpuVA31bp1j 9gaY5pmpRUpom17r1oH2+UEDy0diItnGuAKDbMrres25jsqoeAiawzpkns2tSl1XVXKB SPF5LPKoBeb8a3OcMjI128XGZZrG9HX/VmMdRmIvjvoJB6No9JzGFapKBajCk4JcXoEm k09SVHvVhE87gecss6ZxbKyA8VM8L3w1UkH2W8d0bQXbcvyDvp53hlBL6FUkPW5eIxry e+/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=avWfIgEZ; 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=canonical.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s17si9845997edr.568.2022.02.10.11.27.24; Thu, 10 Feb 2022 11:27:49 -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=@canonical.com header.s=20210705 header.b=avWfIgEZ; 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=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239207AbiBJJ4a (ORCPT + 99 others); Thu, 10 Feb 2022 04:56:30 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:42292 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239202AbiBJJ41 (ORCPT ); Thu, 10 Feb 2022 04:56:27 -0500 Received: from smtp-relay-internal-0.canonical.com (smtp-relay-internal-0.canonical.com [185.125.188.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8DDD3B08 for ; Thu, 10 Feb 2022 01:56:28 -0800 (PST) Received: from mail-ej1-f71.google.com (mail-ej1-f71.google.com [209.85.218.71]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id B74114004C for ; Thu, 10 Feb 2022 09:56:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1644486986; bh=lQAi25ad0WedYqAR8W5lfFiy2PNOb0q0WyI0GNyN3vw=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=avWfIgEZEWbOXpmfDOyIijAt9HPDnqbNhnTOERpfCP4cBDh1KhXl5aPL72rk3F5ff 6lKJNoanffcNMioMY9iX2ZRRG2M3ZwuhQ2qqGsOJfulOCC9WXXx+csOx1YVk72M5Ly MEPWh7b7tGKq8gEFxG7gd2g9lDseKjF+bComyHYa3rxuCN8iqgV2o0LhNh/EJ8yttM 0V8xjrpTL1llDc9NgOQ4Ss3mhGquiUB8+WtKHQnef5sd3o3QsYWyX2AeQA9tfG7/Ub 5tL9E+Av/Utx+iYqCVZaNQK9bC75BTASbRelYuKKHezH7JgK3swYfIJ//pOh8kBKk+ KDNeWRVDvFOdg== Received: by mail-ej1-f71.google.com with SMTP id o7-20020a170906860700b006cbe6deec1bso2444958ejx.22 for ; Thu, 10 Feb 2022 01:56:26 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=lQAi25ad0WedYqAR8W5lfFiy2PNOb0q0WyI0GNyN3vw=; b=HdMN4sangBvQF66opqEOgZkPRNMph9E6mkQMXphyeXgj1lPxbEFSbljnbPMxSH0T0C pG09n8pimIFJ3SWrV22MiEcvfO8s1qZYeJvkjsF4oat8J4ywLJ6bqmbt7XMlOu0K6TX8 qeSARSz3LPHOctIVpiv7A4xgbKMpR7i2Z5LXigmflXXOLn6sYtyNqkFmPteQarwLE6IF lGgStfbcaNi0DqEN9o0WL1w8ySEr8FJMhUhkgYh4cSRX6ahJ3GzbHoqvRq1TRMdFuk0M zsjp+ibr98sALPgTL2IrLJhdn196GNdVm8G3KH+idxyftU8zfHduqYVrEKRZHPEcBPlu CHZQ== X-Gm-Message-State: AOAM530es2jvcTIbiP5iDCsWZc/T0TsWkQaLSPGXSZWdnXTxeIkTX0JG UGWkay90Ete6j5Jmz61pmPOgrKcKKgdvFolRS2aQG4gAyOQBo/JxHYMUvraqecZhEUOeKI9r1jP a1bYTyLGN5VlYdo7gtWZpFl1Vl13THxJg781XbrMqyg== X-Received: by 2002:a17:906:2ccc:: with SMTP id r12mr5545721ejr.549.1644486986322; Thu, 10 Feb 2022 01:56:26 -0800 (PST) X-Received: by 2002:a17:906:2ccc:: with SMTP id r12mr5545700ejr.549.1644486986041; Thu, 10 Feb 2022 01:56:26 -0800 (PST) Received: from [192.168.0.97] (xdsl-188-155-168-84.adslplus.ch. [188.155.168.84]) by smtp.gmail.com with ESMTPSA id wq18sm4370531ejb.149.2022.02.10.01.56.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 10 Feb 2022 01:56:25 -0800 (PST) Message-ID: <1c5b2019-2258-f95c-eee3-32cef1c98c7a@canonical.com> Date: Thu, 10 Feb 2022 10:56:24 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH v2] dt-bindings: watchdog: convert faraday,ftwdt010 to yaml Content-Language: en-US To: Corentin Labbe , linux@roeck-us.net, robh+dt@kernel.org, wim@linux-watchdog.org Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-watchdog@vger.kernel.org, Linus Walleij References: <20220210093427.2813601-1-clabbe@baylibre.com> From: Krzysztof Kozlowski In-Reply-To: <20220210093427.2813601-1-clabbe@baylibre.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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/02/2022 10:34, Corentin Labbe wrote: > Convert watchdog/faraday,ftwdt010.txt to yaml. > This permits to detect missing properties like clocks and resets or > compatible like moxa,moxart-watchdog. > > Reviewed-by: Linus Walleij > Signed-off-by: Corentin Labbe > --- > Changes since v1: > - Added myself as maintainer as requested by Linus > - Added $ref to watchdog.yaml > - Removed useless quotes > - Added blank lines between properties > - Removed timeout-sec as already provided by watchdog.yaml > > .../bindings/watchdog/faraday,ftwdt010.txt | 22 ------ > .../bindings/watchdog/faraday,ftwdt010.yaml | 67 +++++++++++++++++++ > 2 files changed, 67 insertions(+), 22 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/watchdog/faraday,ftwdt010.txt > create mode 100644 Documentation/devicetree/bindings/watchdog/faraday,ftwdt010.yaml > > diff --git a/Documentation/devicetree/bindings/watchdog/faraday,ftwdt010.txt b/Documentation/devicetree/bindings/watchdog/faraday,ftwdt010.txt > deleted file mode 100644 > index 9ecdb502e605..000000000000 > --- a/Documentation/devicetree/bindings/watchdog/faraday,ftwdt010.txt > +++ /dev/null > @@ -1,22 +0,0 @@ > -Faraday Technology FTWDT010 watchdog > - > -This is an IP part from Faraday Technology found in the Gemini > -SoCs and others. > - > -Required properties: > -- compatible : must be one of > - "faraday,ftwdt010" > - "cortina,gemini-watchdog", "faraday,ftwdt010" > -- reg : shall contain base register location and length > -- interrupts : shall contain the interrupt for the watchdog > - > -Optional properties: > -- timeout-sec : the default watchdog timeout in seconds. > - > -Example: > - > -watchdog@41000000 { > - compatible = "faraday,ftwdt010"; > - reg = <0x41000000 0x1000>; > - interrupts = <3 IRQ_TYPE_LEVEL_HIGH>; > -}; > diff --git a/Documentation/devicetree/bindings/watchdog/faraday,ftwdt010.yaml b/Documentation/devicetree/bindings/watchdog/faraday,ftwdt010.yaml > new file mode 100644 > index 000000000000..64e9c414cc60 > --- /dev/null > +++ b/Documentation/devicetree/bindings/watchdog/faraday,ftwdt010.yaml > @@ -0,0 +1,67 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/watchdog/faraday,ftwdt010.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Faraday Technology FTWDT010 watchdog > + > +maintainers: > + - Linus Walleij > + - Corentin Labbe > + > +description: | > + This is an IP part from Faraday Technology found in the Gemini > + SoCs and others. > + > +allOf: > + - $ref: "watchdog.yaml#" > + > +properties: > + compatible: > + oneOf: > + - const: faraday,ftwdt010 > + - items: > + - const: cortina,gemini-watchdog > + - const: faraday,ftwdt010 > + - items: > + - const: moxa,moxart-watchdog > + - const: faraday,ftwdt010 It looks like you duplicated these two entries. This should be an enum followed by a const. Best regards, Krzysztof