Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp1963692rdg; Sun, 15 Oct 2023 05:28:43 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGONSticBwr8FHzK2ImzCeu5woY8ezlPr2Ay446V8uM37zSVipW+pJro+KqYZLpGFoiCwee X-Received: by 2002:a25:4195:0:b0:d9b:90bf:e74b with SMTP id o143-20020a254195000000b00d9b90bfe74bmr2381340yba.7.1697372923217; Sun, 15 Oct 2023 05:28:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697372923; cv=none; d=google.com; s=arc-20160816; b=vizL020bVClOVXUXvpGCJmML+feLUCuslRywlGYuooezCaT1cfnk4jE5iyJQFamrqR 9v1AJPJhleL0JOYtNMDsG16t7QsHO2yvuRd638OP+IaqS1yciw4YCZQI+IXBE5HduGL1 Gc+30zzT6ORvlVEqJ+Ly9xaylMFjEL9GN56mF9gIt14OLX22jJXYvVFNGPxfD4hDlixx owMXKty/IbZus2OElwYCr6FTW/VXmwZW77a99BC2V4+HUZP3ldIwJSCvJkV8s3NhJUVu aUFGyu6YbYcpuKnfEtmOs9csynBY/1MfcDu2W6QqSooKnRFs6lreIxh6+IXa0+4sMJXP 21Iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:sender:dkim-signature; bh=HhN3921uVY9PqUXI+6AaZ5ld60TSo4nIWxl7BRmfz8Y=; fh=QQ+bh7vG5wn8kKY6TdvQHsB/vOLQ+2vU4pOfqOIxkzQ=; b=ASjB5e+2HvZUHopz/R5VOQb2QV192Nnj6sLu9DQAcetCfV5eYPS2uWvmMF40QhFnpS CwtQ3VDPmqEQA5+g9B4EnXA2oga1WUVS2Um5XlY/Xo5vhbYjOEq4490JXJsSAfS7OQar bpKOV9f7VWBTzBh31BeJu0jU2LxnSoekH9IPZ21rqs7VslRI+PEZzBp8yxpSO+TFplRd YY7ZA3tIHsp/FE0XQ78wf/8+/2Vc2xjlt8XzSQfTVG+WG34vWO8ctK7p0n+sm2YIHuUl 9QQI/8FyS2Uk8v9knF9piYCZrlAjNeDxkMrgz9ypcz9DMVnl4DU4B4UZko+tkICVLR6f vQKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=OMJzpElz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id s6-20020a056a0008c600b0068fb95e5401si21969654pfu.65.2023.10.15.05.28.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Oct 2023 05:28:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=OMJzpElz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 0FA248051921; Sun, 15 Oct 2023 05:28:40 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229772AbjJOM2a (ORCPT + 99 others); Sun, 15 Oct 2023 08:28:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229561AbjJOM2a (ORCPT ); Sun, 15 Oct 2023 08:28:30 -0400 Received: from mail-vk1-xa34.google.com (mail-vk1-xa34.google.com [IPv6:2607:f8b0:4864:20::a34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5BBE0A9; Sun, 15 Oct 2023 05:28:28 -0700 (PDT) Received: by mail-vk1-xa34.google.com with SMTP id 71dfb90a1353d-49dd647a477so1119710e0c.3; Sun, 15 Oct 2023 05:28:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697372907; x=1697977707; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=HhN3921uVY9PqUXI+6AaZ5ld60TSo4nIWxl7BRmfz8Y=; b=OMJzpElznPawud3NLGCoSifRWT2/ziX5hPqAxXRywoWQkCvUjs/kx2McAEuyLTOkMu INYT/gMZBGUe4LljlQru9cy4nWxo7ZibTs94f2j7tdTKonowPpPRFCIbj+gvCXPnIQ40 8ZUobf7tX9P6AR6DCGodYVTITVW8Tf65HpJTBXonTKxTzkbfnOukemqcLzwmQUB8jD1S /Wycmg1k2L/XrDnaXWZo87sseGqG30xpd8SpXq2pS2lbfZB81hbdUO8rxKJ5/EJtP/qy qf9BFNPz0hcn6N0e2CYGmOsXs8khVUFNXLflT2CPFOhOGbu+3u450OzqbvwYqyLPriYk xARg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697372907; x=1697977707; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=HhN3921uVY9PqUXI+6AaZ5ld60TSo4nIWxl7BRmfz8Y=; b=VZAid+X7mlX23KiORJX0IEFnCKu/tt5kdhup0Xcc1uttPMbKnZ11rX7vm9Z9aAvXSk BEim1cdnotlLEuuIrrpI/jDQgrxZPGGZlC1fLKeYbRbIqsVNZH0N5uZWdyH3h6PIURBA WMrO5jthlJ4ykXc+sjrxCj29ewlkOJ6JvxvkfGqpYFCtvFXglQXhFPrpXfmwqPS9UC8X UVvEN+4XtjcYAkKV/TWv/PA/YmFwqcp+WVyL+k2/Dej0fhW2OFWrjqFXOVuDmyn3CPGe hJn48pBXdXTlrPhdOYE+XFWvHnQOTVSCU/SkiazQp8sgyEG+7fjkglA94oELdLF1YGdh gZ3g== X-Gm-Message-State: AOJu0YxwnaLPiupm8qoTEKxmIa1Nit9N5BQd4eoRfNLzT562QRMQXrNd BZBuPJLbK9Fq2fN5V43LoykokdQ9qxI= X-Received: by 2002:a1f:cb45:0:b0:49a:b737:4dfa with SMTP id b66-20020a1fcb45000000b0049ab7374dfamr23493661vkg.4.1697372907380; Sun, 15 Oct 2023 05:28:27 -0700 (PDT) Received: from server.roeck-us.net ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id f191-20020a1f9cc8000000b0049d0fd4d2ffsm584705vke.35.2023.10.15.05.28.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Oct 2023 05:28:26 -0700 (PDT) Sender: Guenter Roeck Date: Sun, 15 Oct 2023 05:28:24 -0700 From: Guenter Roeck To: Nik Bune Cc: wim@linux-watchdog.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, skhan@linuxfoundation.org, stwiss.opensource@diasemi.com, linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] dt-bindings: watchdog: da9062-wdt: convert txt to yaml Message-ID: References: <20231014170434.159310-1-n2h9z4@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231014170434.159310-1-n2h9z4@gmail.com> X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.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 (pete.vger.email [0.0.0.0]); Sun, 15 Oct 2023 05:28:40 -0700 (PDT) On Sat, Oct 14, 2023 at 07:04:34PM +0200, Nik Bune wrote: > Convert txt file to yaml. > Add a mainterner block. Took a value from dlg,da9063 PMIC. > > > Signed-off-by: Nik Bune > --- Reviewed-by: Guenter Roeck > > Changes in v3 > - Changed type of dlg,wdt-sd property from boolean to uint32. Following the discussed in v2 patch thread. > > v2 patch: https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20231010211439.98458-1-n2h9z4@gmail.com/ > > > .../bindings/watchdog/da9062-wdt.txt | 34 ------------- > .../watchdog/dlg,da9062-watchdog.yaml | 50 +++++++++++++++++++ > 2 files changed, 50 insertions(+), 34 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/watchdog/da9062-wdt.txt > create mode 100644 Documentation/devicetree/bindings/watchdog/dlg,da9062-watchdog.yaml > > diff --git a/Documentation/devicetree/bindings/watchdog/da9062-wdt.txt b/Documentation/devicetree/bindings/watchdog/da9062-wdt.txt > deleted file mode 100644 > index 354314d854ef..000000000000 > --- a/Documentation/devicetree/bindings/watchdog/da9062-wdt.txt > +++ /dev/null > @@ -1,34 +0,0 @@ > -* Dialog Semiconductor DA9062/61 Watchdog Timer > - > -Required properties: > - > -- compatible: should be one of the following valid compatible string lines: > - "dlg,da9061-watchdog", "dlg,da9062-watchdog" > - "dlg,da9062-watchdog" > - > -Optional properties: > -- dlg,use-sw-pm: 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: 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. > - > -Example: DA9062 > - > - pmic0: da9062@58 { > - watchdog { > - compatible = "dlg,da9062-watchdog"; > - }; > - }; > - > -Example: DA9061 using a fall-back compatible for the DA9062 watchdog driver > - > - pmic0: da9061@58 { > - watchdog { > - compatible = "dlg,da9061-watchdog", "dlg,da9062-watchdog"; > - }; > - }; > diff --git a/Documentation/devicetree/bindings/watchdog/dlg,da9062-watchdog.yaml b/Documentation/devicetree/bindings/watchdog/dlg,da9062-watchdog.yaml > new file mode 100644 > index 000000000000..f058628bb632 > --- /dev/null > +++ b/Documentation/devicetree/bindings/watchdog/dlg,da9062-watchdog.yaml > @@ -0,0 +1,50 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/watchdog/dlg,da9062-watchdog.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 > + > + dlg,use-sw-pm: > + type: boolean > + description: > + 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: > + $ref: /schemas/types.yaml#/definitions/uint32 > + enum: [0, 1] > + description: > + 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 > + > +unevaluatedProperties: false > + > +examples: > + - | > + watchdog { > + compatible = "dlg,da9062-watchdog"; > + dlg,use-sw-pm; > + dlg,wdt-sd = <1>; > + }; > -- > 2.34.1 >