From patchwork Mon Apr 1 03:35:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "zhiyong.tao" X-Patchwork-Id: 10879007 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 538D117E0 for ; Mon, 1 Apr 2019 03:37:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3A1D328628 for ; Mon, 1 Apr 2019 03:37:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2B414287E9; Mon, 1 Apr 2019 03:37:11 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=unavailable 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 D3A9928628 for ; Mon, 1 Apr 2019 03:37:10 +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=OjsYWVi/LVOfzK0BNKsd9nx98wOBivuinQpd9RHofyM=; b=EA/ic+N0zgOPrC CXkAfrLB6Z4DlCOBo82h0Yw5m5wGXBV6rWRzTxj7jy7JB4WptTcKNK5KaMay9zMJuho/rwiCAP0S1 nx8wzc6bPRU2yjCvRUJRjxJHpogGtf0dXPGs5H3vScTU7WgW8zg4qjmPvnd9vGoNeds238rQ17z3G ZSgnnBFmfP2qi6rcAN0vpTFWQtMGGPvJSqv+nTgBQ1pCAStciO8EVBTDFKaElfnlv7a6HBB9xiZsf mla3+w+nbp11lI6Tnzs5VpREvkc6s46MdXJwHyGkklfN+iw/eu485YTBLY/Eu8EgMQ1usP8WU5Bqp AG6Mct85+y0Xn68tT8hg==; 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 1hAnky-0002aW-9f; Mon, 01 Apr 2019 03:37:08 +0000 Received: from mailgw01.mediatek.com ([216.200.240.184]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hAnjx-0001Qs-Q0; Mon, 01 Apr 2019 03:36:09 +0000 X-UUID: d70388e8aac94e25a5b5f435d8ff598d-20190331 X-UUID: d70388e8aac94e25a5b5f435d8ff598d-20190331 Received: from mtkcas66.mediatek.inc [(172.29.193.44)] by mailgw01.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLS) with ESMTP id 1311778743; Sun, 31 Mar 2019 19:35:56 -0800 Received: from MTKMBS02N2.mediatek.inc (172.21.101.101) by MTKMBS62N1.mediatek.inc (172.29.193.41) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Sun, 31 Mar 2019 20:35:55 -0700 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs02n2.mediatek.inc (172.21.101.101) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Mon, 1 Apr 2019 11:35:40 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Mon, 1 Apr 2019 11:35:38 +0800 From: Zhiyong Tao To: , , , , Subject: [PATCH v4 0/4] PINCTRL: Mediatek pinctrl patch on mt8183 Date: Mon, 1 Apr 2019 11:35:31 +0800 Message-ID: <20190401033535.16910-1-zhiyong.tao@mediatek.com> X-Mailer: git-send-email 2.12.5 MIME-Version: 1.0 X-TM-SNTS-SMTP: DC64BED535830D267659E05F4DCF17E165132A3A96AA6A61A04D1A47E35AF0C52000:8 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190331_203606_128892_1E8C393C X-CRM114-Status: UNSURE ( 7.87 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, sean.wang@mediatek.com, srv_heupstream@mediatek.com, chuanjia.liu@mediatek.com, biao.huang@mediatek.com, zhiyong.tao@mediatek.com, erin.lo@mediatek.com, hui.liu@mediatek.com, linux-kernel@vger.kernel.org, hongzhou.yang@mediatek.com, linux-mediatek@lists.infradead.org, linux-gpio@vger.kernel.org, eddie.huang@mediatek.com, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This series includes 4 patches: 1.add pinctrl binding document on mt8183. 2.add pinctrl file on mt8183. 3.add pinctrl device node on mt8183. 4.add drive for I2C related pins on MT8183. Changes in patch v4: 1)patch [1/4] is based on patch "https://patchwork.kernel.org/patch/10778511/". 2)patch [2/4] is based on patch "https://patchwork.kernel.org/patch/10814251/". 3)patch [3/4] is based on patch "https://patchwork.kernel.org/patch/10814239/". 4)modify correct title on patch [2/4] and patch [3/4]. 5)add Reviewed-by on patch [1/4] and [2/4]. 6)modify the function "mtk_pinconf_adv_pull_get" and "mtk_pinconf_adv_pull_set" 7)change "drive-strengt-adv" to "drive-strength-adv". 8)call "mtk_pinconf_adv_pull_get" in "mtk_pinconf_get". Changes in patch v3: 1)add the patch "dt-bindings: pinctrl: mt8183: add binding document". 2)add the patch "arm64: dts: mt8183: add pintcrl file". 3)add the patch "arm64: dts: mt8183: add pintcrl device node". 4)add more datail information for the specific driving setup in commit message. 5)use "mediatek,drive-strength-adv" instead of "mediatek,drive-enable-adv" and "mediatek,drive-enable-disable". 6)change "PINCTRL_PIN_REG_DRV_EN_DIS" to "PINCTRL_PIN_REG_DRV_EN". 7)change the function "mtk_pinconf_adv_drive_set". Changes in patch v2: 1)add the details strength specification of the I2c pins. 2)change "mt8183_pin_drv_en_dis_range" to "mt8183_pin_e1e0en_range". 3)change "mt8183_pin_drv_e0_range" to "mt8183_pin_e0_range". 4)change "mt8183_pin_drv_e1_range" to "mt8183_pin_e1_range". Zhiyong Tao (4): dt-bindings: pinctrl: mt8183: add binding document arm64: dts: mt8183: add pinctrl file arm64: dts: mt8183: add pinctrl device node pinctrl: add drive for I2C related pins on MT8183 .../devicetree/bindings/pinctrl/pinctrl-mt8183.txt | 132 +++ arch/arm64/boot/dts/mediatek/mt8183-pinfunc.h | 1120 ++++++++++++++++++++ arch/arm64/boot/dts/mediatek/mt8183.dtsi | 26 +- drivers/pinctrl/mediatek/pinctrl-mt8183.c | 50 + drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c | 49 + drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.h | 11 + drivers/pinctrl/mediatek/pinctrl-paris.c | 21 + 7 files changed, 1408 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/pinctrl/pinctrl-mt8183.txt create mode 100644 arch/arm64/boot/dts/mediatek/mt8183-pinfunc.h --- 2.12.5