From patchwork Fri Oct 25 11:49:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Qianggui Song X-Patchwork-Id: 11212137 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DF0E813B1 for ; Fri, 25 Oct 2019 11:49:42 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 BC57021D81 for ; Fri, 25 Oct 2019 11:49:42 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="t64pUCa5" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BC57021D81 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=amlogic.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org 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=+3A/H5wWu42eWO1VGOvpGBEN0NH5Gi7odFuLxNdFyTc=; b=t64pUCa5Z9JUC8 QBxsv+UyP22ahB/1JwQIZFnhq2WFoNztJJeJo2uGIG0g9Xnf88zpSKA9IT09uuttcPDLKFLqpsait RwB9E5epxIK4MleGhA02AMAnEcZVb9P4SLam6SYFH4rglESi8EVgnLV5BbI63MAfAZjcvOIzUIe86 Ub4/8wCPHBn80cGkC3zOcuXs2vCToB/IZdW97YHDmlh4FfXG02nFVEvOoSj4IoARKhGHYNOJ0EnsY ZZ8PErCvBFhXDsPBe1KwNE3UiF96JzQWOSGc8b+qwUhQXKX/7k34KpV/28rEg6qkI8CSsm8io9C5o IrWeX3iflGrow1GcxD8w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iNy6A-0006KC-Cs; Fri, 25 Oct 2019 11:49:42 +0000 Received: from mail-sz.amlogic.com ([211.162.65.117]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iNy66-0006IU-Tg; Fri, 25 Oct 2019 11:49:40 +0000 Received: from localhost.localdomain (10.28.8.19) by mail-sz.amlogic.com (10.28.11.5) with Microsoft SMTP Server id 15.1.1591.10; Fri, 25 Oct 2019 19:49:47 +0800 From: Qianggui Song To: Linus Walleij , Subject: [PATCH v4 0/4] pinctrl: meson-a1: add pinctrl driver Date: Fri, 25 Oct 2019 19:49:23 +0800 Message-ID: <1572004167-24150-1-git-send-email-qianggui.song@amlogic.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-Originating-IP: [10.28.8.19] X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191025_044938_961062_D82A1A73 X-CRM114-Status: UNSURE ( 8.91 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Qianggui Song , Mark Rutland , Hanjie Lin , Jianxin Pan , Neil Armstrong , Martin Blumenstingl , Kevin Hilman , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Rob Herring , 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 This patchset adds Pin controller driver support for Meson-A1 Soc which shares the same register layout of pinmux with previous Meson-G12A, however there is difference for gpio and pin config registers in A1. Changes since v3 at [2] - separate ao fixup from meson_pinctrl_parse_dt - provide ao extra dt parse callback for each SoC Changes since v2 at [1]: - make dt parser callback as a separate patch Changes since v1 at [0]: - collect Reviewed-by - modify commit log - add an extra dt parser function for a1 [0] https://lore.kernel.org/linux-amlogic/1568700442-18540-1-git-send-email-qianggui.song@amlogic.com/ [1] https://lore.kernel.org/linux-amlogic/1570532999-23302-1-git-send-email-qianggui.song@amlogic.com/ [2] https://lore.kernel.org/linux-amlogic/1571050492-6598-1-git-send-email-qianggui.song@amlogic.com/ Qianggui Song (4): pinctrl: add compatible for Amlogic Meson A1 pin controller pinctrl: meson: add a new callback for SoCs fixup pinctrl: meson: add pinctrl driver support for Meson-A1 SoC arm64: dts: meson: a1: add pinctrl controller support .../devicetree/bindings/pinctrl/meson,pinctrl.txt | 1 + arch/arm64/boot/dts/amlogic/meson-a1.dtsi | 18 + drivers/pinctrl/meson/Kconfig | 6 + drivers/pinctrl/meson/Makefile | 1 + drivers/pinctrl/meson/pinctrl-meson-a1.c | 951 +++++++++++++++++++++ drivers/pinctrl/meson/pinctrl-meson-axg.c | 11 + drivers/pinctrl/meson/pinctrl-meson-g12a.c | 9 + drivers/pinctrl/meson/pinctrl-meson-gxbb.c | 11 + drivers/pinctrl/meson/pinctrl-meson-gxl.c | 11 + drivers/pinctrl/meson/pinctrl-meson.c | 9 +- drivers/pinctrl/meson/pinctrl-meson.h | 3 + drivers/pinctrl/meson/pinctrl-meson8.c | 11 + drivers/pinctrl/meson/pinctrl-meson8b.c | 11 + include/dt-bindings/gpio/meson-a1-gpio.h | 73 ++ 14 files changed, 1122 insertions(+), 4 deletions(-) create mode 100644 drivers/pinctrl/meson/pinctrl-meson-a1.c create mode 100644 include/dt-bindings/gpio/meson-a1-gpio.h