From patchwork Tue Aug 7 02:06:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yixun Lan X-Patchwork-Id: 10558149 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2BAE41390 for ; Tue, 7 Aug 2018 02:08:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0F388298D0 for ; Tue, 7 Aug 2018 02:08:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 024AD2990C; Tue, 7 Aug 2018 02:08:06 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A2EAF298D0 for ; Tue, 7 Aug 2018 02:08:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject: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=0Y7LP1Qy1ehwXfjvwUOPVAq1faslzbzYiMJ4lYRyWKE=; b=aPNEycpsk4BRDV ydlmfAz2yCiq/qfNXQA9fJykTcq7+FHqvE+JCA7AhnEMyDUp6ra6Vjsofq4DCJfTsmlWhKY3onLSB OP2+lbieye5/Lu0thwzITurRpUUq1OoKseTj5u9mImGCXfiVcWJQo4x/vgOjEpyPo7C3gUvXIBO4Y 19R1Zc5sPmojVmrm74Utz3KaCtlbKQ+EYyVQQx8Av0Abc4vcZnIB00rl9b2GxaDnHlEAOHgtUL3aa x4BVcIztZKPumr3961XjqUCahWXI5RQVP+GtAdo0WvG20JRRURKxD1UTbnaMRz2ZnYpKp261FAUno ecD1Grn1vkKjaKc6Lu/w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fmrPq-0005lK-4k; Tue, 07 Aug 2018 02:08:06 +0000 Received: from mail-sh2.amlogic.com ([58.32.228.45]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fmrPn-0005jb-Jw; Tue, 07 Aug 2018 02:08:05 +0000 Received: from ofmlt.linux-actions.org (10.18.20.235) by mail-sh2.amlogic.com (10.18.11.6) with Microsoft SMTP Server id 15.0.1320.4; Tue, 7 Aug 2018 10:07:27 +0800 From: Yixun Lan To: Linus Walleij , Subject: [PATCH v3 0/2] pinctrl: meson-g12a: add pinctrl driver support Date: Tue, 7 Aug 2018 10:06:32 +0800 Message-ID: <20180807020634.18182-1-yixun.lan@amlogic.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Originating-IP: [10.18.20.235] X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180806_190803_657836_2D681F21 X-CRM114-Status: UNSURE ( 8.14 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rob Herring , Neil Armstrong , Martin Blumenstingl , Kevin Hilman , Yixun Lan , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Carlo Caione , linux-amlogic@lists.infradead.org, Xingyu Chen , Jerome Brunet Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This patch series try to add pinctrl driver support for the Meson-G12A SoC. The pinctrl driver for Meson-G12A SoC share the similar IP as the previous Meson-AXG SoC, both use same pinmux ops (register layout). But, a new driver is needed here due to the differences in the pins. Changes since v2 at [2] - use ${FUNCTION}_${DOMAIN}_${PORT}_${PINFUNC}_${BANK}${PINNUM} to rename some pins - fix tdm groups - explain the similarity of pinmux between AXG and G12A - thanks Martin - collect Rob's Reviewed-by Changes since v1 at [1] - add Martin's Ack, Xingyu's Signed-off - squash patch 1,2 (documentation & header file) - explain pinctrl IP - notice GPIOE located in AO bank [1] https://lkml.kernel.org/r/20180704224511.29350-1-yixun.lan@amlogic.com [2] https://lkml.kernel.org/r/20180714232754.5402-1-yixun.lan@amlogic.com Yixun Lan (2): documentation: pinctrl: Add compatibles for Amlogic Meson G12A pin controllers pinctrl: meson-g12a: add pinctrl driver support .../bindings/pinctrl/meson,pinctrl.txt | 2 + drivers/pinctrl/meson/Kconfig | 6 + drivers/pinctrl/meson/Makefile | 1 + drivers/pinctrl/meson/pinctrl-meson-g12a.c | 1404 +++++++++++++++++ include/dt-bindings/gpio/meson-g12a-gpio.h | 114 ++ 5 files changed, 1527 insertions(+) create mode 100644 drivers/pinctrl/meson/pinctrl-meson-g12a.c create mode 100644 include/dt-bindings/gpio/meson-g12a-gpio.h