Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp1763855rdb; Mon, 9 Oct 2023 01:59:50 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFjsCUk2BsVkWBjtEMtamKioZzjZ70I5pnNgWkgVAY1hB78wDljYTYzip7Yn0wzDHu8FZ7x X-Received: by 2002:a05:6358:63a7:b0:14b:d9de:3008 with SMTP id k39-20020a05635863a700b0014bd9de3008mr17560468rwh.5.1696841990367; Mon, 09 Oct 2023 01:59:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696841990; cv=none; d=google.com; s=arc-20160816; b=KSTNmPxXpUKyd9lzCrkSCP2QIEFjOZBgbNTV9+dWeYc6mdgWmy95wDFZx38wTDVrRc qalHVvoT6bAkTCpZ/LRk2l1kK0cr1mjlgEPVXuFPhmEF6IwxOKJgE3FXAEF2EXSpfq2q 2Ct/CVbwlrhunUgpkDoQzpoK88MbRccbdc4e8hFnjj5MXCxB+YWAUycomkZ0YoSSnruX F5fofbnMPa/4wU3T3KCtaRQISipCQrV29qhMbpOfvkOg3pklhTHsladIPvvJRLVL8TRK qtuKt7MmiZhX7H1Md2ZlBlGzi6dIZJxkmSm2eJ7qT7l2Ljp5NQCbuZRF9qw9wRFljNI2 gRGw== 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:autocrypt :from:references:cc:to:content-language:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=4ShYikb9cSe8u3igb5BJ1QIbt5aUV5TPk6yNfqKle5Q=; fh=dC3e4NTiWM0V1SfnsDsnr2DuO+3GKZi3QEX9ZnksW+I=; b=vK7dNKobPZG6ffXapm4HszUjSgJxsBtVpbqbPw/Xo5j7aedJvxbjxurLNDeva/p1C/ DjtfNNNSepBHTykdF8VADpHQ7qqywswRO2bpmF2e0oReolJJbPrGjFJ8TNRuFKrf6aW0 9PDhUS7+8V6iGQENWZlw3Tolfsrzl07hA86QJCCU4UiYGHGSHemEM4XytzKAc0lfQ8Nx RKcq+qdHLV7XP9qIw1FdTK7o+lu4wtcH0iqhFmIcOBKegOBFYf/wQ+lYMYqpNqMlYLG+ o5sigVvSuLvoCyUYJYElRoEE4sQI2cM3gA2Uyz/DH4XhPzWz6D/SHGpJocEBKC+B7Xqc Gusw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RYDbWxfc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id o2-20020a634102000000b00573ed0023e1si9159421pga.333.2023.10.09.01.59.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 01:59:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RYDbWxfc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id D497F8044FD6; Mon, 9 Oct 2023 01:59:45 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345604AbjJII7e (ORCPT + 99 others); Mon, 9 Oct 2023 04:59:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42942 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345598AbjJII7c (ORCPT ); Mon, 9 Oct 2023 04:59:32 -0400 Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C3E7CF for ; Mon, 9 Oct 2023 01:59:29 -0700 (PDT) Received: by mail-wr1-x435.google.com with SMTP id ffacd0b85a97d-307d58b3efbso3862300f8f.0 for ; Mon, 09 Oct 2023 01:59:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1696841967; x=1697446767; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=4ShYikb9cSe8u3igb5BJ1QIbt5aUV5TPk6yNfqKle5Q=; b=RYDbWxfc8eF+fR77fM2IzLzR4uylQvF7s+dJqAogsDJLE1cqzfrk58HZz7RVFwPJe5 naic847j5DR/864wPbskOjZF7a0CHh0MDqjAiQegSDSqL2P9eP/NTswijlFarBSVOWPy aOLve4eGVf3y8UomeUKSudcyMvPEMPq9d7nyzJUbTd4NoQTCeTID8QIbsetAGFQg4uiA MPRjWLHnc9JvJUTsk6pH+r9l34GXSCD48dcYKBSk8NXmc+ZgFJmkNhOAwhq2MZj7QiEE UzDwsZli4bkgBM3FaW84MffxuHYpJJcUAKiXJGzzT4XCUtpAV1fFDHrlC53u4hw6KGK/ ZtLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696841967; x=1697446767; h=content-transfer-encoding:in-reply-to:autocrypt: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=4ShYikb9cSe8u3igb5BJ1QIbt5aUV5TPk6yNfqKle5Q=; b=gEUz0rqP4MwRpJv+f9R633DETGELXW5H75zcaIGHJ1i9duuXUiiLlT2Cj49aqFqToz qjbb+rIaaoZTC9ldl3spnH4qXDpXNE2cDNkowVRvuz8EubfeltEKeOj9Pl80NT9FdWWa +tN/p8CYhiP8gTzGdS7fInJ+RRB3u8dejZH+i7oglHeU9P38qqaFxsoiHA2PQ1eIMP5y U2hUG9hu9B0YXXq/NpR23Bx5Dtj93g9IrkMdHfVBaO9antdEX5zH1uBpUWkdLpTSjJZS Hi5pDMSxoEG/Fkt95ijEeSvrfO+b+A4bzz+eJL71/jbkwrp/4OeTgNf+WpbMi/GBPQRL F1AQ== X-Gm-Message-State: AOJu0Yw0y+7lWn4TQfb0KWhjLFU76agVC/g8RonnaIvyFvMeBKelDNjC yaGgcVVEvY7BnRdYEGawy2YP0Q== X-Received: by 2002:a5d:4486:0:b0:321:6bae:f764 with SMTP id j6-20020a5d4486000000b003216baef764mr12765494wrq.23.1696841967452; Mon, 09 Oct 2023 01:59:27 -0700 (PDT) Received: from [192.168.1.197] (5-157-101-10.dyn.eolo.it. [5.157.101.10]) by smtp.gmail.com with ESMTPSA id q9-20020adfcd89000000b00317f70240afsm8893294wrj.27.2023.10.09.01.59.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 09 Oct 2023 01:59:26 -0700 (PDT) Message-ID: <2064318a-ffbb-4268-b6f3-2a8546984925@linaro.org> Date: Mon, 9 Oct 2023 10:59:22 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] dt-bindings: watchdog: da9062-wdt: convert txt to yaml Content-Language: en-US To: Nik Bune , wim@linux-watchdog.org, linux@roeck-us.net, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, skhan@linuxfoundation.org, stwiss.opensource@diasemi.com Cc: linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20231006111104.11105-1-n2h9z4@gmail.com> From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.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BfWEcVUqa+XdUEciwG/SgNyxBZepj41oVq FPSVE+Ni2tNrW/e16b8mgXNngHSnbsr6pAIXZH3qFW+4TKPMGZ2rZ6zITrMip+12jgw4mGjy 5y06JZvA02rZT2k9aa7i9dUUFggaanI09jNGbRA/ABEBAAHCwXwEGAEKACYCGwwWIQSb0H4O DFH41ZZ3t1Qbk0N9O0FimwUCYDzvagUJFF+UtgAKCRAbk0N9O0Fim9JzD/0auoGtUu4mgnna oEEpQEOjgT7l9TVuO3Qa/SeH+E0m55y5Fjpp6ZToc481za3xAcxK/BtIX5Wn1mQ6+szfrJQ6 59y2io437BeuWIRjQniSxHz1kgtFECiV30yHRgOoQlzUea7FgsnuWdstgfWi6LxstswEzxLZ Sj1EqpXYZE4uLjh6dW292sO+j4LEqPYr53hyV4I2LPmptPE9Rb9yCTAbSUlzgjiyyjuXhcwM qf3lzsm02y7Ooq+ERVKiJzlvLd9tSe4jRx6Z6LMXhB21fa5DGs/tHAcUF35hSJrvMJzPT/+u /oVmYDFZkbLlqs2XpWaVCo2jv8+iHxZZ9FL7F6AHFzqEFdqGnJQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <20231006111104.11105-1-n2h9z4@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Mon, 09 Oct 2023 01:59:46 -0700 (PDT) X-Spam-Level: ** On 06/10/2023 13:11, Nik Bune wrote: > Convert txt file to yaml. Please mention changes done during conversion with justification (e.g. adding reg already used by something). > ... > diff --git a/Documentation/devicetree/bindings/watchdog/da9062-wdt.yaml b/Documentation/devicetree/bindings/watchdog/da9062-wdt.yaml > new file mode 100644 > index 000000000000..9911cc3068cf > --- /dev/null > +++ b/Documentation/devicetree/bindings/watchdog/da9062-wdt.yaml Filename based on compatible, so: dlg,da9062-watchdog.yaml > @@ -0,0 +1,52 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/watchdog/da9062-wdt.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Dialog Semiconductor DA9062/61 Watchdog Timer > + > +maintainers: > + - Steve Twiss > + > +allOf: > + - $ref: watchdog.yaml# > + > +properties: > + compatible: > + enum: > + - dlg,da9061-watchdog > + - dlg,da9062-watchdog > + > + reg: > + maxItems: 1 > + > + dlg,use-sw-pm: > + type: boolean > + description: > No need for > > + Add this property to disable the watchdog during suspend. > + Only use this option if you can't use the watchdog automatic suspend > + function during a suspend (see register CONTROL_B). > + > + dlg,wdt-sd: > + type: boolean > + description: > No need for > > + Set what happens on watchdog timeout. If this bit is set the > + watchdog timeout triggers SHUTDOWN, if cleared the watchdog triggers > + POWERDOWN. Can be 0 or 1. Only use this option if you want to change the > + default chip's OTP setting for WATCHDOG_SD bit. If this property is NOT > + set the WATCHDOG_SD bit and on timeout watchdog behavior will match the > + chip's OTP settings. > + > +required: > + - compatible > + - reg > + > +unevaluatedProperties: false > + > +examples: > + - | > + watchdog@fffffd00 { > + compatible = "dlg,da9062-watchdog"; > + reg = <0xfffffd00 0x10>; It's nice to add here some properties to make example complete. > + }; Best regards, Krzysztof