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: 737940 X-Patchwork-Delegate: blogic@openwrt.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3vhHHt4PgGz9s7B for ; Mon, 13 Mar 2017 10:28:42 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="AnVGXoVL"; dkim-atps=neutral Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 184ACB9103A; Mon, 13 Mar 2017 00:28:33 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP; Mon, 13 Mar 2017 00:28:33 +0100 (CET) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id EF1AFB91039 for ; Mon, 13 Mar 2017 00:28:30 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .linaro. - helo: .mail-lf0-f47.google. - helo-domain: .google.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -7 Received: from mail-lf0-f47.google.com (mail-lf0-f47.google.com [209.85.215.47]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Mon, 13 Mar 2017 00:28:29 +0100 (CET) Received: by mail-lf0-f47.google.com with SMTP id z15so35462756lfd.1 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=biLdU2haXjy9so5Bxiiz1OKR6VEzuyXZvHGYlLbq7m7oSLWMzzPAffkRgjGQ66QShO nsC2LyD6EhMhgWaoD0TnwuvqOV4FUvcRV74D9WUBMm4XkmI8vzX6yHITqehOGSPmLrJH xxCnw/nC8pQ1JQgq9VMmyHdg1MRYjd3/OvXDo1WtcAHHksBf7yBTYiEJF53hFMylAEqi HiQuL/ZED8SnLoPrFBaoPuewTpgDOHRkECMBX32fNiU8ZQATuK7YDBRnJHkRy/d4SELH CnCDRMDZb4DUyL5kYEKGRVfmpmBSr+d4yz/FJIH4u+UiwTNNWRQN4TeF/PyuzL2rTkl/ lG6Q== X-Gm-Message-State: AMke39nZoRZZMDdVwHQ5QtPeF0bvTIMV0MoWFhiG3OuPWv0zkm0OpoINe2YeEJ/JgFWdt5MZ 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 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 Subject: [OpenWrt-Devel] [PATCH 1/6] gpio: gemini: augment DT bindings X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: openwrt-devel@openwrt.org, devicetree@vger.kernel.org, Paulius Zaleckas , linux-gpio@vger.kernel.org, Janos Laube , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" 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 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>; - };