From patchwork Sun Mar 12 23:28:13 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 95187 Delivered-To: patch@linaro.org Received: by 10.140.82.71 with SMTP id g65csp952630qgd; Sun, 12 Mar 2017 16:28:33 -0700 (PDT) X-Received: by 10.99.166.17 with SMTP id t17mr33833484pge.196.1489361313789; Sun, 12 Mar 2017 16:28:33 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e3si16421668plb.171.2017.03.12.16.28.33; Sun, 12 Mar 2017 16:28:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935512AbdCLX2b (ORCPT + 4 others); Sun, 12 Mar 2017 19:28:31 -0400 Received: from mail-lf0-f46.google.com ([209.85.215.46]:35806 "EHLO mail-lf0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935500AbdCLX2a (ORCPT ); Sun, 12 Mar 2017 19:28:30 -0400 Received: by mail-lf0-f46.google.com with SMTP id j90so57567076lfk.2 for ; Sun, 12 Mar 2017 16:28:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=mPVayb4O1VGMRqCgzLkqsILiVNdin+W2QQ5rA2oTvuE=; b=AnVGXoVL9IF/+tKfWKHR6kmVMMV59mQMN4TqUI9H42ZP/0voKHbmeLjJ5OSIchTuZE ACb1eFBvc6GJbgm+O9CboR/EOD+uM42MDF/CwMYiOEsdCuXaF6HwizLrHAlV9+0Qjp9q ql1xvEkHs0Uhpy91wYBp7gveobxeq82N2TZFU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=mPVayb4O1VGMRqCgzLkqsILiVNdin+W2QQ5rA2oTvuE=; b=j2BO2axfYOvfboyymv8XvHqIJuKcQD4Zm54GUCkanmTMzRyUYN6D0j5lmNPeC2MF1F aU+mcTUK6BaAI2whUVLEIghibVWz226ELLMp5gRTJWDAuKtpKgeItZ0AOn3yq/706I2v 2K5IbN+x5PmcbvAsZEFKA8uOACiETMuiL8EMWLUiGrdqrL00+FmGIgAbnw7ypjPebQqg bf37FgnC/B6A3uMSzkKRUYkVSFPVT5Lwg5sOuIp82qwT9uKzAdzMJWmbXoi3CQm9xtqR gvw4TbbRZavGhUr3bWgCVGKssPHGzEy2ZbL/pWeT/5NITYEaoY0RN8k+BHjPpaCeQvcs oziA== X-Gm-Message-State: AMke39mXtwXMpVk8bEv8i7asljq+G0Azpdyxt9GTwEDr8Lewy6HUCfMu8FGRgohsM3MMP5Uf X-Received: by 10.46.13.9 with SMTP id 9mr9015440ljn.40.1489361308386; Sun, 12 Mar 2017 16:28:28 -0700 (PDT) Received: from localhost.localdomain (c-357171d5.014-348-6c756e10.cust.bredbandsbolaget.se. [213.113.113.53]) by smtp.gmail.com with ESMTPSA id l137sm1811955lfb.64.2017.03.12.16.28.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 12 Mar 2017 16:28:27 -0700 (PDT) From: Linus Walleij To: Hans Ulli Kroll , Florian Fainelli , Jonas Jensen , Alexandre Courbot Cc: Janos Laube , Paulius Zaleckas , openwrt-devel@openwrt.org, linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, Linus Walleij , devicetree@vger.kernel.org Subject: [PATCH 1/6] gpio: gemini: augment DT bindings Date: Mon, 13 Mar 2017 00:28:13 +0100 Message-Id: <20170312232818.26304-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.9.3 Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org The DT bindings assumed that this IP block was coming from Cortina Systems, which turns out not to be true. It is a standard IP block from Faraday Technology and also used in the Moxa moxart SoC. We augment the bindings to cover all existing parts and rename it after the IP block. This involves deleting the old Moxa bindings that now are contained in this binding. Cc: devicetree@vger.kernel.org Cc: Jonas Jensen Signed-off-by: Linus Walleij --- ...{cortina,gemini-gpio.txt => faraday,ftgpio010.txt} | 9 ++++++--- .../devicetree/bindings/gpio/moxa,moxart-gpio.txt | 19 ------------------- 2 files changed, 6 insertions(+), 22 deletions(-) rename Documentation/devicetree/bindings/gpio/{cortina,gemini-gpio.txt => faraday,ftgpio010.txt} (70%) delete mode 100644 Documentation/devicetree/bindings/gpio/moxa,moxart-gpio.txt -- 2.9.3 -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Acked-by: Rob Herring diff --git a/Documentation/devicetree/bindings/gpio/cortina,gemini-gpio.txt b/Documentation/devicetree/bindings/gpio/faraday,ftgpio010.txt similarity index 70% rename from Documentation/devicetree/bindings/gpio/cortina,gemini-gpio.txt rename to Documentation/devicetree/bindings/gpio/faraday,ftgpio010.txt index 5c9246c054e5..d04236558619 100644 --- a/Documentation/devicetree/bindings/gpio/cortina,gemini-gpio.txt +++ b/Documentation/devicetree/bindings/gpio/faraday,ftgpio010.txt @@ -1,8 +1,11 @@ -Cortina Systems Gemini GPIO Controller +Faraday Technology FTGPIO010 GPIO Controller Required properties: -- compatible : Must be "cortina,gemini-gpio" +- 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 @@ -14,7 +17,7 @@ Required properties: Example: gpio@4d000000 { - compatible = "cortina,gemini-gpio"; + compatible = "cortina,gemini-gpio", "faraday,ftgpio010"; reg = <0x4d000000 0x100>; interrupts = <22 IRQ_TYPE_LEVEL_HIGH>; gpio-controller; diff --git a/Documentation/devicetree/bindings/gpio/moxa,moxart-gpio.txt b/Documentation/devicetree/bindings/gpio/moxa,moxart-gpio.txt deleted file mode 100644 index f8e8f185a3db..000000000000 --- a/Documentation/devicetree/bindings/gpio/moxa,moxart-gpio.txt +++ /dev/null @@ -1,19 +0,0 @@ -MOXA ART GPIO Controller - -Required properties: - -- #gpio-cells : Should be 2, The first cell is the pin number, - the second cell is used to specify polarity: - 0 = active high - 1 = active low -- compatible : Must be "moxa,moxart-gpio" -- reg : Should contain registers location and length - -Example: - - gpio: gpio@98700000 { - gpio-controller; - #gpio-cells = <2>; - compatible = "moxa,moxart-gpio"; - reg = <0x98700000 0xC>; - };