Received: by 10.213.65.68 with SMTP id h4csp317508imn; Wed, 21 Mar 2018 20:00:55 -0700 (PDT) X-Google-Smtp-Source: AG47ELv6G0PzBih4synI/aoQrB1dG/n0SrXTv1QR3O/5ZTvPdJIqSuuf/75VgT9s1/w5tQOeR3zJ X-Received: by 2002:a17:902:5204:: with SMTP id z4-v6mr23226485plh.385.1521687655755; Wed, 21 Mar 2018 20:00:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521687655; cv=none; d=google.com; s=arc-20160816; b=Cg2D9o3V+q0dFqpmahZCNN9k0096mzHOs5i5L1nXQyg11vBUsFMNhSKDpSKJmsxtIm 2I7Fw6agERusyfAlW6XpUO3G5V3fRzIa83Fr/pLZeMI/wkbLI9J99d7oJ3k5TjedXy3W dNdIVOGZab529idL4XTESz/3B+fkHYgGSnSjN4EpLFmOCPVSvmEKESbvXfzLFOafj6MI CCifOWOdFmr76c9FBpfFPV/4EUjSk+k+b+TeQDDLzHUC6v7o63JSKgVw+iC8sMHf+nmU +uy0y/ii7qWbEhPRwol1SGHKgO82FY8jumnBLuJEMGM54ocA3O4BpkAkXHCFfDZ4fA1I gUkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:arc-authentication-results; bh=k4HYU77k7TG1Maixko/cRzwc4mOCNvHaYbDxfXNjGLM=; b=CPt/aIopLpfsryZyFe7R5czg8bUsCZu1tFI7a4//4l4NajOxV4Q+OiDKGkhO26ioBl FxucWR+dNuv4gA0pcHLm5MYCyD55qNMuAxKpjd2U7Mga1Eo9wrQnzNMDdHb1lkUUZtoy 0JNIUtvKGnJaGExIyYqEJhN+jnT+2ZM18rHgzFLmTiTYfALwzAuEwN4wkaArbviVfR+L BS3bILnXmOoJJWttXqlBN4dSj/ftzEGtTBPM2lRHBY1h5YPvSNjtV7Z3wKsxYOy9gJHV 8S0MvuWrIrZ0VHAXgm0c+6f0RQOD4GpMD7JrXvVwDKGCuGCsFJryytZOX849RgLXy2OK 55fA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i133si3715447pgc.299.2018.03.21.20.00.38; Wed, 21 Mar 2018 20:00:55 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752027AbeCVC7C (ORCPT + 99 others); Wed, 21 Mar 2018 22:59:02 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:31217 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751667AbeCVC6z (ORCPT ); Wed, 21 Mar 2018 22:58:55 -0400 X-UUID: 4c3d69ae6d114c1ab5ba959f05104bc6-20180322 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1975640256; Thu, 22 Mar 2018 10:58:48 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs02n1.mediatek.inc (172.21.101.77) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Thu, 22 Mar 2018 10:58:46 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Thu, 22 Mar 2018 10:58:45 +0800 From: Zhiyong Tao To: , , , CC: , , , , , , , , , , , , Subject: [PATCH v4 0/5] PINCTRL: Mediatek pinctrl driver for mt2712 Date: Thu, 22 Mar 2018 10:58:38 +0800 Message-ID: <1521687523-1604-1-git-send-email-zhiyong.tao@mediatek.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series includes five patches: 1.Add mt2712 pintcrl head file. 2.Add mt2712 pinctrl device node. 3.Add mt2712 pinctrl driver. 4.Support bias-disable of generic and special pins simultaneously. 5.fix check warnings. Changes in patch v4: 1)fix check warnings for mt2712. 2)add fix check warnings patch for other ICs. Changes in patch v3: 1)Use SPDX identifiers for all new files. 2)Use right data for Copyright and Author. 3)Correct some spelling mistake. 4)Reusing original logic and change solution to support bias-disable of generic and special pins simultaneously. 5)Add some comments for the speical path of special pins bias-disable. Changes in patch v2: 1)Separate patch4 for supporting bias-disable of generic and special pins. 2)GPIO16~17 direction setting is changed as generic pins in mt2712 E2, So remove GPIO16~17 special direction setting and remove apmixedsys node in pinctrl device node. 3)Add pinmux define in "mt2712-pinfunc.h" and "pinctrl-mtk-mt2712.h" for mt2712 E2 design. Zhiyong Tao (5): arm64: dts: mt2712: add pintcrl file arm64: dts: mt2712: add pintcrl device node. pinctrl: add mt2712 pinctrl driver pintcrl: support bias-disable of generic and special pins simultaneously pinctrl: fix check warnings. arch/arm64/boot/dts/mediatek/mt2712-pinfunc.h | 1123 ++++++++++++++++ arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 18 + drivers/pinctrl/mediatek/Kconfig | 7 + drivers/pinctrl/mediatek/Makefile | 1 + drivers/pinctrl/mediatek/pinctrl-mt2712.c | 634 +++++++++ drivers/pinctrl/mediatek/pinctrl-mtk-common.c | 8 +- drivers/pinctrl/mediatek/pinctrl-mtk-mt2701.h | 840 ++++-------- drivers/pinctrl/mediatek/pinctrl-mtk-mt2712.h | 1757 +++++++++++++++++++++++++ drivers/pinctrl/mediatek/pinctrl-mtk-mt6397.h | 123 +- drivers/pinctrl/mediatek/pinctrl-mtk-mt8127.h | 429 ++---- drivers/pinctrl/mediatek/pinctrl-mtk-mt8135.h | 609 +++------ drivers/pinctrl/mediatek/pinctrl-mtk-mt8173.h | 405 ++---- 12 files changed, 4348 insertions(+), 1606 deletions(-) create mode 100644 arch/arm64/boot/dts/mediatek/mt2712-pinfunc.h create mode 100644 drivers/pinctrl/mediatek/pinctrl-mt2712.c create mode 100644 drivers/pinctrl/mediatek/pinctrl-mtk-mt2712.h -- 2.6.4