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>; - }; From patchwork Sun Mar 12 23:28:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 95188 Delivered-To: patch@linaro.org Received: by 10.140.82.71 with SMTP id g65csp952632qgd; Sun, 12 Mar 2017 16:28:34 -0700 (PDT) X-Received: by 10.98.79.90 with SMTP id d87mr33717582pfb.126.1489361314578; Sun, 12 Mar 2017 16:28:34 -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.34; Sun, 12 Mar 2017 16:28:34 -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 S935525AbdCLX2e (ORCPT + 4 others); Sun, 12 Mar 2017 19:28:34 -0400 Received: from mail-lf0-f54.google.com ([209.85.215.54]:35810 "EHLO mail-lf0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935523AbdCLX2d (ORCPT ); Sun, 12 Mar 2017 19:28:33 -0400 Received: by mail-lf0-f54.google.com with SMTP id j90so57567284lfk.2 for ; Sun, 12 Mar 2017 16:28:32 -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:in-reply-to:references; bh=8k+h+w0kwRI3A5vveeTpzuvOY437EL4KIqBlGBVQor4=; b=ZZ3V5D4Hy4o73jhe40bZTQYBg2J58sJ8pY7aAX9ceI0OZvnZdnHt3SwxNi6BBxZd7r 8SAZZ1HMq5ye9oOQmvosJsrhZ5m13ufN/9FAa0eF+5hfazENZoVkMnJDHyl3cTA6aCAl YplV7npL4BXR3ILRJ4twZpGGnIPKxlKDRnWoU= 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:in-reply-to :references; bh=8k+h+w0kwRI3A5vveeTpzuvOY437EL4KIqBlGBVQor4=; b=ChRfRRw7hucZNbW5QgGS8JUWF3wiMydXCvyNXnxmDqc1AYKrZbXzOl5li44eQdLDuR EOwSuZ+VVR+Nmv+0I9CTSVdbr38rO7fqz+QGKZraOOlJZb1Fk12u6hmLYGM7SPha7hsk vo8MYVaremmG/fVnRLifHnXIqwV7V7zv8fpDSqONUSJmGKADbrKoZbRIKCv0Y+V+iunS Xx4YZ7Sons6Lhf5YVDcJXuGvnv5ZXTCaLGFuhRWUYLjwrPHi6cPyX0YrxnW6cIgJd7yd ZUnGap/ptr1fy2Q6SqPY0TcDCOg5qwdPyzrvQfQjTvAfPk4Fric4gZ3bUj7AD6Hx0kDI VdSw== X-Gm-Message-State: AMke39kso9Wfz/HUPgRTUoJCnrxxra7Ma6eAUfvLsP6kKEcKBR4+3m3dJoHPEnZn77Z4Fh36 X-Received: by 10.25.234.71 with SMTP id i68mr7485344lfh.25.1489361311754; Sun, 12 Mar 2017 16:28:31 -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.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 12 Mar 2017 16:28:30 -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 Subject: [PATCH 2/6] ARM: dts: augment Gemini GPIO nodes Date: Mon, 13 Mar 2017 00:28:14 +0100 Message-Id: <20170312232818.26304-2-linus.walleij@linaro.org> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170312232818.26304-1-linus.walleij@linaro.org> References: <20170312232818.26304-1-linus.walleij@linaro.org> Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org The binding should state "cortina,gemini-gpio", "faraday,ftgpio010" stating the full name of the IP part. Cc: Jonas Jensen Signed-off-by: Linus Walleij --- arch/arm/boot/dts/gemini.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- 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 diff --git a/arch/arm/boot/dts/gemini.dtsi b/arch/arm/boot/dts/gemini.dtsi index 67c0a63d5527..b8d011bdcc76 100644 --- a/arch/arm/boot/dts/gemini.dtsi +++ b/arch/arm/boot/dts/gemini.dtsi @@ -82,7 +82,7 @@ }; gpio0: gpio@4d000000 { - compatible = "cortina,gemini-gpio"; + compatible = "cortina,gemini-gpio", "faraday,ftgpio010"; reg = <0x4d000000 0x100>; interrupts = <22 IRQ_TYPE_LEVEL_HIGH>; gpio-controller; @@ -92,7 +92,7 @@ }; gpio1: gpio@4e000000 { - compatible = "cortina,gemini-gpio"; + compatible = "cortina,gemini-gpio", "faraday,ftgpio010"; reg = <0x4e000000 0x100>; interrupts = <23 IRQ_TYPE_LEVEL_HIGH>; gpio-controller; @@ -102,7 +102,7 @@ }; gpio2: gpio@4f000000 { - compatible = "cortina,gemini-gpio"; + compatible = "cortina,gemini-gpio", "faraday,ftgpio010"; reg = <0x4f000000 0x100>; interrupts = <24 IRQ_TYPE_LEVEL_HIGH>; gpio-controller; From patchwork Sun Mar 12 23:28:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 95189 Delivered-To: patch@linaro.org Received: by 10.140.82.71 with SMTP id g65csp952641qgd; Sun, 12 Mar 2017 16:28:37 -0700 (PDT) X-Received: by 10.98.2.21 with SMTP id 21mr33951066pfc.93.1489361317407; Sun, 12 Mar 2017 16:28:37 -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.37; Sun, 12 Mar 2017 16:28:37 -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 S935515AbdCLX2h (ORCPT + 4 others); Sun, 12 Mar 2017 19:28:37 -0400 Received: from mail-lf0-f53.google.com ([209.85.215.53]:32793 "EHLO mail-lf0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935487AbdCLX2g (ORCPT ); Sun, 12 Mar 2017 19:28:36 -0400 Received: by mail-lf0-f53.google.com with SMTP id a6so57550564lfa.0 for ; Sun, 12 Mar 2017 16:28:35 -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:in-reply-to:references; bh=yqDyo36pHwux8N9UV7TPHaqrC5pnuBOQbPSgQcG228w=; b=h99W7ms8Nznui7Bfy6mor0iDnSoLAqocIYL4OLfW2lMRe4Xy4f8bmTl0/S7k/CZZXH qSGK0vVna+Ne9HO1AbCvNEEnn/8LlE2HsjqZbWcE9RQ0HjgvC/yyu6rxuyJQNfB4p3b+ 4geZjbqlST0fexbHpd03NBaFxwi96jzlIspoY= 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:in-reply-to :references; bh=yqDyo36pHwux8N9UV7TPHaqrC5pnuBOQbPSgQcG228w=; b=Se1qBK1iNyLcC5z1ZiIe5BuxSGFWRCX9Y4OawO+yoXdz3MmVEM5z1sO7iHmNfToOFj klK60+7mNsih5ZPd2iIS6TvmFra1yRn1+c892KkLF373Udkpr2FEkbMdBJaHzZFXqZFO df3/1eicwXx/VgSmhR2JzF9YEEuDXeislucwrWpPH2Nfg/R08EK2JW6mqJ5WM8N/oISA gG4w0NpFhQcwzQ0pxUhYSPwXeG8g2HjsqAtqQwV2AIM5HcmN4dxjAU9oaz7uMK6LM0fc YEZfsdYunjamxq/8bvS3fITEA8ahWC6hOy7iA7zse0I+i88wPwU7pqGQvs19mvTv2aOX WASg== X-Gm-Message-State: AFeK/H2BRi8ZtocTJPvITgzqJaqDYJGRMlpC5K6A/8yTOKDEmeGafIHspvn8dOVmj3RZPAXk X-Received: by 10.46.32.23 with SMTP id g23mr3207413ljg.0.1489361314643; Sun, 12 Mar 2017 16:28:34 -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.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 12 Mar 2017 16:28:33 -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 Subject: [PATCH 3/6] ARM: dts: augment Moxa ART GPIO node Date: Mon, 13 Mar 2017 00:28:15 +0100 Message-Id: <20170312232818.26304-3-linus.walleij@linaro.org> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170312232818.26304-1-linus.walleij@linaro.org> References: <20170312232818.26304-1-linus.walleij@linaro.org> Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org The Moxa ART GPIO is a Faraday FTGPIO010. Augment the DTS node to indicate both compatible values for the SoC and the IP part. Also increase the register range to 0x100, it has at least 0x48 bytes of registers, and a few extra will not hurt. Cc: Jonas Jensen Signed-off-by: Linus Walleij --- arch/arm/boot/dts/moxart.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 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 diff --git a/arch/arm/boot/dts/moxart.dtsi b/arch/arm/boot/dts/moxart.dtsi index 1fd27ed65a01..10a8184e0ce9 100644 --- a/arch/arm/boot/dts/moxart.dtsi +++ b/arch/arm/boot/dts/moxart.dtsi @@ -66,8 +66,8 @@ gpio: gpio@98700000 { gpio-controller; #gpio-cells = <2>; - compatible = "moxa,moxart-gpio"; - reg = <0x98700000 0xC>; + compatible = "moxa,moxart-gpio", "faraday,ftgpio010"; + reg = <0x98700000 0x100>; }; rtc: rtc { From patchwork Sun Mar 12 23:28:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 95190 Delivered-To: patch@linaro.org Received: by 10.140.82.71 with SMTP id g65csp952650qgd; Sun, 12 Mar 2017 16:28:40 -0700 (PDT) X-Received: by 10.99.96.9 with SMTP id u9mr32372464pgb.159.1489361320500; Sun, 12 Mar 2017 16:28:40 -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.40; Sun, 12 Mar 2017 16:28:40 -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 S935518AbdCLX2k (ORCPT + 4 others); Sun, 12 Mar 2017 19:28:40 -0400 Received: from mail-lf0-f47.google.com ([209.85.215.47]:35820 "EHLO mail-lf0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935487AbdCLX2j (ORCPT ); Sun, 12 Mar 2017 19:28:39 -0400 Received: by mail-lf0-f47.google.com with SMTP id j90so57567634lfk.2 for ; Sun, 12 Mar 2017 16:28:38 -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:in-reply-to:references; bh=vUaqyTShb35fNF+zyQFHaHUv4SgR7ttKN7HduJQ2XC4=; b=MSj77DkjeN5K1KHb6GMsa/DZ2XTM/vQ+aUF/q84QCTAcb+DDSbOi2Oy5R/W9BO6DRe RaMSWOvkGnet8KrcHMAwlwrhYpsAsPjarw6vlt+kjW0WiwPLQHELzSkZyYLe15ij5jIn Jfh5ZCGQY1vX0oRmgn4LZGhILZcOxpPrmzMsM= 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:in-reply-to :references; bh=vUaqyTShb35fNF+zyQFHaHUv4SgR7ttKN7HduJQ2XC4=; b=qcY0IijZMiyMwFR3TV/2x6r5TBPR1NlwoXZTsqK3IQM3uYh0i+n2QIZbQiR0T0t03t mnoObpXqToKqGgAZgCqu6eRY8mZYcq/ApTCnOmHcfPwIlgCU5IUvJtasAgXD9gmoi0QU 0fIrdAUGeYrgLpGn7yakLZjvoffS7qAhPxfeCllyFi86DmIuTbADNsQaKIzf2KbNCbKP YpHa/0HW3TFlXlbcP6CXnYMog+SxJteC5H0A7I0/P4V9fubQLw3dZe18BqV73bsFyMpy njHCwTbmc8cZuU0egpmVXQiCrzqvAg57vXhEezxal8XhIoNlgQw9Lm53LcEDsgdjT/CN QyVA== X-Gm-Message-State: AMke39mVOkFrke7Wa8WvdjRfTDGgVVYIK3XSWQwkfPMJrDVkuxkK6WYlQoD5C093iyD7GcBb X-Received: by 10.46.14.1 with SMTP id 1mr9345063ljo.60.1489361317377; Sun, 12 Mar 2017 16:28:37 -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.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 12 Mar 2017 16:28:36 -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 Subject: [PATCH 4/6] gpio: gemini: rename to match Faraday IP Date: Mon, 13 Mar 2017 00:28:16 +0100 Message-Id: <20170312232818.26304-4-linus.walleij@linaro.org> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170312232818.26304-1-linus.walleij@linaro.org> References: <20170312232818.26304-1-linus.walleij@linaro.org> Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org The Gemini driver is actually a driver for the Faraday Technology FTGPIO010 IP block. We rename the driver and the Kconfig symbol and put in a a new compatible string for the Moxa ART SoC that is also using this IP block. Cc: Jonas Jensen Signed-off-by: Linus Walleij --- drivers/gpio/Kconfig | 7 ++- drivers/gpio/Makefile | 2 +- drivers/gpio/{gpio-gemini.c => gpio-ftgpio010.c} | 72 +++++++++++++----------- 3 files changed, 44 insertions(+), 37 deletions(-) rename drivers/gpio/{gpio-gemini.c => gpio-ftgpio010.c} (73%) -- 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 Tested-by: Jonas Jensen diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig index 05043071fc98..82ba825c224a 100644 --- a/drivers/gpio/Kconfig +++ b/drivers/gpio/Kconfig @@ -204,14 +204,15 @@ config GPIO_GE_FPGA and write pin state) for GPIO implemented in a number of GE single board computers. -config GPIO_GEMINI - bool "Gemini GPIO" +config GPIO_FTGPIO010 + bool "Faraday FTGPIO010 GPIO" depends on ARCH_GEMINI depends on OF_GPIO select GPIO_GENERIC select GPIOLIB_IRQCHIP help - Support for common GPIOs found in Cortina systems Gemini platforms. + Support for common GPIOs from the Faraday FTGPIO010 IP core, found in + Cortina systems Gemini platforms, Moxa ART and others. config GPIO_GENERIC_PLATFORM tristate "Generic memory-mapped GPIO controller support (MMIO platform device)" diff --git a/drivers/gpio/Makefile b/drivers/gpio/Makefile index becb96c724fe..4b904fec8273 100644 --- a/drivers/gpio/Makefile +++ b/drivers/gpio/Makefile @@ -48,8 +48,8 @@ obj-$(CONFIG_GPIO_EP93XX) += gpio-ep93xx.o obj-$(CONFIG_GPIO_ETRAXFS) += gpio-etraxfs.o obj-$(CONFIG_GPIO_EXAR) += gpio-exar.o obj-$(CONFIG_GPIO_F7188X) += gpio-f7188x.o +obj-$(CONFIG_GPIO_FTGPIO010) += gpio-ftgpio010.o obj-$(CONFIG_GPIO_GE_FPGA) += gpio-ge.o -obj-$(CONFIG_GPIO_GEMINI) += gpio-gemini.o obj-$(CONFIG_GPIO_GPIO_MM) += gpio-gpio-mm.o obj-$(CONFIG_GPIO_GRGPIO) += gpio-grgpio.o obj-$(CONFIG_HTC_EGPIO) += gpio-htc-egpio.o diff --git a/drivers/gpio/gpio-gemini.c b/drivers/gpio/gpio-ftgpio010.c similarity index 73% rename from drivers/gpio/gpio-gemini.c rename to drivers/gpio/gpio-ftgpio010.c index 962485163b7f..e9386f8b67f5 100644 --- a/drivers/gpio/gpio-gemini.c +++ b/drivers/gpio/gpio-ftgpio010.c @@ -1,5 +1,5 @@ /* - * Gemini gpiochip and interrupt routines + * Faraday Technolog FTGPIO010 gpiochip and interrupt routines * Copyright (C) 2017 Linus Walleij * * Based on arch/arm/mach-gemini/gpio.c: @@ -35,28 +35,28 @@ #define GPIO_DEBOUNCE_PRESCALE 0x44 /** - * struct gemini_gpio - Gemini GPIO state container + * struct ftgpio_gpio - Gemini GPIO state container * @dev: containing device for this instance * @gc: gpiochip for this instance */ -struct gemini_gpio { +struct ftgpio_gpio { struct device *dev; struct gpio_chip gc; void __iomem *base; }; -static void gemini_gpio_ack_irq(struct irq_data *d) +static void ftgpio_gpio_ack_irq(struct irq_data *d) { struct gpio_chip *gc = irq_data_get_irq_chip_data(d); - struct gemini_gpio *g = gpiochip_get_data(gc); + struct ftgpio_gpio *g = gpiochip_get_data(gc); writel(BIT(irqd_to_hwirq(d)), g->base + GPIO_INT_CLR); } -static void gemini_gpio_mask_irq(struct irq_data *d) +static void ftgpio_gpio_mask_irq(struct irq_data *d) { struct gpio_chip *gc = irq_data_get_irq_chip_data(d); - struct gemini_gpio *g = gpiochip_get_data(gc); + struct ftgpio_gpio *g = gpiochip_get_data(gc); u32 val; val = readl(g->base + GPIO_INT_EN); @@ -64,10 +64,10 @@ static void gemini_gpio_mask_irq(struct irq_data *d) writel(val, g->base + GPIO_INT_EN); } -static void gemini_gpio_unmask_irq(struct irq_data *d) +static void ftgpio_gpio_unmask_irq(struct irq_data *d) { struct gpio_chip *gc = irq_data_get_irq_chip_data(d); - struct gemini_gpio *g = gpiochip_get_data(gc); + struct ftgpio_gpio *g = gpiochip_get_data(gc); u32 val; val = readl(g->base + GPIO_INT_EN); @@ -75,10 +75,10 @@ static void gemini_gpio_unmask_irq(struct irq_data *d) writel(val, g->base + GPIO_INT_EN); } -static int gemini_gpio_set_irq_type(struct irq_data *d, unsigned int type) +static int ftgpio_gpio_set_irq_type(struct irq_data *d, unsigned int type) { struct gpio_chip *gc = irq_data_get_irq_chip_data(d); - struct gemini_gpio *g = gpiochip_get_data(gc); + struct ftgpio_gpio *g = gpiochip_get_data(gc); u32 mask = BIT(irqd_to_hwirq(d)); u32 reg_both, reg_level, reg_type; @@ -123,23 +123,23 @@ static int gemini_gpio_set_irq_type(struct irq_data *d, unsigned int type) writel(reg_level, g->base + GPIO_INT_LEVEL); writel(reg_both, g->base + GPIO_INT_BOTH_EDGE); - gemini_gpio_ack_irq(d); + ftgpio_gpio_ack_irq(d); return 0; } -static struct irq_chip gemini_gpio_irqchip = { - .name = "GPIO", - .irq_ack = gemini_gpio_ack_irq, - .irq_mask = gemini_gpio_mask_irq, - .irq_unmask = gemini_gpio_unmask_irq, - .irq_set_type = gemini_gpio_set_irq_type, +static struct irq_chip ftgpio_gpio_irqchip = { + .name = "FTGPIO010", + .irq_ack = ftgpio_gpio_ack_irq, + .irq_mask = ftgpio_gpio_mask_irq, + .irq_unmask = ftgpio_gpio_unmask_irq, + .irq_set_type = ftgpio_gpio_set_irq_type, }; -static void gemini_gpio_irq_handler(struct irq_desc *desc) +static void ftgpio_gpio_irq_handler(struct irq_desc *desc) { struct gpio_chip *gc = irq_desc_get_handler_data(desc); - struct gemini_gpio *g = gpiochip_get_data(gc); + struct ftgpio_gpio *g = gpiochip_get_data(gc); struct irq_chip *irqchip = irq_desc_get_chip(desc); int offset; unsigned long stat; @@ -155,11 +155,11 @@ static void gemini_gpio_irq_handler(struct irq_desc *desc) chained_irq_exit(irqchip, desc); } -static int gemini_gpio_probe(struct platform_device *pdev) +static int ftgpio_gpio_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; struct resource *res; - struct gemini_gpio *g; + struct ftgpio_gpio *g; int irq; int ret; @@ -189,7 +189,7 @@ static int gemini_gpio_probe(struct platform_device *pdev) dev_err(dev, "unable to init generic GPIO\n"); return ret; } - g->gc.label = "Gemini"; + g->gc.label = "FTGPIO010"; g->gc.base = -1; g->gc.parent = dev; g->gc.owner = THIS_MODULE; @@ -204,33 +204,39 @@ static int gemini_gpio_probe(struct platform_device *pdev) writel(0x0, g->base + GPIO_INT_MASK); writel(~0x0, g->base + GPIO_INT_CLR); - ret = gpiochip_irqchip_add(&g->gc, &gemini_gpio_irqchip, + ret = gpiochip_irqchip_add(&g->gc, &ftgpio_gpio_irqchip, 0, handle_bad_irq, IRQ_TYPE_NONE); if (ret) { dev_info(dev, "could not add irqchip\n"); return ret; } - gpiochip_set_chained_irqchip(&g->gc, &gemini_gpio_irqchip, - irq, gemini_gpio_irq_handler); + gpiochip_set_chained_irqchip(&g->gc, &ftgpio_gpio_irqchip, + irq, ftgpio_gpio_irq_handler); - dev_info(dev, "Gemini GPIO @%p registered\n", g->base); + dev_info(dev, "FTGPIO010 @%p registered\n", g->base); return 0; } -static const struct of_device_id gemini_gpio_of_match[] = { +static const struct of_device_id ftgpio_gpio_of_match[] = { { .compatible = "cortina,gemini-gpio", }, + { + .compatible = "moxa,moxart-gpio", + }, + { + .compatible = "faraday,ftgpio010", + }, {}, }; -static struct platform_driver gemini_gpio_driver = { +static struct platform_driver ftgpio_gpio_driver = { .driver = { - .name = "gemini-gpio", - .of_match_table = of_match_ptr(gemini_gpio_of_match), + .name = "ftgpio010-gpio", + .of_match_table = of_match_ptr(ftgpio_gpio_of_match), }, - .probe = gemini_gpio_probe, + .probe = ftgpio_gpio_probe, }; -builtin_platform_driver(gemini_gpio_driver); +builtin_platform_driver(ftgpio_gpio_driver); From patchwork Sun Mar 12 23:28:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 95191 Delivered-To: patch@linaro.org Received: by 10.140.82.71 with SMTP id g65csp952659qgd; Sun, 12 Mar 2017 16:28:43 -0700 (PDT) X-Received: by 10.84.232.1 with SMTP id h1mr42880151plk.95.1489361323135; Sun, 12 Mar 2017 16:28:43 -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.42; Sun, 12 Mar 2017 16:28:43 -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 S935487AbdCLX2n (ORCPT + 4 others); Sun, 12 Mar 2017 19:28:43 -0400 Received: from mail-lf0-f53.google.com ([209.85.215.53]:35823 "EHLO mail-lf0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933311AbdCLX2m (ORCPT ); Sun, 12 Mar 2017 19:28:42 -0400 Received: by mail-lf0-f53.google.com with SMTP id j90so57567771lfk.2 for ; Sun, 12 Mar 2017 16:28:41 -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:in-reply-to:references; bh=LUSn2Yh76kvsvmoNvXzkcH2xWi+pPjVFi4a29WPGS7A=; b=La2kDevDXaBlapFX4ywpey3d4WeLmgwz3B1XyckqL3+QbglGzRnRXBDD/MZX3lOQKz bsCRTpmtzpObceVJtObA0v4cHZRiKJGaPZDQbU3yPbUakKJ42GLCC6WQOvmZT1pJXWta SqlKeMED016Asl5g+kaCGurAMa9wxmOGQptS4= 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:in-reply-to :references; bh=LUSn2Yh76kvsvmoNvXzkcH2xWi+pPjVFi4a29WPGS7A=; b=KOf631qXTogtCZkEqPqbusX+MfTMFUgWAg8ZnHP2c+ZQz/y2baNXvB3Ku7eHOA7dL1 w0QJqefRokCIreX0qbo0A17ydJpnSkJycvXUWgtmO4r5PKiEPl7T8bPLjyFLKv1pak0u RzYeSGM1wZbvQilgxYQ5UIoFr4gUNlPdg89/pP/HRYd/isa1kfjWafS8oZEgRozFn3+M flhYzIDbnrJ5wwA5q58y2hszSlTE0zxx+CHsHizMH0fmbf7AyGNzSSY7bQ/i/R/D/EKA PUc55ju02xRhfFOAcIqwSGsZccRUSNeQN3I2Jb0i94HL5eMkWF91pm1WE9WNiblRQcFL gtaw== X-Gm-Message-State: AMke39nWiV2arHwRvGG4Pbk5SJgmjv5V3teyIS48T6OXcSjN0f7RowFodwFlmxlZkwoPN42L X-Received: by 10.25.29.204 with SMTP id d195mr7401739lfd.173.1489361320136; Sun, 12 Mar 2017 16:28:40 -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.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 12 Mar 2017 16:28:38 -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 Subject: [PATCH 5/6] gpio: moxart: Switch to using the FTGPIO010 driver Date: Mon, 13 Mar 2017 00:28:17 +0100 Message-Id: <20170312232818.26304-5-linus.walleij@linaro.org> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170312232818.26304-1-linus.walleij@linaro.org> References: <20170312232818.26304-1-linus.walleij@linaro.org> Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org This just deletes the Moxa ART driver and replaces it with the more versatile Faraday FTGPIO010 driver. Make this default on for ARCH_GEMINI and ARCH_MOXART so we do not get Kconfig glitches. Cc: Jonas Jensen Signed-off-by: Linus Walleij --- drivers/gpio/Kconfig | 10 +----- drivers/gpio/Makefile | 1 - drivers/gpio/gpio-moxart.c | 84 ---------------------------------------------- 3 files changed, 1 insertion(+), 94 deletions(-) delete mode 100644 drivers/gpio/gpio-moxart.c -- 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 diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig index 82ba825c224a..36298ddca3d6 100644 --- a/drivers/gpio/Kconfig +++ b/drivers/gpio/Kconfig @@ -206,10 +206,10 @@ config GPIO_GE_FPGA config GPIO_FTGPIO010 bool "Faraday FTGPIO010 GPIO" - depends on ARCH_GEMINI depends on OF_GPIO select GPIO_GENERIC select GPIOLIB_IRQCHIP + default (ARCH_GEMINI || ARCH_MOXART) help Support for common GPIOs from the Faraday FTGPIO010 IP core, found in Cortina systems Gemini platforms, Moxa ART and others. @@ -309,14 +309,6 @@ config GPIO_MOCKUP tools/testing/selftests/gpio/gpio-mockup.sh. Reference the usage in it. -config GPIO_MOXART - bool "MOXART GPIO support" - depends on ARCH_MOXART || COMPILE_TEST - select GPIO_GENERIC - help - Select this option to enable GPIO driver for - MOXA ART SoC devices. - config GPIO_MPC5200 def_bool y depends on PPC_MPC52xx diff --git a/drivers/gpio/Makefile b/drivers/gpio/Makefile index 4b904fec8273..bd995dc2a84a 100644 --- a/drivers/gpio/Makefile +++ b/drivers/gpio/Makefile @@ -80,7 +80,6 @@ obj-$(CONFIG_GPIO_MCP23S08) += gpio-mcp23s08.o obj-$(CONFIG_GPIO_ML_IOH) += gpio-ml-ioh.o obj-$(CONFIG_GPIO_MM_LANTIQ) += gpio-mm-lantiq.o obj-$(CONFIG_GPIO_MOCKUP) += gpio-mockup.o -obj-$(CONFIG_GPIO_MOXART) += gpio-moxart.o obj-$(CONFIG_GPIO_MPC5200) += gpio-mpc5200.o obj-$(CONFIG_GPIO_MPC8XXX) += gpio-mpc8xxx.o obj-$(CONFIG_GPIO_MSIC) += gpio-msic.o diff --git a/drivers/gpio/gpio-moxart.c b/drivers/gpio/gpio-moxart.c deleted file mode 100644 index d58d38906ba6..000000000000 --- a/drivers/gpio/gpio-moxart.c +++ /dev/null @@ -1,84 +0,0 @@ -/* - * MOXA ART SoCs GPIO driver. - * - * Copyright (C) 2013 Jonas Jensen - * - * Jonas Jensen - * - * This file is licensed under the terms of the GNU General Public - * License version 2. This program is licensed "as is" without any - * warranty of any kind, whether express or implied. - */ - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#define GPIO_DATA_OUT 0x00 -#define GPIO_DATA_IN 0x04 -#define GPIO_PIN_DIRECTION 0x08 - -static int moxart_gpio_probe(struct platform_device *pdev) -{ - struct device *dev = &pdev->dev; - struct resource *res; - struct gpio_chip *gc; - void __iomem *base; - int ret; - - gc = devm_kzalloc(dev, sizeof(*gc), GFP_KERNEL); - if (!gc) - return -ENOMEM; - - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - base = devm_ioremap_resource(dev, res); - if (IS_ERR(base)) - return PTR_ERR(base); - - ret = bgpio_init(gc, dev, 4, base + GPIO_DATA_IN, - base + GPIO_DATA_OUT, NULL, - base + GPIO_PIN_DIRECTION, NULL, - BGPIOF_READ_OUTPUT_REG_SET); - if (ret) { - dev_err(&pdev->dev, "bgpio_init failed\n"); - return ret; - } - - gc->label = "moxart-gpio"; - gc->request = gpiochip_generic_request; - gc->free = gpiochip_generic_free; - gc->base = 0; - gc->owner = THIS_MODULE; - - ret = devm_gpiochip_add_data(dev, gc, NULL); - if (ret) { - dev_err(dev, "%s: gpiochip_add failed\n", - dev->of_node->full_name); - return ret; - } - - return ret; -} - -static const struct of_device_id moxart_gpio_match[] = { - { .compatible = "moxa,moxart-gpio" }, - { } -}; - -static struct platform_driver moxart_gpio_driver = { - .driver = { - .name = "moxart-gpio", - .of_match_table = moxart_gpio_match, - }, - .probe = moxart_gpio_probe, -}; -builtin_platform_driver(moxart_gpio_driver); From patchwork Sun Mar 12 23:28:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 95192 Delivered-To: patch@linaro.org Received: by 10.140.82.71 with SMTP id g65csp952670qgd; Sun, 12 Mar 2017 16:28:45 -0700 (PDT) X-Received: by 10.99.126.76 with SMTP id o12mr33091026pgn.1.1489361325831; Sun, 12 Mar 2017 16:28:45 -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.45; Sun, 12 Mar 2017 16:28:45 -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 S935482AbdCLX2p (ORCPT + 4 others); Sun, 12 Mar 2017 19:28:45 -0400 Received: from mail-lf0-f50.google.com ([209.85.215.50]:35827 "EHLO mail-lf0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933311AbdCLX2p (ORCPT ); Sun, 12 Mar 2017 19:28:45 -0400 Received: by mail-lf0-f50.google.com with SMTP id j90so57567940lfk.2 for ; Sun, 12 Mar 2017 16:28:43 -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:in-reply-to:references; bh=VuNhIOmrVBRAhK+bM+miHAenqs1GCEzb6KRkEk/s+7A=; b=ZznhPo36N18T7T/HAMLsKp4TiSLPtRtDOX8oErBKOFYUDP+Ee0vba7g791rpYgGGH7 mIYxFw7XINejj4T2YnyoODwleN0IjYT+0+TsadSDdX7cKpjUFZV5B21XJb+gYoeAiynt 9tUiMf/K3hDTSJxDLPmvAa/ollSzeFPi7+Dz0= 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:in-reply-to :references; bh=VuNhIOmrVBRAhK+bM+miHAenqs1GCEzb6KRkEk/s+7A=; b=DMiPYPyz+QoMo1xco7p0TYUPwBKbiz7jXFh/dPGXthZ0ux0RqY9weUiMb/vTd8Yw8q 1y9fH1y5X88nz6I2cWX+o9HS41vR5lWhX7oKIzuwJ1enQaPOIqqUQ+kuFX1+1aVd+pgR JVTn0vDKhO5/kPnLtARkIaAyNOBuvefxxK6Y2xTf806MJh113iGat4epe6/kcOd7wIsS B6BEoLcaHIFQ5WvOSlzk82sb1Hsp4AwTJhZt56NBUMEjgLLPXfj8dVAmcMHpbYSEYDJx SHEKSdMio6SOnp1ZViwiyToQFHCNiB7G0bHUk7dFVZDey76hLppKh6xE9IHkT+reTPp9 yvVg== X-Gm-Message-State: AMke39keI1sNL9PShMt3PFGyBCw0FOZGiSeBq1iGenNxHVk5xOf9p/NdseT3wrSuEbmMipDN X-Received: by 10.25.193.70 with SMTP id r67mr7685190lff.66.1489361323133; Sun, 12 Mar 2017 16:28:43 -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.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 12 Mar 2017 16:28:41 -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 Subject: [PATCH 6/6] ARM: gemini: select the right GPIO block Date: Mon, 13 Mar 2017 00:28:18 +0100 Message-Id: <20170312232818.26304-6-linus.walleij@linaro.org> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170312232818.26304-1-linus.walleij@linaro.org> References: <20170312232818.26304-1-linus.walleij@linaro.org> Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org We want to select the GPIO_FTGPIO010 symbol for the generic Faraday FTGPIO010 driver, not the old driver. Cc: Jonas Jensen Signed-off-by: Linus Walleij --- arch/arm/mach-gemini/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 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 diff --git a/arch/arm/mach-gemini/Kconfig b/arch/arm/mach-gemini/Kconfig index 2dd8bc720089..eaae82637da3 100644 --- a/arch/arm/mach-gemini/Kconfig +++ b/arch/arm/mach-gemini/Kconfig @@ -4,7 +4,7 @@ menuconfig ARCH_GEMINI select ARM_APPENDED_DTB # Old Redboot bootloaders deployed select FARADAY_FTINTC010 select FTTMR010_TIMER - select GPIO_GEMINI + select GPIO_FTGPIO010 select GPIOLIB select POWER_RESET select POWER_RESET_GEMINI_POWEROFF