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: 10672789 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 161B113AD for ; Wed, 7 Nov 2018 17:49:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 05A652CB70 for ; Wed, 7 Nov 2018 17:49:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EDAE22CB8E; Wed, 7 Nov 2018 17:49:21 +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=-3.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW 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 999472CB70 for ; Wed, 7 Nov 2018 17:49:21 +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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: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=WpCYWkWBtDPOW8jMZgGBOZNoZOJIFA1ZZob7sDWb4Sw=; b=KAN bWfp/5jnmnlKDyImaekeBMt4hLzGpZqFb03FmC/34qCMoEXHXQqUMES/aN3ZMz5SQ8YzHrRUhUdYD iWelt+Xo90dd7c9Xh1/glP3PG9ZAljn1mPnRPn/u3AWFIQxaAG1cU3s162A6jM0bvuS88gZseasPQ maalJxayEckNY89z/UHCxycldwqBKUt4f56JcqF02ymVilFwY/qxdpAXgiJu4NHPbe6AyomGtGOiE xSTa5KtfM5HGRLd+J4wewBxT9ZcSdhWr176LEWO784njzRgh0eoYXfb2dNjN57KFNA/1EYxfVTrC9 QZtymmcRopcgm9RlPArjEy6UWjsFMvg==; 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 1gKRx9-0004l4-Is; Wed, 07 Nov 2018 17:49:19 +0000 Received: from mail-pf1-x443.google.com ([2607:f8b0:4864:20::443]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gKRwy-0004Yb-DO for linux-mediatek@lists.infradead.org; Wed, 07 Nov 2018 17:49:09 +0000 Received: by mail-pf1-x443.google.com with SMTP id u10-v6so2259567pfn.9 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=ominkgJxxRzzY4uk6RYT0V6litVTv+g0RMYhJkWki7IhPMI0mmAicvpNoFMhj2vbAN 5NAKDaCcvu9s7jeHeyYDzkFoHs7HDKVH7ZnCLC9FbIe1Vj65SxGzCAzsZL6Ti5EFQUOS 06Jz404ZBWTmNVjD/iE4DJ1/A4sWqaTM5fevtbEXinFi9NVDOQAiU64sWmAODEchfYrG E7jhMOZEZULy47PQJ44WzIfT4zaeJOIVC/WPZInHZ9dR0Ff8PmWb2rSEXWetT37GJo+0 iDkigYPIWVRJv1EO9xWO46t9tgz7JCQ1/1fkXDhaGg+KX9cOkLCyxxofWeQkMDaftNhX RMAA== X-Gm-Message-State: AGRZ1gJ0ExgS6UNJTwn2IPm5N48hRGdjA9JBJTIWF4Zv5qb+kAI8kWZS K+hH9NRJw2sxI7RZV+4ZIxQop00RMg== X-Google-Smtp-Source: AJdET5f0EDE4y5HsosPfnVw7UlavGxGFj8Z6AqqITs2QJ9e3pJnQVvEdI3DoalPIA1Jim6Zs8kbUOw== 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181107_094908_449161_C7000755 X-CRM114-Status: GOOD ( 11.55 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kernel@vger.kernel.org, amit.kucheria@linaro.org, linux-gpio@vger.kernel.org, linux-mediatek@lists.infradead.org, Manivannan Sadhasivam , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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