From patchwork Fri Jun 29 12:49:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergio Paracuellos X-Patchwork-Id: 936858 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-gpio-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="D0/mwpwJ"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 41HGgx3jh9z9ry1 for ; Fri, 29 Jun 2018 22:49:49 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934871AbeF2Mts (ORCPT ); Fri, 29 Jun 2018 08:49:48 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:54038 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934369AbeF2Mtr (ORCPT ); Fri, 29 Jun 2018 08:49:47 -0400 Received: by mail-wm0-f68.google.com with SMTP id b188-v6so2089389wme.3; Fri, 29 Jun 2018 05:49:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=mcLlIZVUU8FuiMLJC4/XnX1p1QhX4JyJDUDwm7JX6j4=; b=D0/mwpwJbTO+WjZcSuFzWBYr1WfQyy0w8FMvesQCJ5jvCyXPVE95dwCOXlxbWmX0uH Yjol0Rv7687c/BTAHuEFSOkRoB1tnGK+AkTLUUYbAJZBoAb/ISuAbBpvD29s5fJ7LR3R 1pOGS6iT2zM/l9AqynuZ1SbcV1s0JVPBxZZXg07gv4deFPmwTvs7was/hjVHmRMDRhpC V36nOuVb4sQcFf31DYAyZbA0ElGNgcVRnFVgOMxlpDZwiRPe3YA6cUDGzgOxcA6+yKz9 rhGtE+tqGwygZDvA6u6rig9xPtvg21udgZ+u61CzfuXFb3/XMQN8rz9Y2tUDxj8Cvgmy Ro7g== 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=mcLlIZVUU8FuiMLJC4/XnX1p1QhX4JyJDUDwm7JX6j4=; b=asIvjKHQgwPR5gpsKbgjrM8ayM1970uo1XCj5qpBiZ1AQgpV0EjlAi5vCwl7Lzi/q4 Ue5zkdL0zLRmMomLS/Hb0dT5PlqkYr5M8HKoJbZqMqJ3fFt7tQylLA+twg440fyD55fS slpigcgVpHaM+IqflDVgv6UTPDGg6F34CfuqM2uq2VSiAzWJu6X5z5zbson8DtdtOxWp w9bOfNTyfqBkgUZpaQyCN5QIrCu/XG3xdiAGBLq2p0OjpbIdG/fb75cKa+7GPqkbLGF+ eRQGZqUnmGffWhSrIHpaGz0bLtcqsylSfNk2ljRkiyGi8hCrTTjtxIbMBnynPoFOEaiW Ldow== X-Gm-Message-State: APt69E13cElze4R1DOzHG2n/CHwTQTfC3wznv1v2ujTMgpui5dvP/+tH 0nJtq2iW15Yh3eomJsedWwen7w== X-Google-Smtp-Source: AAOMgpelX0lTZC6MtLoXFkKW1tebUoaJNNZxDzhSeRdCclJ9LGo595Kwx75n/kb689Hd7Qp8w7JDPA== X-Received: by 2002:a1c:a103:: with SMTP id k3-v6mr1738715wme.161.1530276586691; Fri, 29 Jun 2018 05:49:46 -0700 (PDT) Received: from localhost.localdomain (173.red-83-42-150.dynamicip.rima-tde.net. [83.42.150.173]) by smtp.gmail.com with ESMTPSA id s184-v6sm1587999wmf.5.2018.06.29.05.49.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 29 Jun 2018 05:49:46 -0700 (PDT) From: Sergio Paracuellos To: linus.walleij@linaro.org Cc: robh+dt@kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, gregkh@linuxfoundation.org, neil@brown.name, driverdev-devel@linuxdriverproject.org Subject: [PATCH v3 0/2] gpio: mediatek: driver for gpio chip in MT7621 SoC Date: Fri, 29 Jun 2018 14:49:42 +0200 Message-Id: <1530276584-29296-1-git-send-email-sergio.paracuellos@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org This patch series add support for gpio driver in mediatek MT7621 SoC. This driver has been in staging for a while and after some cleanups cycles we consider to give it a new try to get mainlined. Previous comments from Linus Walleij are here: http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/2018-June/121742.html Comments from Rob Herring are here: http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/2018-June/121974.html Changes in v3: - Fix added Makefile entry which was wrong. Changes in v2 are the ones pointed out in previous mails: - use bgpio_init - avoid custom irq_domain using IRQF_SHARED and gpiochip_set_chained_irqchip from GPIOLIB_IRQCHIP - use only one node in the device tree making it simple - Implement high and low level irqs - avoid include gpio.h - use builtin_platform_driver - add COMPILE_TEST - cleanups after this changes Hope this helps and thanks in advance. Best regards, Sergio Paracuellos Sergio Paracuellos (2): gpio: mediatek: add driver for MT7621 dt-bindings: document gpio-mt7621 bindings .../bindings/gpio/mediatek,mt7621-gpio.txt | 35 +++ drivers/gpio/Kconfig | 8 + drivers/gpio/Makefile | 1 + drivers/gpio/gpio-mt7621.c | 320 +++++++++++++++++++++ 4 files changed, 364 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/mediatek,mt7621-gpio.txt create mode 100644 drivers/gpio/gpio-mt7621.c