From patchwork Wed Nov 7 17:48:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 150443 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp5460325ljp; Wed, 7 Nov 2018 09:49:00 -0800 (PST) X-Google-Smtp-Source: AJdET5f9bV/Eygpxl9A/FzQSgI37y+w+ltOK+Gdn40dj39TyBPQYoIQfOuf6p6vWEhhAvD5y4nkx X-Received: by 2002:a17:902:4025:: with SMTP id b34-v6mr1171504pld.318.1541612940103; Wed, 07 Nov 2018 09:49:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541612940; cv=none; d=google.com; s=arc-20160816; b=J77ng2LCUgK9Wq3FeXJ9BISIlgrb5bsj8L0+/9Jco752t6ENRBbXz+osOw2Wz8P1AO pDb10V5RxCfKEf7Bks9oH1y52TaFjPEqVJBFVduS2jhem1N35DjIuccS9PEuzryq0gq7 8Wm0JGfgfEwyAiA1/Y8RT069bSeeeztfyJlKRLy4EVrlJJ7jVDsvpPbadLayTfF+7UbI Os4Ib+B3d9uk6tzsDswV+0O1AVZNzwabZh2KqgSN/9+EgVMs4claAbdlnKlmfySM1n6p 2eWD1kW47IbyA7h9rkUEiitwKvSwaAiYCDO9Wb5hL/AI6/aKfPLAFIfh0fxc31rFPxXM SPSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=PlgXOOwrJHJJiKxje6zgPJnsxvzU0hJfT3GJPdyu57s=; b=Z5ScEIH790yFY1mnkrvdfQQPgritFAW6ZHib1sO+L3U3boMMi32S+OYT6aWVQEtDMb +AMVUDDZNPQcBHQrJL34ZyXeAGiEbCevH97/MRu0gQZgQNSjQ4a5XTPZd+tizgsM05Ci c93ODpEhi4QmbQHj/hDQPVPs734verbrhqhwQo7zld4AL+UWLc+g5rF7PQH0YUj4floc hxYs88kVsJWaiwKXJyYRIcO6DQUnXZfHK8LvFx2OQBcfCEOKTBFAVGUftbSyywEkXEY5 ErkSvdCpB3JP3gGzWKvj3XuczG3uhGbXmcTdSki1qcgwqZ9H1v74ar6ma11cKAtETrnU 0qDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="PsB/ogyt"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 69si1109872pgd.290.2018.11.07.09.48.59; Wed, 07 Nov 2018 09:49:00 -0800 (PST) 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; dkim=pass header.i=@linaro.org header.s=google header.b="PsB/ogyt"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731587AbeKHDUY (ORCPT + 32 others); Wed, 7 Nov 2018 22:20:24 -0500 Received: from mail-pf1-f195.google.com ([209.85.210.195]:41433 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728085AbeKHDUX (ORCPT ); Wed, 7 Nov 2018 22:20:23 -0500 Received: by mail-pf1-f195.google.com with SMTP id e22-v6so8002121pfn.8 for ; Wed, 07 Nov 2018 09:48:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=PlgXOOwrJHJJiKxje6zgPJnsxvzU0hJfT3GJPdyu57s=; b=PsB/ogytMFtjBI1hwRaBYrKNWTJCAxT1zYJCLwWbOiOUBRl0Ny5Zn+YYPx7E0fcLmu U9msr5uVSn3xwBUaCFTAo925ow9CB8KaZi6sZL69NYxQ5glxtOBYlcgxBTVxqWdEf1ji uFqV/4wie7uxXsstS7h4rkaXu3SjFFNNROPTY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=PlgXOOwrJHJJiKxje6zgPJnsxvzU0hJfT3GJPdyu57s=; b=BxuKQBmvrbPt4hxnq1pOrNeFvU/oQZ5Q2OPymRdY+6cYIl1mYGWWsyeMR2DwSA2Xca FKS8KNkoPTlbEeYSRGCXXZUSLEYD/+Ic1t7ql4zGRdS2LXETHQ0vRL21ET0WbfBJONn7 V6YCLyiL1+GrKqD5GHiNOUvbuOxyPvr/PAyGsMX9+0KazzgGZRUgk4DzYoEq/SCxwX6s Nir6M0hg1ER28O8hCKFqYFpN7j47zySE2nT55dy20XQjvRzdeA7FkvdtubXs3EbjMCki 2zjRbKDUPUKaIxiZWm6B/h5v5+fTISqNRMg9mXdXacOMWhne6M6EQctDbfz617oLmrUx C4Lg== X-Gm-Message-State: AGRZ1gKkHgvBvcorY+QHczCLI1is90NWHfWq+7IE+1cKyt24Jn+GBqTj 0JXCHmjf+wEAZC52fXBWqXvG X-Received: by 2002:a63:f960:: with SMTP id q32-v6mr935759pgk.213.1541612937152; Wed, 07 Nov 2018 09:48:57 -0800 (PST) Received: from localhost.localdomain ([2409:4072:6282:6ca8:a0d9:6a81:97fe:992e]) by smtp.gmail.com with ESMTPSA id e70-v6sm1232645pfb.113.2018.11.07.09.48.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Nov 2018 09:48:56 -0800 (PST) From: Manivannan Sadhasivam To: sean.wang@kernel.org, linus.walleij@linaro.org, matthias.bgg@gmail.com, robh+dt@kernel.org Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, amit.kucheria@linaro.org, Manivannan Sadhasivam Subject: [PATCH v3 0/4] Add initial pinctrl support for MT6797 SoC Date: Wed, 7 Nov 2018 23:18:40 +0530 Message-Id: <20181107174844.5381-1-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset adds initial pinctrl support for Mediatek MT6797 SoC. The pinctrl driver is based on the vendor binding as like MT6765 and implements only GPIO and pinmux functionalities. The devicetree binding document consists of pinmux, pinconf and interrupt functionalities documented since the binding should describe what the hardware is capable of rather than what the driver offers. This patchset has been tested on 96Boards MediatekX20 development board. Thanks, Mani Changes in v3: * Modified bindings doc according to Sean's suggestion. Changes in v2: * Added devicetree bindings for Pin Controller * Dropped the applied warning fix patch * Added Tested-by tag from Matthias Brugger * Added Acked-by tag from Sean Wang Manivannan Sadhasivam (4): dt-bindings: pinctrl: Add devicetree bindings for MT6797 SoC Pinctrl arm64: dts: mediatek: mt6797: Add pinctrl support arm64: dts: mediatek: x20: Add pinmux support for UART1 pinctrl: mediatek: Add initial pinctrl driver for MT6797 SoC .../bindings/pinctrl/pinctrl-mt6797.txt | 83 + .../boot/dts/mediatek/mt6797-x20-dev.dts | 2 + arch/arm64/boot/dts/mediatek/mt6797.dtsi | 21 + drivers/pinctrl/mediatek/Kconfig | 7 + drivers/pinctrl/mediatek/Makefile | 1 + drivers/pinctrl/mediatek/pinctrl-mt6797.c | 82 + drivers/pinctrl/mediatek/pinctrl-mtk-mt6797.h | 2430 +++++++++++++++++ include/dt-bindings/pinctrl/mt6797-pinfunc.h | 1368 ++++++++++ 8 files changed, 3994 insertions(+) create mode 100644 Documentation/devicetree/bindings/pinctrl/pinctrl-mt6797.txt create mode 100644 drivers/pinctrl/mediatek/pinctrl-mt6797.c create mode 100644 drivers/pinctrl/mediatek/pinctrl-mtk-mt6797.h create mode 100644 include/dt-bindings/pinctrl/mt6797-pinfunc.h -- 2.17.1 Acked-by: Linus Walleij