Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp2752550pxb; Mon, 31 Jan 2022 03:37:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJxOwsLImVZebTTn78xzF4HO23mZ1lma/kIXvZo8Sj5eORaixov8TWWPr4UR30awl4Q9DnIT X-Received: by 2002:a05:6a00:1342:: with SMTP id k2mr19747419pfu.20.1643629049059; Mon, 31 Jan 2022 03:37:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643629049; cv=none; d=google.com; s=arc-20160816; b=WYm75yrhnHCoDAGHxhMnvs8umin/V/q/Jn060vrSfj7QeHd0/ZMvhLFDeK9g+mHoRi URVZ30am8clF7hBo50l5tVv5szGaFQ4H8CHwZd9vdZx3AqBdcgEqPU28sLFax7MaKsXk 3ZodN3Sz4x74/INUg2MeZwFAtKV9m8cgB3uvLTdK6z9Gf49HX1o/PkzHp6QaiezxblsQ JlY1w1iknR7hYEh7iPrFOSrxGVRB9iWEFJF4+yyMqUY0lUt79sNUXmxL7AvGtLZFdO4g flVYASoG/mDGHXkGwL/KF7vrV4+NNu1INqt7DeUQKon1QVWznNK31hKGZ/Zd8k0J0XFW rF1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=ESpslK+beLC9Gzg3G2enDgpikVrsMthhnTttwFurZUU=; b=SRY2uQJHgzjqqQyXE7EOlsNxnLMXpE+faLrLK2Mr924EZ5sc5NXBerICEwbyAB2Yyo KDcZ9qIPTQZ9JSnELMDyb2t+JO78AOFTUWQsSnZTq+5XQaeAgwsqa3BSbxfSXrTOvLNM nBv4yjge1MkdAT2BMSvWm0FaGMTJ1yotNlZP9rgDnn7Rcv8PkKqlD6BAgSfKayiMOX0y 8KOYT+rdlUG8zg6puc4lDr4+9GZRSuzXwSAgzmlL/rOl4hCqYafCNHN6HvBccMq6Q+Mh SzaeRMr7MIAJYzzPxlXSwgjdBamgIkupAnqa31Ah5ae44nVRTTNFxIGC11rvWVDAXxub wwng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=RP0QkJu8; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l65si7841254pge.235.2022.01.31.03.37.18; Mon, 31 Jan 2022 03:37:29 -0800 (PST) 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=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=RP0QkJu8; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236304AbiA1UtI (ORCPT + 99 others); Fri, 28 Jan 2022 15:49:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235562AbiA1UtG (ORCPT ); Fri, 28 Jan 2022 15:49:06 -0500 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6711DC061747 for ; Fri, 28 Jan 2022 12:49:06 -0800 (PST) Received: by mail-wm1-x32a.google.com with SMTP id n12-20020a05600c3b8c00b0034eb13edb8eso5238441wms.0 for ; Fri, 28 Jan 2022 12:49:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ESpslK+beLC9Gzg3G2enDgpikVrsMthhnTttwFurZUU=; b=RP0QkJu8mO0x6vjhFhpMD0CnzenWOihV+I6CsFJCVRy1BUBlML6BMv5TM79Q6UwVzV Q49gSU5/RYQINK6HLaS5CXWV3+8gDGaSMWIHm/ccFn/BRCXaIOpv10z43Agz3ChPuvul 3RXA5KAwqmXE6cdaADXIegXtdIqwlWYcpe0SLKrVgRMwzPUc9X9C08MF/UzWhBd3dG8i S3T72uFAR+EnJuBdZm1HYdzgaIvKDCI52JDclgzSjeiNiC2MNQqVCcPUi9qr8nU46E4S GGjiWSElUEP+4eoS2KPXkIJ5BuboqXsCAWqTi4pWs/QmGi02kjrzhXRoAGYb+fygo8c3 DXUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ESpslK+beLC9Gzg3G2enDgpikVrsMthhnTttwFurZUU=; b=H6CydvPCqwupjE9m8NzTLtl2sD1IEP+5ry+b4TfMImu9XaCgBJcd+88RJnlpWhZQV0 CkhzjxCemQsHi2ob89MyGTiq+1rlhYTskU6Rb7EQHtKfFkvucdDIXVJQMh2J17nAw144 LciZP3i/wvj6OWcVnNkqns50K1NhnWFiNbIo+OcHeDcX71rZzJZTiC91Xs84tJsBr+Rk LobXnb3sghrWSC3nwaIlAjHXnnLnzSXu8Vgei66q39lPiojHxwf3xltUwTkbt+Rh7AEK 6fa4D8+vu9KIoyLLJjkg/YK+stM+w9pPvAbvC2KxoEFoMnR3pUqfnZpZEGjeo3TiS6/B HFiw== X-Gm-Message-State: AOAM531ZXoVxX8ceHae8kZAaMFsDW6Z5OT08FdwqBIZHc/L40Z8I2Zcp 25qJji+uLoAzU+PoagPSf7LUnQ== X-Received: by 2002:a05:600c:4f8d:: with SMTP id n13mr17088213wmq.45.1643402944959; Fri, 28 Jan 2022 12:49:04 -0800 (PST) Received: from localhost.localdomain (laubervilliers-658-1-213-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.googlemail.com with ESMTPSA id l10sm5453398wrz.20.2022.01.28.12.49.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Jan 2022 12:49:04 -0800 (PST) From: Corentin Labbe To: linux@roeck-us.net, robh+dt@kernel.org, linus.walleij@linaro.org, wim@linux-watchdog.org Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-watchdog@vger.kernel.org, Corentin Labbe Subject: [PATCH] dt-bindings: watchdog: convert faraday,ftwdt010 to yaml Date: Fri, 28 Jan 2022 20:48:56 +0000 Message-Id: <20220128204856.494643-1-clabbe@baylibre.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Converts watchdog/faraday,ftwdt010.txt to yaml. This permits to detect missing properties like clocks and resets or compatible like moxa,moxart-watchdog. Signed-off-by: Corentin Labbe --- .../bindings/watchdog/faraday,ftwdt010.txt | 22 ------- .../bindings/watchdog/faraday,ftwdt010.yaml | 60 +++++++++++++++++++ 2 files changed, 60 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..377529b21267 --- /dev/null +++ b/Documentation/devicetree/bindings/watchdog/faraday,ftwdt010.yaml @@ -0,0 +1,60 @@ +# 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 + +description: | + This is an IP part from Faraday Technology found in the Gemini + SoCs and others. + +properties: + compatible: + oneOf: + - const: "faraday,ftwdt010" + - items: + - const: "cortina,gemini-watchdog" + - const: "faraday,ftwdt010" + - items: + - const: "moxa,moxart-watchdog" + - const: "faraday,ftwdt010" + reg: + maxItems: 1 + resets: + maxItems: 1 + clocks: + maxItems: 1 + clock-names: + const: PCLK + interrupts: + maxItems: 1 + timeout-sec: + description: the default watchdog timeout in seconds. + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + #include + watchdog@41000000 { + compatible = "faraday,ftwdt010"; + reg = <0x41000000 0x1000>; + interrupts = <3 IRQ_TYPE_LEVEL_HIGH>; + }; + - | + watchdog: watchdog@98500000 { + compatible = "moxa,moxart-watchdog", "faraday,ftwdt010"; + reg = <0x98500000 0x10>; + clocks = <&clk_apb>; + clock-names = "PCLK"; + }; +... -- 2.34.1