Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2674784pxj; Sun, 6 Jun 2021 09:57:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxx8yIG11bnYCHbMKDQkI4GD6aPsUfHip01sXGUIBpLRGGOpk1QS0qw1KDu5Gm2r0mrJvrM X-Received: by 2002:a05:6402:14d5:: with SMTP id f21mr16369492edx.307.1622998674531; Sun, 06 Jun 2021 09:57:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622998674; cv=none; d=google.com; s=arc-20160816; b=LMZy3DzE2O+5v/El8pjoMunvXVpOGUz3lt3xb73XO7pgTkUnRVhblKhxOgmAkgDDkg imnUnJK8uVtLHqdWE08OdvXwFPMwbyD8+xQ7dX8axSMaGvyXiNKBQ7LuC4M7Uy5+vH3L m8onSckaHV04YXuTSPp0ep5uAtdsCXjalEwchYXnsmFyEXYSs8GYsFDAHcOdl4kwml8+ Iq5xpmmF1BOkY6mopVhwOOiIbefutXWUP8dyeD8Z9aff4jHvrN0DRsH+WB1wpzzlKAVp zWYAu0jzdgTJiAe3ACam+4womNC22EvDbHJavhwIS0ywXSzEJ1QmBHwG5MdzIymQlzc3 gm4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:organization :from:references:cc:to:subject:ironport-sdr:dkim-signature; bh=W5UkNF46+PwqA73H4euoSYzxo6WyylmrNrWr8rbSitk=; b=LNnHOU4+L3AjLMzHUxJ/vzMXoYT/DLDLnHyfTqtLeFq3NHKAWmNZIvTo8n9yYevI6M HGb0MKOuOyRYu9NdAIMLTaGQtc/2ynaghtR9Kw3MMBqLN0R2nVVMY0yl5pMmAXkK6wyv rFijzrQAhTm2wrkYjEUHsYvr1u+OMmxh0qaq/fRUGlDNv8p4YTOkyyw9AasgfeY309CC jmRj1JwMXdMXA6xPGeb6pFPug5yVJx84vhnmvn1jqKpDs2FUIP7CGEBmYhCPemgVZnOM 8FjQ6djMKWV+ozRWAwC+5Ec8OR6+umeThSzbdFmwhY+t3O9xKNAMnbX9u0YWvsMdOPAK n71g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@microchip.com header.s=mchp header.b=bhc6GwNR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 2si8340341ejm.741.2021.06.06.09.57.23; Sun, 06 Jun 2021 09:57:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@microchip.com header.s=mchp header.b=bhc6GwNR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230131AbhFFQyx (ORCPT + 99 others); Sun, 6 Jun 2021 12:54:53 -0400 Received: from esa.microchip.iphmx.com ([68.232.153.233]:27380 "EHLO esa.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229738AbhFFQyv (ORCPT ); Sun, 6 Jun 2021 12:54:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1622998382; x=1654534382; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=r3foDektlpWCZiIYs5tiX3amxQGmMFfjzU0zjQT7iOo=; b=bhc6GwNR0iNDWrp99TiB301MhdNTIA77REeKKE6C7bbzU3g36wJTEi4d 2wWyxeeFLnt+9nVrX4e9kL6MJK9PDyV3Cjy2F37ARSiXP62K1AF6ytZX/ teGhifZnopBvKCksJLTTUXamxEOJA0TqCtfAji5hGJoPcmRRuu8HV1eeU NKp52E5N1b8dzSNC56AALpHeXsv5RG/GC5YypP2x8qT7D1+kfmVIyQYb6 7nSkR0bYkOQttzbV0dE0TObgQWcBCfAVkPk5tai8ZSGyiE7avafOvOnNT iVtDQgzsYKuZv8nC2++5h9NXbtE0fzYGogjeuTktRUtvlM0M5jOhZ5GvQ w==; IronPort-SDR: WV4os3pfZ6cZd/F+isGOSsgdRoZqlZmoe1Jd/BcmuciyzyoKjZnW4A3/ZkfTuKfu3bwxoV7UsS dxmt/Mk8IbEGPFoCSZMmFu6o/7YkmXqI2RpMHMfvNkemSlldRuMdf/M7XGOS3pHY0IiBZRtxFS Djvvopcgp0EDhVva1LFzXTFRtnoZgr1PqUg5cKPHq2xy3VCRUAQ/Hcdf7CWGW+KjnZkkkRUuNH Oe/Dh6VGD1L+Ly528+CvkZiK3be3O6s7W4gRuL6ThaH0Z9ImGxCb01P0J3DOLJ5CDbnuMP4zYf fPs= X-IronPort-AV: E=Sophos;i="5.83,253,1616482800"; d="scan'208";a="123701277" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa5.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 06 Jun 2021 09:53:01 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Sun, 6 Jun 2021 09:53:00 -0700 Received: from [10.12.72.78] (10.10.115.15) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2176.2 via Frontend Transport; Sun, 6 Jun 2021 09:52:59 -0700 Subject: Re: [PATCH 1/3] dt-bindings: watchdog: sama5d4-wdt: convert to yaml To: Eugen Hristev , , , CC: , , , References: <20210527100120.266796-1-eugen.hristev@microchip.com> From: Nicolas Ferre Organization: microchip Message-ID: <2360b414-6a92-2952-8eec-954497f84bae@microchip.com> Date: Sun, 6 Jun 2021 18:52:58 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <20210527100120.266796-1-eugen.hristev@microchip.com> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 27/05/2021 at 12:01, Eugen Hristev wrote: > Convert the old txt binding to yaml format. > > Signed-off-by: Eugen Hristev Series queued on at91-dt for 5.14. Will be sent to arm-soc soon. Thanks, best regards, Nicolas > --- > .../bindings/watchdog/atmel,sama5d4-wdt.yaml | 73 +++++++++++++++++++ > .../bindings/watchdog/atmel-sama5d4-wdt.txt | 34 --------- > 2 files changed, 73 insertions(+), 34 deletions(-) > create mode 100644 Documentation/devicetree/bindings/watchdog/atmel,sama5d4-wdt.yaml > delete mode 100644 Documentation/devicetree/bindings/watchdog/atmel-sama5d4-wdt.txt > > diff --git a/Documentation/devicetree/bindings/watchdog/atmel,sama5d4-wdt.yaml b/Documentation/devicetree/bindings/watchdog/atmel,sama5d4-wdt.yaml > new file mode 100644 > index 000000000000..0d0ab81da040 > --- /dev/null > +++ b/Documentation/devicetree/bindings/watchdog/atmel,sama5d4-wdt.yaml > @@ -0,0 +1,73 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/watchdog/atmel,sama5d4-wdt.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Atmel SAMA5D4 Watchdog Timer (WDT) Controller > + > +maintainers: > + - Eugen Hristev > + > +allOf: > + - $ref: "watchdog.yaml#" > + > +properties: > + compatible: > + enum: > + - atmel,sama5d4-wdt > + - microchip,sam9x60-wdt > + > + reg: > + maxItems: 1 > + > + atmel,watchdog-type: > + $ref: /schemas/types.yaml#/definitions/string > + description: should be hardware or software. > + oneOf: > + - description: > + Enable watchdog fault reset. A watchdog fault triggers > + watchdog reset. > + const: hardware > + - description: > + Enable watchdog fault interrupt. A watchdog fault asserts > + watchdog interrupt. > + const: software > + default: hardware > + > + atmel,idle-halt: > + $ref: /schemas/types.yaml#/definitions/flag > + description: | > + present if you want to stop the watchdog when the CPU is in idle state. > + CAUTION: This property should be used with care, it actually makes the > + watchdog not counting when the CPU is in idle state, therefore the > + watchdog reset time depends on mean CPU usage and will not reset at all > + if the CPU stop working while it is in idle state, which is probably > + not what you want. > + > + atmel,dbg-halt: > + $ref: /schemas/types.yaml#/definitions/flag > + description: | > + present if you want to stop the watchdog when the CPU is in debug state. > + > +required: > + - compatible > + - reg > + > +unevaluatedProperties: false > + > +examples: > + - | > + #include > + > + watchdog@fc068640 { > + compatible = "atmel,sama5d4-wdt"; > + reg = <0xfc068640 0x10>; > + interrupts = <4 IRQ_TYPE_LEVEL_HIGH 5>; > + timeout-sec = <10>; > + atmel,watchdog-type = "hardware"; > + atmel,dbg-halt; > + atmel,idle-halt; > + }; > + > +... > diff --git a/Documentation/devicetree/bindings/watchdog/atmel-sama5d4-wdt.txt b/Documentation/devicetree/bindings/watchdog/atmel-sama5d4-wdt.txt > deleted file mode 100644 > index 44727fcc2729..000000000000 > --- a/Documentation/devicetree/bindings/watchdog/atmel-sama5d4-wdt.txt > +++ /dev/null > @@ -1,34 +0,0 @@ > -* Atmel SAMA5D4 Watchdog Timer (WDT) Controller > - > -Required properties: > -- compatible: "atmel,sama5d4-wdt" or "microchip,sam9x60-wdt" > -- reg: base physical address and length of memory mapped region. > - > -Optional properties: > -- timeout-sec: watchdog timeout value (in seconds). > -- interrupts: interrupt number to the CPU. > -- atmel,watchdog-type: should be "hardware" or "software". > - "hardware": enable watchdog fault reset. A watchdog fault triggers > - watchdog reset. > - "software": enable watchdog fault interrupt. A watchdog fault asserts > - watchdog interrupt. > -- atmel,idle-halt: present if you want to stop the watchdog when the CPU is > - in idle state. > - CAUTION: This property should be used with care, it actually makes the > - watchdog not counting when the CPU is in idle state, therefore the > - watchdog reset time depends on mean CPU usage and will not reset at all > - if the CPU stop working while it is in idle state, which is probably > - not what you want. > -- atmel,dbg-halt: present if you want to stop the watchdog when the CPU is > - in debug state. > - > -Example: > - watchdog@fc068640 { > - compatible = "atmel,sama5d4-wdt"; > - reg = <0xfc068640 0x10>; > - interrupts = <4 IRQ_TYPE_LEVEL_HIGH 5>; > - timeout-sec = <10>; > - atmel,watchdog-type = "hardware"; > - atmel,dbg-halt; > - atmel,idle-halt; > - }; > -- Nicolas Ferre