Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3879299ybg; Sun, 20 Oct 2019 23:44:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqwNtA/rMb4m0oM6yL7FxdrQYbJj0SpwDtEZ+q14/gG7hrpdYGBoAa6QRjf7aa854Vrm3u+d X-Received: by 2002:a17:906:15da:: with SMTP id l26mr508212ejd.326.1571640296891; Sun, 20 Oct 2019 23:44:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571640296; cv=none; d=google.com; s=arc-20160816; b=NBJGNQEO1EumN43e4xmCDmO7odl5/wEoW+hKuA479unMxQTO8+M0QIth2ITp/P4APh 3c6BuZ566eq2s8CkGnHIv4KCrCMj+Eo4CCAigS4xATRAimkYw+sJKiDCWtl9i/RqCpNV mvPYfcowNzmWo/j9rHdUegCz41O30rCtnneyKcaB6baDvXeMLsvyClUihSznFP1hF5H7 5GFrXfB+OAO2EmltlFGabfUXg26rxqMsZ1LLEdxMZGDnjSiUPswIeDpy532jiOjqO5I9 uSb3oRqjm0FGHOMmyscfehwvG+DDVM1ERaGS6oaA+mENogHD0KDr56I42AVdkHYEhJ3r EcZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=tQTXewI5i0bEVradqq9Sq1stUuXOotbi+yIpe8Hlupg=; b=difoOLzhmAs9Ohyr5sctyRsvjUWiB7RkZlxEzYw4Awoy8aDMEsyTEzLFH2appN7/T0 Ae8sgKhVhZOrL4b5/Xf3eMsOy7b7swYRdCyAJc6wDsm3T3V1o0JFu+Obu0pEYHjlaNd4 YYn3Ub6jX3bbwr7lhk8wJ/0ZpjtAINxw6tc8f5JRURDJKyFc/ggfMKTJnjcBQGlFuVaM t1+y2t0tdjBbgrAybVas8SmCyz0xbUPbUjp4v8I2Si84Nd2Z/YbZvqRnt15kjRq6EU62 Ev7M3Q9wR7TTaIb1aX6EHKvOq2qGU6lqo01VI561Ml5U47rlct5DAOSiqCoAsNlmiAan huuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WFlXnvlg; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x1si4777580eda.105.2019.10.20.23.44.33; Sun, 20 Oct 2019 23:44:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WFlXnvlg; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727110AbfJUGo0 (ORCPT + 99 others); Mon, 21 Oct 2019 02:44:26 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:40159 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726039AbfJUGo0 (ORCPT ); Mon, 21 Oct 2019 02:44:26 -0400 Received: by mail-pg1-f194.google.com with SMTP id 15so1800089pgt.7 for ; Sun, 20 Oct 2019 23:44:25 -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=tQTXewI5i0bEVradqq9Sq1stUuXOotbi+yIpe8Hlupg=; b=WFlXnvlgJ+jcyIw59Uz+owZcPNPQ1HtL5w1mICzF8spJiXkhgncCcOZCpxGWl7W943 OjBInY4itK+9A7OlbOcWgZYN3pftkP3gjDhcp/d34le6xa6Z3GmJFQSPMOHTRgnF7CaP HbfjsuxT7BeTqbE0HtxOuYVowBIhaxEpRi1QIkHZMknzRVVecWrC9jQfIHeV6DMLH8Mk SFLfvm60se9EapSFWYVNxJUphu5DpLjoR7494+LIRi2ORMRsZx3xT936fdBgsB9Ql9bO r9p1P4ezgnp6p4dPpHkpAUaiR1ND7w7BbMNodIjGSivaMJbRXv7WziXcEVW5sEDUS+So zzMQ== 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=tQTXewI5i0bEVradqq9Sq1stUuXOotbi+yIpe8Hlupg=; b=MlsGIlOg2+lLpybe+UiWpdWT17KE0EoGDTMI21e5bYQEFCeDKXQJpP2jtFCDNcQnUk ba+NVsl+aO9iZT5wnCU8g+ergVerGIgypRfH1HCBLSgO0qrLggmtBEpzwJ2W6i/xgT0s N6RUJdTH25qgRSE/YKRLBhMh6drJJWV8ywgbewXkSR+BoXY3d8N2wl+s9opQPo6OXML4 5GL/IRkp/Bilz1x4I8YB8EnvxQSElDTqD8itcPENJ/vdOuK33SVeu4VmAdk0AgdZZbQo i01S2wOMYiwWqiBbPFxAeFOKWzPmy4sP6d5lcWfQzcaewHHrEFQXfnVDUUJsLbmNKAAG zORA== X-Gm-Message-State: APjAAAVujl4K6koekUhtRaRFXRj7yBUuffqAAm4l1GNCsxqxw7zC4iAD LCde+RVYQt95hRnj21ZSLsHD X-Received: by 2002:a62:b504:: with SMTP id y4mr21198203pfe.198.1571640265355; Sun, 20 Oct 2019 23:44:25 -0700 (PDT) Received: from localhost.localdomain ([2405:204:700f:8db6:2442:890f:ac37:8127]) by smtp.gmail.com with ESMTPSA id d4sm13156624pjs.9.2019.10.20.23.44.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Oct 2019 23:44:24 -0700 (PDT) From: Manivannan Sadhasivam To: linus.walleij@linaro.org, bgolaszewski@baylibre.com Cc: linux-arm-kernel@lists.infradead.org, linux-unisoc@lists.infradead.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, orsonzhai@gmail.com, Manivannan Sadhasivam Subject: [PATCH v3 0/4] Add GPIO support for RDA8810PL SoC Date: Mon, 21 Oct 2019 12:14:09 +0530 Message-Id: <20191021064413.19840-1-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, This patchset adds GPIO controller support for RDA Micro RDA8810PL SoC. This SoC has 4 GPIO controllers and each handles 32 GPIOs. Except GPIOC, all controllers are capable of generating edge/level interrupts from first 8 GPIO lines. The pinctrl part for this SoC will be added later. This driver has been validated on 96Boards OrangePi i96 board from Shenzhen Xunlong Software Co.,Limited with libgpiod. Thanks, Mani Changes in v3: As per the review by Linus W: * Switched to GPIO MMIO for simplifying the driver * Elaborated the driver commit message * Some misc changes to the driver Changes in v2: As per the review by Bartosz: * Dropped the not implemented gpio_request/free callbacks. * Used device_* helper to fetch ngpios. Manivannan Sadhasivam (4): dt-bindings: gpio: Add devicetree binding for RDA Micro GPIO controller ARM: dts: Add RDA8810PL GPIO controllers gpio: Add RDA Micro GPIO controller support MAINTAINERS: Add entry for RDA Micro GPIO driver and binding .../devicetree/bindings/gpio/gpio-rda.yaml | 50 +++ MAINTAINERS | 2 + arch/arm/boot/dts/rda8810pl.dtsi | 48 +++ drivers/gpio/Kconfig | 9 + drivers/gpio/Makefile | 1 + drivers/gpio/gpio-rda.c | 294 ++++++++++++++++++ 6 files changed, 404 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/gpio-rda.yaml create mode 100644 drivers/gpio/gpio-rda.c -- 2.17.1