Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp64900pxb; Thu, 27 Jan 2022 15:11:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJy/93zNezNWel8sEmuKA0HAOplI7faYFz04mkjyLPYE9EKPEPoJrwYtcKjYHNjIa8pGHWpS X-Received: by 2002:a17:907:168a:: with SMTP id hc10mr4548682ejc.283.1643324991082; Thu, 27 Jan 2022 15:09:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643324991; cv=none; d=google.com; s=arc-20160816; b=vK7gDh7fCtpR7nMPIwK8iXjh5vd0H6xfJKxJ3fK7ejEWbSF8cazXZUY7pmKYPcrPTW QDjWNOuBkyH5cC042SgZ4BrYuelGFkQx8FKWdwLf3SjR4aaV6jX/hJB68JlTLRjGD5E7 jVdXPCyfVlvx9Hw6UDv/RCjZN8Nr5SfsRK6w2Lys7aktw7ndSmhg0okFc7qSBOW8c4CL ruAHjv7z/ZRnqI6vLtIhOORLCKxzMfN0zDxENM8d6MIkBOkzuD0C653Rkny9HOryFX5J N6W2L6/XMei1izq9F4X9Qsqt7R7qZpET4arl5VCFlmzYJv0SxvCHj1b62a3pD5AlQoE+ jKvg== 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=cVPgxajGF4waywkWo/vav6IL6pUCtJW7csqf25Rx8wo=; b=pbhHMg487SWgEmd82OP7zQTjVVc3cuV9LHk+MA3X8UuWFwnzhnmW3nJBhzfCk+CEcW suoj/PYzfG9Ta3YMNAHndRZsOfSU3jPuc+LxbXNoUUIIlvU+8OhRhm4zXGp7u3xwDoIt n+qnSzLo8wxZfZLQeJKV9xnpqcUTCw6NWm9svusYh2koNoPdTCkDW++csZ7/sLfj5u8S AknOL1SIo0C45edva+2fAny4byGKLzIZNLLbMmf37J8V4CrfrOSlpirSH7jIlVgvMVYk BOCEQ7S3I771mPwInzI+4fAMCyPPi29yYGNa84WY1ZejYMZn4oAVPsH2vKKcHWschFAK wLQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=guqg2Dm+; 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 du17si1847849ejc.826.2022.01.27.15.08.52; Thu, 27 Jan 2022 15:09:51 -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=guqg2Dm+; 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 S236652AbiA0Mag (ORCPT + 99 others); Thu, 27 Jan 2022 07:30:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235195AbiA0Maf (ORCPT ); Thu, 27 Jan 2022 07:30:35 -0500 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D84A4C061747 for ; Thu, 27 Jan 2022 04:30:34 -0800 (PST) Received: by mail-wr1-x433.google.com with SMTP id e8so4583944wrc.0 for ; Thu, 27 Jan 2022 04:30:34 -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=cVPgxajGF4waywkWo/vav6IL6pUCtJW7csqf25Rx8wo=; b=guqg2Dm+MTry8RVm33iQwmCWL6WzA11G0pk+3UXZJw1BSkUkJTnOZ5D56KIXGfTdoL JHvkjFtxtTiN9xsKmpQPHVukrgv8pWCkD0vZdwbgY5heCqAOMcLBTRex+tneKL9T770k LMBfQtFM6uTBsNn16fRMg4atIjPUU2a4IcaXTtGULYGPuUHUKOcoi1WxhK5FHFvzqxs8 hiBRGj3kBFy6vGX0ebuufG5QlpDQXxKQbaTp+vSpSGoruKKfjq/MGxS2OULoLnNcZh1v OPvxSD2lKOrY58v9Gau86gyvGODUHz7ylkge8xalIPsW1iWjynNTrDZEG6s6nTacn+2u kz7g== 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=cVPgxajGF4waywkWo/vav6IL6pUCtJW7csqf25Rx8wo=; b=IS96C/L+ddQp7iSJvYsGjbIQ9awPu79YwLgyRuLz9oKV+2abwB83BDtfTDD/lpG6Kg sSoffIB1LhDsT8Bygf5Hn074Z5crYOb7p6L/EUH32YJ+eSg8tEwNuZA7uriuAnfBjsKk I+kdljV/Ci/5p+m4pBoLVcuY98zm8i2ea/fXWlzVJOtzKvgU16z3mYO3TNjaqVjShgrT 6ZnWetYSc4Ms7c0Lvf7oVE1IlJNyEDxiu9HQiw6OLwAT1bquC9PTHm3PoGP2viRsjuQ4 kFtgAGAbulilbUgVGn9euc5rHbgY15Vyg2eT4kgeFZRl9khanC9pkHUecwOvd30JD6+V Bm0w== X-Gm-Message-State: AOAM532N7AbZqIhEtToaS+d5xNUVjQz8U+uDTJNTqnA2TotojlsysbvG uKqc7u+B8dFw8K5G9AG88Wikuw== X-Received: by 2002:adf:ebc2:: with SMTP id v2mr2976864wrn.498.1643286633466; Thu, 27 Jan 2022 04:30:33 -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 h127sm12914619wmh.2.2022.01.27.04.30.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Jan 2022 04:30:32 -0800 (PST) From: Corentin Labbe To: brgl@bgdev.pl, conleylee@foxmail.com, linus.walleij@linaro.org, robh+dt@kernel.org Cc: devicetree@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Corentin Labbe Subject: [PATCH] dt-bindings: gpio: convert faraday,ftgpio01 to yaml Date: Thu, 27 Jan 2022 12:30:28 +0000 Message-Id: <20220127123028.3992288-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 gpio/faraday,ftgpio010.txt to yaml. Signed-off-by: Corentin Labbe --- This commit will cause arch/arm/boot/dts/moxart-uc7112lx.dts to fail DT validation, but the GPIO driver need an interrupt so the current moxart DT is incomplete and the error is appropriate. .../bindings/gpio/faraday,ftgpio010.txt | 27 --------- .../bindings/gpio/faraday,ftgpio010.yaml | 59 +++++++++++++++++++ 2 files changed, 59 insertions(+), 27 deletions(-) delete mode 100644 Documentation/devicetree/bindings/gpio/faraday,ftgpio010.txt create mode 100644 Documentation/devicetree/bindings/gpio/faraday,ftgpio010.yaml diff --git a/Documentation/devicetree/bindings/gpio/faraday,ftgpio010.txt b/Documentation/devicetree/bindings/gpio/faraday,ftgpio010.txt deleted file mode 100644 index d04236558619..000000000000 --- a/Documentation/devicetree/bindings/gpio/faraday,ftgpio010.txt +++ /dev/null @@ -1,27 +0,0 @@ -Faraday Technology FTGPIO010 GPIO Controller - -Required properties: - -- compatible : Should be one of - "cortina,gemini-gpio", "faraday,ftgpio010" - "moxa,moxart-gpio", "faraday,ftgpio010" - "faraday,ftgpio010" -- reg : Should contain registers location and length -- interrupts : Should contain the interrupt line for the GPIO block -- gpio-controller : marks this as a GPIO controller -- #gpio-cells : Should be 2, see gpio/gpio.txt -- interrupt-controller : marks this as an interrupt controller -- #interrupt-cells : a standard two-cell interrupt flag, see - interrupt-controller/interrupts.txt - -Example: - -gpio@4d000000 { - compatible = "cortina,gemini-gpio", "faraday,ftgpio010"; - reg = <0x4d000000 0x100>; - interrupts = <22 IRQ_TYPE_LEVEL_HIGH>; - gpio-controller; - #gpio-cells = <2>; - interrupt-controller; - #interrupt-cells = <2>; -}; diff --git a/Documentation/devicetree/bindings/gpio/faraday,ftgpio010.yaml b/Documentation/devicetree/bindings/gpio/faraday,ftgpio010.yaml new file mode 100644 index 000000000000..dfd10b76c9d5 --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/faraday,ftgpio010.yaml @@ -0,0 +1,59 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/gpio/faraday,ftgpio010.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Faraday Technology FTGPIO010 GPIO Controller + +maintainers: + - Linus Walleij + +properties: + compatible: + oneOf: + - items: + - const: "cortina,gemini-gpio" + - const: "faraday,ftgpio010" + - items: + - const: "moxa,moxart-gpio" + - const: "faraday,ftgpio010" + - const: "faraday,ftgpio010" + reg: + maxItems: 1 + resets: + maxItems: 1 + clocks: + maxItems: 1 + interrupts: + maxItems: 1 + description: Should contain the interrupt line for the GPIO block + gpio-controller: true + "#gpio-cells": + const: 2 + interrupt-controller: true + "#interrupt-cells": + const: 2 + +required: + - compatible + - reg + - interrupts + - "#gpio-cells" + - interrupt-controller + - "#interrupt-cells" + +additionalProperties: false + +examples: + - | + #include + gpio@4d000000 { + compatible = "cortina,gemini-gpio", "faraday,ftgpio010"; + reg = <0x4d000000 0x100>; + interrupts = <22 IRQ_TYPE_LEVEL_HIGH>; + gpio-controller; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + }; -- 2.34.1