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 8F66AC77B77 for ; Mon, 17 Apr 2023 06:26:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229956AbjDQG0F (ORCPT ); Mon, 17 Apr 2023 02:26:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58066 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229763AbjDQG0F (ORCPT ); Mon, 17 Apr 2023 02:26:05 -0400 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB87B359C for ; Sun, 16 Apr 2023 23:26:02 -0700 (PDT) Received: by mail-ej1-x632.google.com with SMTP id c9so22395268ejz.1 for ; Sun, 16 Apr 2023 23:26:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1681712760; x=1684304760; 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=s8005m9JW0vGW0UfCMKyUcDD6dIBBZcS5nNmkKpBmKk=; b=K7frBaGavpTkAbOifHAXYz5WPLPNbjOOV6Gx+7zpGOVB898DE8zbSaxXsQUOlGr7jX uNACbAlpPPEgU5pVShJ8EC6LHSE+5RenE1wEXEU+MhF65Y/PLSmZQ8NrN+rMLmqQlG0C s02VwQkOzukKCRtmz9UXSYos5rl0TdrF+LR9UPcxszr237kO1khn6/j0INUeXtBDM4WK Z5XBO8sgjLtJ/UMHUtEgAwqZu7O3Yq2pVaDqImSmt1jiqGbVKT4GQGD7k+sviIyjnkAN UFbcOK7tArFOOInvF+Ar5qkUtk1xgri/aWjVbsDYqu8Dxin7MwHWRQhdoVq2KwuOiX8v tooA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681712761; x=1684304761; 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=s8005m9JW0vGW0UfCMKyUcDD6dIBBZcS5nNmkKpBmKk=; b=WStqUgVVgdzEr+9OV5XBWcGAxpuqM0J4V6MVd7WD0GjedgMVW4JM1IfOu+fIaa7A+u wzyphrtmGCicLhqODnGMc4D6B25Xw3RLNsuC6EqTxNeBL3B7EHCBKvbvV+JfCtwMuvfv 3nxpiUo7w2PUdYB3F4Xawi5b0w7YSLIAGV1u6K4/jMAtZUt8S7D8fCUkCXUfOwgseyih Frmi6A+yH0tXiwIzTdFqwS78yakASbjcjipXpFFHl0XlDRcuHoh3N89olP4b5BBSakiG B6ASTuuW0S16pH3y3xv42NFxkX09pJvzGrXiysaQgVABhpYYCgBDkTXN8kg+1C7IaVMq vimQ== X-Gm-Message-State: AAQBX9dBpG8fp+G3g6etPQDf+vmw6lTlYLqQke1GojjFFUAfDaaMPWEx 8LqI2P30gikMBjwmPXmQaK6ZLA== X-Google-Smtp-Source: AKy350aKPDBA32s5V1FjgWFbfXT4gDhhqE0AzgOMSi01OXFPFf/ADNi8xJi/XfHr+oF6OGclDLlVSA== X-Received: by 2002:a17:906:16c4:b0:94f:3338:12a2 with SMTP id t4-20020a17090616c400b0094f333812a2mr4923166ejd.33.1681712760724; Sun, 16 Apr 2023 23:26:00 -0700 (PDT) Received: from ?IPV6:2a02:810d:15c0:828:b0ac:4d3b:966c:b33d? ([2a02:810d:15c0:828:b0ac:4d3b:966c:b33d]) by smtp.gmail.com with ESMTPSA id g4-20020a170906c18400b0094c3ac3c2bbsm6100573ejz.212.2023.04.16.23.25.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 16 Apr 2023 23:26:00 -0700 (PDT) Message-ID: <0e5b1bcf-21c2-d446-6fd9-5516af417e8d@linaro.org> Date: Mon, 17 Apr 2023 08:25:59 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH v2] dt-bindings: watchdog: alphascale-asm9260: convert to DT schema Content-Language: en-US To: Om Parikh Cc: Wim Van Sebroeck , Guenter Roeck , Rob Herring , Krzysztof Kozlowski , Oleksij Rempel , linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230417051641.3832314-1-hack3r-0m@proton.me> From: Krzysztof Kozlowski In-Reply-To: <20230417051641.3832314-1-hack3r-0m@proton.me> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On 17/04/2023 07:17, Om Parikh wrote: > Makes alphascale-asm9260 dt bindings adhere to the dt json-schema > by replacing txt file with yaml file. > > CHANGELOG from v1: Changelog goes after --- > - drop quotes in "$ref" value > - update compatible string from board name to node name > - drop "Olof Johansson" from maintainers > - update "compatible" property from enum to const > - drop generic reset description > > Signed-off-by: Om Parikh > --- > .../watchdog/alphascale,asm9260-wdt.yaml | 69 +++++++++++++++++++ > .../bindings/watchdog/alphascale-asm9260.txt | 35 ---------- > 2 files changed, 69 insertions(+), 35 deletions(-) > create mode 100644 Documentation/devicetree/bindings/watchdog/alphascale,asm9260-wdt.yaml > delete mode 100644 Documentation/devicetree/bindings/watchdog/alphascale-asm9260.txt > > diff --git a/Documentation/devicetree/bindings/watchdog/alphascale,asm9260-wdt.yaml b/Documentation/devicetree/bindings/watchdog/alphascale,asm9260-wdt.yaml > new file mode 100644 > index 000000000000..aefcb0cf3e3a > --- /dev/null > +++ b/Documentation/devicetree/bindings/watchdog/alphascale,asm9260-wdt.yaml > @@ -0,0 +1,69 @@ > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/watchdog/alphascale,asm9260-wdt.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Alphascale asm9260 Watchdog timer > + > +allOf: > + - $ref: watchdog.yaml# > + > +maintainers: > + - Oleksij Rempel > + > +properties: > + compatible: > + const: alphascale,asm9260-wdt > + > + reg: > + maxItems: 1 > + > + clocks: > + items: > + - description: source clock, used for tick counter > + - description: ahb gate > + > + clock-names: > + items: > + - const: mod > + - const: ahb > + > + interrupts: > + maxItems: 1 > + > + resets: > + maxItems: 1 > + > + reset-names: > + items: > + - const: wdt_rst > + > + timeout-sec: true Drop this one, not needed as it comes from watchdog.yaml. > + > + alphascale,mode: > + description: to specify the reset mode of operation You miss some explanation what is debug for example. > + $ref: /schemas/types.yaml#/definitions/string > + enum: [hw, sw, debug] default: hw > + > +required: > + - compatible > + - reg > + - clocks > + - clock-names > + - interrupts > + > +unevaluatedProperties: false Best regards, Krzysztof