From patchwork Mon May 10 06:35:55 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jianqun Xu X-Patchwork-Id: 12246991 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3D82AC433ED for ; Mon, 10 May 2021 06:37:12 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 012F261104 for ; Mon, 10 May 2021 06:37:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 012F261104 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=rock-chips.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=Fpyh0/FH841skBDA5c6LwygEGbTtWudaIgmCIwa7tAg=; b=VrVwzSSVvHgg2a3s43QEoB4Z1V mHqDmbILcVOMlhAU7zTL2P9GbnporIvUx7+2v1H6Anyyj0mX36ofVKALJMfvGt+IXB0p9/pqRf9ZK 1mGNKsPJjxNY+UPkGMhiL1zGTUVHXKDDUs4H/bWhtHUIIigznCzdp9b+SovtMUHaW6qaFmbpyNL80 ji7es6IR1z+GXaxaBAHDTqdVmjxs7b1EHLTS01ehXABDebWkBU8LS0gUg2ixrYm3r0R8p82PeEykU 3pUWh9Snpm1+5/FtF5f6JFly9hY0NUIPRH9rJkn1ehzMWLHkbB4L4PISYmswJsvQYT7cMHZ6jMEmt jx9nAobw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lfzXM-00DO2K-9b; Mon, 10 May 2021 06:37:04 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lfzWe-00DNwp-6U for linux-rockchip@desiato.infradead.org; Mon, 10 May 2021 06:36:24 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=GyuOi6BS9kLA3efnLlkGB2kK16BGyX4Q/NGJtYf/0n0=; b=WhpDVrz5uH28LB4qzjJuvwa2F2 vLEUnD41GMAmKyieXctt3d0yBr0B+8Yu0vteQxc2vymAkPIVJvHIj0esNH7jEurM7b2pF33O+P9kb O16tZD0iAFIH/favEWpigUs5bIWpVu7+VoncQkyhLmeWqTOVJN/dwtdLysSar71eY72lQo5Ya/QwI unYcW8xf6JMVQ0NOPmNGIGzbGsIHKyXNVJCBRd9lGMm95CkbXqe6DaYuHqgchIm3lOChPTaU8EtdG VHDK7zAnJXs96ZC95Fl4vk1jZDy8tOGchLEk2SIhxIlzhxQ2/v/5m7Kn5DabSNEABSEDwTVYCy+/Q EIgeNFQQ==; Received: from lucky1.263xmail.com ([211.157.147.133]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lfzWZ-008LKL-8W for linux-rockchip@lists.infradead.org; Mon, 10 May 2021 06:36:16 +0000 Received: from localhost (unknown [192.168.167.235]) by lucky1.263xmail.com (Postfix) with ESMTP id 2513FCD444; Mon, 10 May 2021 14:36:05 +0800 (CST) X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-ADDR-CHECKED4: 1 X-ANTISPAM-LEVEL: 2 X-ABS-CHECKED: 0 Received: from localhost.localdomain (unknown [58.22.7.114]) by smtp.263.net (postfix) whith ESMTP id P2750T140649254856448S1620628564034882_; Mon, 10 May 2021 14:36:05 +0800 (CST) X-IP-DOMAINF: 1 X-UNIQUE-TAG: X-RL-SENDER: jay.xu@rock-chips.com X-SENDER: xjq@rock-chips.com X-LOGIN-NAME: jay.xu@rock-chips.com X-FST-TO: heiko@sntech.de X-RCPT-COUNT: 7 X-SENDER-IP: 58.22.7.114 X-ATTACHMENT-NUM: 0 X-System-Flag: 0 From: Jianqun Xu To: heiko@sntech.de, linus.walleij@linaro.org, robh+dt@kernel.org Cc: linux-gpio@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Jianqun Xu Subject: [PATCH v4 0/7] gpio-rockchip driver Date: Mon, 10 May 2021 14:35:55 +0800 Message-Id: <20210510063602.505829-1-jay.xu@rock-chips.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210509_233615_503351_000A4F50 X-CRM114-Status: UNSURE ( 8.73 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Separate gpio driver from pinctrl driver, and support v2 controller. Jianqun Xu (7): pinctrl/rockchip: separate struct rockchip_pin_bank to a head file pinctrl/pinctrl-rockchip.h: add pinctrl device to gpio bank struct gpio: separate gpio driver from pinctrl-rockchip driver gpio/rockchip: use struct rockchip_gpio_regs for gpio controller gpio/rockchip: support next version gpio controller gpio/rockchip: always enable clock for gpio controller gpio/rockchip: drop irq_gc_lock/irq_gc_unlock for irq set type drivers/gpio/Kconfig | 8 + drivers/gpio/Makefile | 1 + drivers/gpio/gpio-rockchip.c | 758 ++++++++++++++++++++++++ drivers/pinctrl/pinctrl-rockchip.c | 910 +---------------------------- drivers/pinctrl/pinctrl-rockchip.h | 287 +++++++++ 5 files changed, 1073 insertions(+), 891 deletions(-) create mode 100644 drivers/gpio/gpio-rockchip.c create mode 100644 drivers/pinctrl/pinctrl-rockchip.h